Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EuiBreadcrumbs] a11y polish #4763

Merged
merged 30 commits into from
Jul 28, 2021
Merged

[EuiBreadcrumbs] a11y polish #4763

merged 30 commits into from
Jul 28, 2021

Conversation

myasonik
Copy link
Contributor

@myasonik myasonik commented Apr 28, 2021

Summary

Closes #3624

Biggest change is the DOM structure:
- From a <nav> with <a>, <button> and <span> children
- To a <nav> with an <ol>, where each <li> has a <a>, <button> or <span> child
- Separators are now rendered 100% through CSS instead of JSX+CSS

Some tiny visual changed with with spacing tightened up and relying on more native CSS logic

Introduces a new prop for Breadcrumb: aria-current
Allows consumers to override the default value of page, only valid on the last item

Before After
Screen Shot 2021-07-06 at 16 08 10 Screen Shot 2021-07-06 at 16 07 41
Screen Shot 2021-07-06 at 16 08 27 Screen Shot 2021-07-06 at 16 08 18
Screen Shot 2021-07-06 at 16 10 20 Screen Shot 2021-07-06 at 16 10 10

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • [ ] Props have proper autodocs and playground toggles
  • [ ] Added documentation
  • [ ] Checked Code Sandbox works for the any docs examples
  • Added or updated jest tests
  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

@myasonik myasonik marked this pull request as ready for review July 6, 2021 20:23
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

@thompsongl thompsongl self-requested a review July 13, 2021 16:14
@thompsongl
Copy link
Contributor

jenkins test this

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

@cchaos cchaos self-requested a review July 13, 2021 22:18
@cchaos
Copy link
Contributor

cchaos commented Jul 13, 2021

@myasonik So the big thing that I'm seeing is that, in Amsterdam, the EuiHeaderBreadcrumbs are a wrapper around EuiBreadcrumbs with some specific styling overrides. This is now rendering quite wrong. 😬 I think mainly due to moving the separator into CSS.

Screen Shot 2021-07-13 at 18 19 26 PM

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

@myasonik myasonik requested a review from cchaos July 20, 2021 13:36
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Tested in all the browsers using the preview link

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I double-checked all the styles in FF, Chrome, and Safari and in regular breadcrumbs and header breadcrumbs 👍 . There's just a couple code-specific things that need updating.

Oh and you'll need to change the selectors in the _control_bar.scss to fix the contrast.

Screen Shot 2021-07-22 at 13 44 32 PM

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

thompsongl and others added 6 commits July 27, 2021 18:45
Co-authored-by: cchaos <caroline.horn@elastic.co>
* [EuiLink] Increased font weight to match buttons
  - Increased text underline weight on focus
  - Removed low-contrast focus background
  - Added `:visited` and `:target` styling
(All mainly affecting Amsterdam)
* Re-use mixin in text styles
@cchaos
Copy link
Contributor

cchaos commented Jul 27, 2021

WEll that was a terrible upstream merged... Sorry, will fix

# Conflicts:
#	src/components/link/_link.scss
#	src/themes/eui-amsterdam/global_styling/mixins/_link.scss
Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I knew there was going to be some issue with my EuiLink PR and increased font-weights, so I went ahead and fixed those.

Let's get this sucker merged 👍 😆

myasonik and others added 2 commits July 28, 2021 10:15
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

1 similar comment
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4763/

@myasonik myasonik merged commit 932bb6d into elastic:master Jul 28, 2021
@myasonik myasonik deleted the breadcrumbs branch July 28, 2021 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[EuiBreadcrumbs] Accessibility
5 participants