You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I render the Switch component in Storybook with the A11Y addon, I get the following accessibility violation: "Required ARIA attribute not present: aria-checked."
I tried adding aria-checked and ariaChecked as Switch component props to see if it gets passed down directly, but it doesn't appear so. However, when I update the HTML directly and add in the attribute, the error in storybook goes away.
Is this something we can add to the component or is there a reason why it's omitted from the element? I'm also happy to take a stab at creating a pull request if we decided to add the attribute. :)
The text was updated successfully, but these errors were encountered:
Hi,
When I render the Switch component in Storybook with the A11Y addon, I get the following accessibility violation: "Required ARIA attribute not present: aria-checked."
I tried adding
aria-checked
andariaChecked
as Switch component props to see if it gets passed down directly, but it doesn't appear so. However, when I update the HTML directly and add in the attribute, the error in storybook goes away.Is this something we can add to the component or is there a reason why it's omitted from the element? I'm also happy to take a stab at creating a pull request if we decided to add the attribute. :)
The text was updated successfully, but these errors were encountered: