Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary The `scrollLock` property on `EuiFocusTrap` "freezes" the width of the of the body so that the removal/addition of the scrollbar when a full screen focus trap opens (e.g. a modal, flyout, or other fullscreen mode) doesn't cause the page width to jump/rerender. It turns however, that this behavior (which sets a `margin-right` on the `body` for the width of the scrollbar) does not work as expected in Kibana due to its existing `width: 100%; min-width: 100%` CSS on its `body`. As such, we need to temporarily work around this by setting `padding-right` instead until theKashey/react-focus-on#65 is fixed. d59faae can be reverted if not desired in this PR. ### Checklist - [x] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [x] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US)) - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) --------- Co-authored-by: Kibana Machine <[email protected]>
- Loading branch information