Skip to content

[EuiButtonGroup] Fix position for EuiScreenReaderOnly#4189

Merged
thompsongl merged 3 commits intoelastic:masterfrom
cchaos:fix/button_group_position
Oct 28, 2020
Merged

[EuiButtonGroup] Fix position for EuiScreenReaderOnly#4189
thompsongl merged 3 commits intoelastic:masterfrom
cchaos:fix/button_group_position

Conversation

@cchaos
Copy link
Copy Markdown
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 cchaos requested a review from thompsongl October 28, 2020 16:01
@cchaos
Copy link
Copy Markdown
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
Copy Markdown
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!

Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
@kibanamachine
Copy link
Copy Markdown

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 <thompson.glowe@gmail.com>

Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
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