Skip to content

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 <[email protected]>
@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
@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

4 participants