Open UjjwalUpadhyay123-bit opened 4 years ago
Please provide all of the following information:
carbon-components-angular
is this with:@cal-smith - Any updates on this?
4. Name, Role. Value - The WAI-ARIA role or attribute 'aria-expanded' is not valid for the element
This isn't a ruleset, this is the information message. If you go into the DAP options, which ruleset are you using? It should be the most recent on ("latest" or whatever the most recent release is otherwise)
Ensure that you update to the latest version of carbon-components-angular@3
(v3.53.9
at the time of writing) - The dropdown is using role="button"
which has aria-expanded
as a valid attribute - https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_role
This appears to be a false positive from DAP.
4. Name, Role. Value - The WAI-ARIA role or attribute 'aria-expanded' is not valid for the element
This isn't a ruleset, this is the information message. If you go into the DAP options, which ruleset are you using? It should be the most recent on ("latest" or whatever the most recent release is otherwise)
Ensure that you update to the latest version of
carbon-components-angular@3
(v3.53.9
at the time of writing) - The dropdown is usingrole="button"
which hasaria-expanded
as a valid attribute - https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_roleThis appears to be a false positive from DAP.
I tried increasing the carbon-components-angular to 3.53,9 from 3.49.7 but it did not help solve this issue. cc: @cal-smith
I think this might be a "role" issue. The image shows that "type" is set to "button", but the role isn't set.
<div id="blah" tabindex="0" role="button" aria-expanded="false"></div>
reference: https://www.w3.org/WAI/PF/aria/states_and_properties#aria-expanded
@UjjwalUpadhyay123-bit , you should check that adding role="button" clears the error and confirm in this thread.
Detailed description
Need to remove 'aria-expanded' as 'aria-expanded' is not valid for the element
Steps to reproduce the issue
Additional information