Issue: [role]s do not have all required [aria-*] attributes #2501
Unanswered
sharonytlau
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I run a Lighthouse check on my site and discovered one disabled
combobox
element failing a rule.By looking at the W3C specs on
combobox
and experimenting with the elements, I confirmed that the failed check was due to a lack of thearia-expanded
attribute value on the element.Link to code example: https://codesandbox.io/p/sandbox/blissful-jackson-5jl9mj
The combobox on the right-hand side is disabled, and it does not have

aria-expanded
compared to the normal one on the left-hand side

I believe the following source code has caused this behavior:
I would love to hear the reasoning behind current behavior of making
aria-expanded
undefined
when the element is disabled. As per W3C specs,aria-expanded
is required oncombobox
elements, and there's an accessibility check on it. If current practice is more recommended, could someone link some materials for me to refer to? Thanks a lot!Beta Was this translation helpful? Give feedback.
All reactions