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

Improving EuiButtonEmpty focus state for color type text #3135

Merged
merged 4 commits into from
Mar 20, 2020

Conversation

elizabetdev
Copy link
Contributor

@elizabetdev elizabetdev commented Mar 20, 2020

Summary

This PR adds a darker background on focus state for EuiButtonEmpty when the color type is text.

The same background color is used in other components like:

  • EuiButtonIcon

  • EuiButtonToggle

I think it makes sense that all the buttons that allow the color type text to have the same background color on focus state.

The issue

As we can see, the previous focus state background color wouldn't work in situations like this:

Frame 4@2x

Color contrast a11y

With this new color the contrast decreases a little bit but it still ok.
Frame 2@2x

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 snide and cchaos March 20, 2020 15:56
@kibanamachine
Copy link

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

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.

Makes sense to me! 👍

@cchaos
Copy link
Contributor

cchaos commented Mar 20, 2020

I think those tests are flakey.

Jenkins, test this

@kibanamachine
Copy link

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

@elizabetdev
Copy link
Contributor Author

jenkins test this

@kibanamachine
Copy link

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

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.

4 participants