Skip to content

Commit

Permalink
Add missing for-attribute and (hidden) label to input (#6249)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gomez committed Aug 23, 2024
1 parent 913670f commit 85f08bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/news/6249.fix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing `for` attribute to checkbox label to improve accessibility. @gomez
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ const CheckboxFacet = (props) => {
{choices.map(({ label, value }, i) => (
<div className="entry" key={value}>
<Checkbox
id={value}
disabled={isEditMode}
label={label}
htmlFor={value}
radio={!isMulti}
checked={
isMulti
Expand Down

0 comments on commit 85f08bc

Please sign in to comment.