-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toBeDisabled
to support aria-disabled
#230
Comments
I would also like to attempt to add this feature, and will be looking to create a PR for this. |
This seems a duplicate of #144 where we discussed this at length and decided not to do it. TL;DR: Check out that discussion and let me know if you understand and agree on the reasons why. I won't close it because my suggestion now would be to add a note about this in the README in the documentation for |
I think that makes sense and I will close out the issue. |
Describe the feature you'd like:
With a11y suggesting removing the native 'disabled' attribute, I was hoping
toBeDisabled
could check foraria-disabled
attribute to be true as well.Suggested implementation:
Adding a check for
aria-disabled
is true withinisElementDisabled
.Describe alternatives you've considered:
Currently we use
.toHaveAttribute('aria-disabled', 'true')
, but would be nice to be able to use.toBeDisabled()
Teachability, Documentation, Adoption, Migration Strategy:
Here are some links for more detail on
aria-disabled
:The text was updated successfully, but these errors were encountered: