-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EuiFlyout] Include all fixed
EuiHeader
s in flyout focus traps + im…
…prove screen reader accessibility (#6566) * EuiFlyout - auto-shard all fixed EuiHeaders NOT YET WORKING: autoFocus on flyout open and returnFocus * Fix flyouts toggled from header shards not correctly focusing headers + a11y improvement: mirroring popovers & modals, make the flyout wrapper focusable via `tabIndex={0}`, so that screen readers take out a beat to read out the `labelledby` and (upcoming `describedby`) instead of jumping to the close button or the first focusable child (if no close button exists) * Add screen reader instructions on interacting with the flyout - allow for custom `role`s that consumers pass in that aren't `dialog`s (likely very rare, may need more testing) * Deprecate `closeButtonAriaLabel` - use `closeButtonProps['aria-label']` instead * [chore] Remove Fragment * Write tests for new EuiHeader affordance & screen reader instructions * [PR feedback] Remove `role` prop customization, tweak SR text accordingly
- Loading branch information
Showing
9 changed files
with
540 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.