-
-
Notifications
You must be signed in to change notification settings - Fork 627
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
aria-invalid={true/false} incorrectly fails check #125
Comments
If I'm misunderstanding your issue, please provide some code so I can unconfuse myself :-) |
That's what I did and it still failed. |
aha, thanks for clarifying. |
ah good find, thanks! basically, the ARIA properties needs to be able to handle multiple types. In this case, aria-invalid can be either a token or a boolean. would you be interested in trying to fix this bug? i'd be happy to help you along the way! |
Sure, what did you have in mind to fix this? One option I had considered was removing the constraint that all token values had to be string, and instead matching that the token value merely === the value stored in ARIA.json, I'd then update ARIA-INVALID's value's to be |
Fixed in #126 |
published in v3.0.2! thanks for reporting and your help fixing! |
When specifying aria-invalid="false" or aria-invalid="true", the value gets converted into a boolean by getLiteralPropValue(), which fails the token check because it's looking for a "string".
The text was updated successfully, but these errors were encountered: