fix(fileinput): fix a11y issue with a disconnect between the label and hidden input#567
fix(fileinput): fix a11y issue with a disconnect between the label and hidden input#567
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes an accessibility issue by ensuring the Label component is properly associated with the hidden file input element generated by AriaFileTrigger. The fix wraps the entire file trigger component hierarchy in a Label element, establishing the necessary connection for assistive technologies.
Key Changes
- Wraps the
AriaFileTriggerand related components in aLabelcomponent to create proper label-input association - Refactors the label styling into a separate
labelStylesTV configuration with required field indicator - Converts the label text to a
<p>element to avoid nestingLabelcomponents
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Visit the preview URL for this PR (updated for commit c4ca6a2): |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.