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 position for EuiScreenReaderOnly #4189

Merged
merged 3 commits into from
Oct 28, 2020

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Oct 28, 2020

In the recent Kibana upgrade it was found that some nested congregation of different display positions of elements can cause a weird overflow issue when used in conjunction with EuiButtonGroup and the EuiScreenReaderOnly component.

image

This is a quick fix by adding position: relative to the EuiButtonGroup to ensure the absolute positioned EuiScreenReaderOnly elements are positioned against it and not some other relative parent.

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

@cchaos
Copy link
Contributor Author

cchaos commented Oct 28, 2020

I couldn't replicate this in our docs even with changing the layouts to different positions. But it at least doesn't have any affect on normal layouts.

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.

Thanks!

src/components/button/button_group/_button_group.scss Outdated Show resolved Hide resolved
@kibanamachine
Copy link

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

@thompsongl thompsongl merged commit 7b0a19b into elastic:master Oct 28, 2020
@cchaos cchaos deleted the fix/button_group_position branch October 28, 2020 16:51
cchaos added a commit to andreadelrio/eui that referenced this pull request Nov 4, 2020
* [EuiButtonGroup] Fix position for EuiScreenReaderOnly

* cl

* Update src/components/button/button_group/_button_group.scss

Co-authored-by: Greg Thompson <[email protected]>

Co-authored-by: Greg Thompson <[email protected]>
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.

3 participants