From 62a6b66b46123247554324bd1cb7b5feeb4c2170 Mon Sep 17 00:00:00 2001 From: Mat Harris Date: Wed, 30 Oct 2024 14:21:20 -0400 Subject: [PATCH] Radio button: Update SVG to be aria-hidden (#829) * fix(radio): remove aria-label and add aria-hidden * Update .changeset/silver-starfishes-look.md Co-authored-by: Brent Swisher --------- Co-authored-by: Brent Swisher --- .changeset/silver-starfishes-look.md | 5 +++++ .../src/components/radio-button/pharos-radio-button.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/silver-starfishes-look.md diff --git a/.changeset/silver-starfishes-look.md b/.changeset/silver-starfishes-look.md new file mode 100644 index 00000000..a9c66a65 --- /dev/null +++ b/.changeset/silver-starfishes-look.md @@ -0,0 +1,5 @@ +--- +'@ithaka/pharos': patch +--- + +Update the radio button SVG icon to use aria-hidden instead of aria-label diff --git a/packages/pharos/src/components/radio-button/pharos-radio-button.ts b/packages/pharos/src/components/radio-button/pharos-radio-button.ts index 28867209..6f8c304b 100644 --- a/packages/pharos/src/components/radio-button/pharos-radio-button.ts +++ b/packages/pharos/src/components/radio-button/pharos-radio-button.ts @@ -97,7 +97,7 @@ export class PharosRadioButton extends FormMixin(FormElement) { height="24" class="input__icon" role="img" - aria-label="radio button" + aria-hidden="true" focusable="false" @click="${this._handleClick}" >