-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(FileUploader): remove invalid default role value #4209
fix(FileUploader): remove invalid default role value #4209
Conversation
Hey, sorry I didn't see that the other variants have the same DAP error, just was looking at the code in that PR, my bad. I'm gonna edit that issue I made to address the issue in the fileUploader itself and your PR (#3872) is good to go for this release! Sorry to add more work on your plate. |
Deploy preview for the-carbon-components ready! Built with commit cdb909a https://deploy-preview-4209--the-carbon-components.netlify.com |
Deploy preview for carbon-components-react ready! Built with commit cdb909a https://deploy-preview-4209--carbon-components-react.netlify.com |
Deploy preview for carbon-elements ready! Built with commit cdb909a |
so do we want to just remove the I went ahead with the updates but if this is the solution we want to go with I can mark this as ready for review |
97e7d0f
to
c916b74
Compare
Looking into it, I don't know if the ideal solution is just to remove the |
what do you think @dakahn? |
yeah the label is for the input element so I'm not sure if changing the label to a different element is something we want to do, but I'm just removing the invalid default value in this PR. it may not need a role at all though given how labels act as triggers for their corresponding inputs IIRC |
It just makes the VO a bit weird, it announces it as a text element and doesn't tell you that it is interactive. It looks like the approach that accessible examples use it to have a |
sure I can make that change if that's the approach we want to take |
Up to you, if you want to do this work. Like I said the a11y project can do this or we can wait for DA and see what he says, he'll definitely know more than me about all this lol |
I originally opened this since it was identified as a release ship stopper but now that the issue's changed I'm ok with updating the PR to fit our new requirements |
c916b74
to
0350748
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Tested with VO and works perfectly, thanks for doing this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 - Thanks @emyarod!
Closes #4208
Closes #4221
This PR moves invalid role attribute on file uploader input
<label>
s to their child<span>
s or<div>
sChangelog
New
<span>
with valid role attribute within<FileUploaderButton />
Changed
role
attribute moved from file uploader<label>
to child<span>
or<div>
Testing / Reviewing
Ensure no DAP errors are thrown