Skip to content
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

[a11y]: FileUploaderDropContainer's input needs to be moved outside label #10443

Closed
2 tasks done
TannerS opened this issue Jan 13, 2022 · 0 comments
Closed
2 tasks done

Comments

@TannerS
Copy link
Contributor

TannerS commented Jan 13, 2022

Package

carbon-components-react

Browser

No response

Operating System

No response

Package version

v10.50.0

React version

No response

Automated testing tool and ruleset

IBM Equal Access Accessibility Checker

Assistive technology

No response

Description

the FileUploaderDropContainer has it's input within it's label which sparks a a11y issue

3.3.2 Labels or Instructions: Text input is nested in label such that input precedes the label text

I think I fix for this is moving it outside the label

image

image

WCAG 2.1 Violation

3.3.2 Labels or Instructions

CodeSandbox example

https://react.carbondesignsystem.com/?path=/story/components-fileuploader--file-uploader-drop-container

Steps to reproduce

You can view it by ruinning the IBM Equal Access Accessibility Checker in the storybook for the FileUploaderDropContainer

https://react.carbondesignsystem.com/?path=/story/components-fileuploader--file-uploader-drop-container

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants