-
Notifications
You must be signed in to change notification settings - Fork 48
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
Provide a way to set aria-invalid on a file input element #457
Comments
that is the purview of the ARIA spec
hmm an option, as long as it is exposed by browsers in the acc tree, is to allow it on @scottaohara, @patrickhlauke any input on this? |
Ah I didn't notice that I wasn't filing for the ARIA repo - I will (also?) file a ticket there! |
@backwardok yeah the scope of the ARIA in HTML spec is
|
Related issue filed for ARIA: w3c/aria#1926 |
From @scottaohara via Slack:
Not sure what other ARIA attributes work for |
closes #457 `input type=file` can allow for the aria-required, invalid and disabled attributes. These attributes are already supported by checkers. Additionally, `input type=color` also allows for the `aria-disabled` attribute. Note HTML does not allow the required attribute for this element, so aria-required and invalid wouldn't be applicable here.
…uts (#464) closes #457 `input type=file` can allow for the aria-required, invalid and disabled attributes. These attributes are already supported by checkers. Additionally, `input type=color` also allows for the `aria-disabled` attribute. Note HTML does not allow the required attribute for this element, so aria-required and invalid wouldn't be applicable here.
Thank you! |
For an
<input type="file">
, there are many scenarios that would result in an invalid file chosen, whether the file type is incorrect or the file size is too large, or there was an issue with the file itself.The ARIA in HTML doc indicates that file input types have no role. In ARIA 1.2, aria-invalid is no longer a global attribute. This makes it so that it's not possible to apply the invalid state to a file input type.
It would be great to either revert
aria-invalid
back to a global property, or to add a file input type role and add it to the list of roles thataria-invalid
is supported on.The text was updated successfully, but these errors were encountered: