Skip to content

Improve contrast for EuiCollapsibleNav close link#3465

Merged
elizabetdev merged 12 commits intomasterfrom
contrast-collapsible-nav-close-link
May 13, 2020
Merged

Improve contrast for EuiCollapsibleNav close link#3465
elizabetdev merged 12 commits intomasterfrom
contrast-collapsible-nav-close-link

Conversation

@elizabetdev
Copy link
Copy Markdown
Contributor

@elizabetdev elizabetdev commented May 12, 2020

Summary

This PR closes #3402

With this PR I'm improving the contrast for the EuiCollapsibleNav close link.

Implementation@2x

A few decisions:

  • During the implementation, I decided to keep the EuiButtonEmpty because it was the most similar button to what I wanted to achieve.
  • Since this button was only implemented to keyboard users I used the <EuiScreenReaderOnly showOnFocus> component and added a visible focus ring as suggested by @chaos.

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in IE11 and Firefox
  • [ ] Props have proper autodocs
  • [ ] Added documentation 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

@elizabetdev elizabetdev requested review from cchaos and ryankeairns May 12, 2020 11:39
@kibanamachine
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@ryankeairns ryankeairns left a comment

Choose a reason for hiding this comment

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

LGTM. I did not review the code but tested this out in the preview link. Navigation worked as expected; design looked as described. Thanks @miukimiu

Copy link
Copy Markdown
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.

LGTM, though I have a suggestion around trying to avoid targeting other component specific classes.

@elizabetdev elizabetdev requested a review from cchaos May 12, 2020 19:45
@kibanamachine
Copy link
Copy Markdown

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

@elizabetdev elizabetdev requested a review from cchaos May 13, 2020 13:03
@kibanamachine
Copy link
Copy Markdown

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

elizabetdev and others added 3 commits May 13, 2020 14:46
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
@kibanamachine
Copy link
Copy Markdown

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

Copy link
Copy Markdown
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.

This behavior and look is much better now 💯

@kibanamachine
Copy link
Copy Markdown

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

@elizabetdev elizabetdev merged commit 9af2bbd into master May 13, 2020
@elizabetdev elizabetdev deleted the contrast-collapsible-nav-close-link branch May 28, 2020 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve contrast for EuiCollapsibleNav close link

4 participants