-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docs] Use htmlIdGenerator()()
in EuiFlyout examples for aria-labelledby
#4774
Comments
Example: eui/src-docs/src/views/flyout/flyout.js Lines 30 to 39 in 658e5d2
Would change to: const titleId = htmlIdGenerator('flyoutTitle')();
if (isFlyoutVisible) {
flyout = (
<EuiFlyout
ownFocus
onClose={() => setIsFlyoutVisible(false)}
aria-labelledby={titleId}>
<EuiFlyoutHeader hasBorder>
<EuiTitle size="m">
<h2 id={titleId}>A typical flyout</h2>
</EuiTitle> |
@cchaos Apart from this particular example, any other example you would like to change!? If I am not wrong this is a minor change |
Anywhere in our docs that we set an |
@myasonik Thanks I am working on this |
It's a bit of a chore, but might it be worth it:
I've found that folks will sometimes copy our static ids from docs into their apps and then will run into multiple duplicate id issues.
This one is unlikely to cause that issue... But thought I'd bring it up anyways just for consistently having the same example of always using unique ids.
Originally posted by @myasonik in #4713 (comment)
The text was updated successfully, but these errors were encountered: