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

[EuiButtonGroup] Fix initial focus when in a popover #4288

Merged
merged 5 commits into from
Nov 19, 2020

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Nov 19, 2020

By removing the transition: all on the .euiButtonGroup__buttons selector. This was safe to remove because no interaction states were directly applied to this selector. It was probably leftover from before the a11y fix.

Also added an example to the compressed forms page.

Fixes #4266

Before

Screen Recording 2020-11-19 at 11 57 30 AM

After

Screen Recording 2020-11-19 at 12 02 01 PM

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
  • 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

By removing the `transition: all` on the `.euiButtonGroup__buttons` selector

Also added an example to the compressed forms page.
@cchaos
Copy link
Contributor Author

cchaos commented Nov 19, 2020

Thanks for investigating and finding the root cause @chandlerprall !!

@kibanamachine
Copy link

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

Copy link
Contributor

@chandlerprall chandlerprall 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 the new compressed form example.

@kibanamachine
Copy link

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

@cchaos cchaos merged commit 4248003 into elastic:master Nov 19, 2020
@cchaos cchaos deleted the fix/button_group_transition branch November 19, 2020 20:34
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.

[EuiPopover and EuiButtonGroup] Focus behavior when EuiButtonGroup is first element
3 participants