Repository navigation
[EuiPortal docs] Add custom flyout example - #6247
Conversation
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6247/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6247/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6247/ |
|
jenkins test this |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6247/ |
1Copenut
left a comment
There was a problem hiding this comment.
Thank you for the ping @miukimiu! I have a few change requests, hopefully not too much rework. Let me know if you have questions or want to discuss any of these.
| <li> | ||
| Use <EuiCode>{'aria-labelledby={headingId}'}</EuiCode> to | ||
| announce the flyout to screen readers. | ||
| </li> |
There was a problem hiding this comment.
What do you think about adding one more <li> to call out the need for an aria-labelledby and unique ID added to the first heading in the modal? It's an important detail and a help to screen reader users.
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6247/ |
Summary
Closes #6241.
We normally recommend in our slack to override a
EuiFlyoutor to create one from scratch using aEuiPortal. We always point to what should be the right a11y features but we don't have an example in our docs.So this PR, hopefully, adds an example of what a custom flyout can be with a recommend a11y.
The example can be found here: https://eui.elastic.co/pr_6247/#/utilities/portal#a-custom-flyout
Checklist