Skip to content

Commit dc628e6

Browse files
authored
fix(content-uploader): add button role to browse device label (#3819)
1 parent ebb26ff commit dc628e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/elements/content-uploader/UploadInput.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const UploadInput = ({
3535
};
3636

3737
return inputLabel ? (
38-
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions,jsx-a11y/no-noninteractive-tabindex
39-
<label className={inputLabelClass} onKeyDown={onKeyDown} tabIndex={0}>
38+
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role
39+
<label className={inputLabelClass} onKeyDown={onKeyDown} role="button" tabIndex={0}>
4040
{inputLabel}
4141
<input
4242
data-testid="upload-input"

0 commit comments

Comments
 (0)