[a11y]: File uploader has static id
that can cause conflicts
#17556
Labels
component: file-uploader
good first issue 👋
Used by GitHub to elevate contribution opportunities
hacktoberfest
See https://hacktoberfest.com/
package: @carbon/react
@carbon/react
role: dev 🤖
severity: 2
https://ibm.biz/carbon-severity
type: a11y ♿
type: bug 🐛
Package
@carbon/react
Browser
Chrome
Operating System
MacOS
Package version
1.66.0
React version
No response
Automated testing tool and ruleset
devtools
Assistive technology
No response
Description
File uploader id are not unique:
id="description"
-> expected more complex id with incremental value likefileuploader-description-1
id="id1" -> expected more complex id like
fileuploader-input-1`See screenshot
File uploader could have ids like ie. Select -
carbon/packages/react/src/components/Select/Select.tsx
Line 209 in a9bddc8
Unique ID tool could have also similar complexity as above.
carbon/packages/react/src/tools/uniqueId.js
Lines 8 to 13 in 36685a0
WCAG 2.1 Violation
No response
Reproduction/example
https://react.carbondesignsystem.com/?path=/docs/components-fileuploader--overview
Steps to reproduce
Suggested Severity
None
Code of Conduct
The text was updated successfully, but these errors were encountered: