[Story] Ensure the <Box aria-label>
is flagged as inaccessible markup
#170
Labels
<Box aria-label>
is flagged as inaccessible markup
#170
Uh oh!
There was an error while loading. Please reload this page.
Context
I noticed there is a gap in flagging
aria-label
/aria-labelledby
misuse on theBox
component!I noticed that the following markup will be flagged by the a11y-role-supports-aria-props rule:
This is because we have the
polymorphicPropName
config set toas
, so the linter knows how to map the component to an element.However, the following markup will not be flagged:
It looks like we can expand coverage and ensure this
Box
is interpreted as adiv
by mappingBox
todiv
in the component mapping forgithub
!Acceptance criteria
Box
is flagged.The text was updated successfully, but these errors were encountered: