Skip to content
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

fix(NcActions): provide aria-expanded="false" when menu is closed instead of removing it #4946

Merged
merged 1 commit into from Dec 12, 2023

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Dec 11, 2023

☑️ Resolves

Example on w3c patterns says "The aria-expanded attribute is removed when the menu is closed.".

However there is an ongoing discussion about it.
For example, PR 2829 on https://github.com/w3c/aria-practices/pull/. Or another example https://www.w3.org/WAI/ARIA/apg/patterns/accordion/examples/accordion/

So actually it is recommended to add aria-expanded="false", not remove the attribute.

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable

Example on [w3c patterns](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-actions/) says
"The aria-expanded attribute is removed when the menu is closed.".

However there is an ongoing discussion about it.
For example, PR 2829 on https://github.com/w3c/aria-practices/pull/.
Or another example https://www.w3.org/WAI/ARIA/apg/patterns/accordion/examples/accordion/

So actually it is recommended to add `aria-expanded="false"`, not remove the attribute.

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme added bug Something isn't working 3. to review Waiting for reviews feature: actions Related to the actions components accessibility Making sure we design for the widest range of people possible, including those who have disabilities labels Dec 11, 2023
@ShGKme ShGKme self-assigned this Dec 11, 2023
@ShGKme ShGKme added this to the 8.3.1 milestone Dec 12, 2023
@ShGKme ShGKme merged commit ebbe5c6 into master Dec 12, 2023
15 checks passed
@ShGKme ShGKme deleted the fix/NcActions--provide-aria-expanded-false branch December 12, 2023 13:29
@ShGKme ShGKme mentioned this pull request Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews accessibility Making sure we design for the widest range of people possible, including those who have disabilities bug Something isn't working feature: actions Related to the actions components
Projects
None yet
3 participants