Skip to content

Commit

Permalink
fix(CheckBox): Fix for unreadable labels in CheckBox for screen rea…
Browse files Browse the repository at this point in the history
…ders. (#1479)

Co-authored-by: Nikita Orliak <[email protected]>
  • Loading branch information
nikitaorliak-cengage and Nikita Orliak authored Oct 9, 2024
1 parent e29a9d8 commit 2157b47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/a11y-checkBox-labels-not-read.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-magma-dom': patch
---

fix(CheckBox): Fix for unreadable labels in `CheckBox` for screen readers.
1 change: 1 addition & 0 deletions packages/react-magma-dom/src/components/Checkbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ export const Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(
<StyledContainer style={containerStyle}>
<HiddenInput
{...other}
aria-label={labelText}
aria-describedby={describedBy}
id={id}
data-testid={testId}
Expand Down

2 comments on commit 2157b47

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.