You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiScreenReaderOnly] Safari + VO renders absolutely positioned outline #5168
This is a known browser issue that applies to only Safari+VO. It does not occur in Safari without VO enabled (e.g. while keyboard tabbing) and it does not occur in either Chrome, Firefox, or Edge.
Problem
Our EuiScreenReaderOnly CSS absolutely positions the visually hidden (but still detectable to screen readers) text in order for it to not affect rendering flow on other nearby elements.
Workaround
Prior to #5152, we positioned elements left: -10000px offscreen. We now position items at just left: 0 and set a margin of -1px to accomplish the same rendering. This means that if you can set position: relative CSS on any parent wrapper around your screen reader only text, and it will no longer render an outline in Safari away from its focused parent.
We made the positioning change in #5152 to make it easier for EUI users to add a workaround for those that want even better Safari+VO support, but if for some reason it's difficult for you to do so, it's worth keeping in mind that desktop Safari+VO usage is ~5% as of 2021, and that the actual screen reader text still works perfectly, and this is a visual bug only on a tool aimed at non (or limited) visual users.
This isn't something we'll address on EUI's side of things as it's a browser issue, but we can use this issue as reference in case another consumer or Kibana user complains about this.
Activity
Remove button/position relative documentation/example in favor of ela…
[EuiScreenReaderOnly] Add `clip` property to fix scrolling bug (#5152)
cee-chen commentedon Jan 30, 2023
This isn't something we'll address on EUI's side of things as it's a browser issue, but we can use this issue as reference in case another consumer or Kibana user complains about this.