Skip to content

Commit

Permalink
fix(components): Removed the label ref from aria-describedby in post-… (
Browse files Browse the repository at this point in the history
#3864)

Cherry-pick commit onto v7

…… (#3625)

…card-control

---------

Co-authored-by: Myrta Sakellariou <[email protected]>
Co-authored-by: Alizé Debray <[email protected]>
Co-authored-by: Alizé Debray <[email protected]>
  • Loading branch information
4 people authored Nov 5, 2024
1 parent bfd66a9 commit 86e3587
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/selfish-ways-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-components': patch
---

Fixed the `post-card-control` label read twice by screen readers.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export class PostCardControl {
name={this.name}
value={this.value}
checked={this.checked}
aria-describedby={`${this.controlId}_label ${this.controlId}_content`}
aria-describedby={`${this.controlId}_content`}
aria-disabled={this.disabled}
aria-invalid={this.validity === 'false'}
onClick={this.controlClickHandler}
Expand Down

0 comments on commit 86e3587

Please sign in to comment.