Skip to content

Commit

Permalink
fix(checkbox): screen readers announce errors as invalid
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 549683048
  • Loading branch information
asyncLiz authored and copybara-github committed Jul 20, 2023
1 parent 154861c commit ec02fe4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions checkbox/lib/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export class Checkbox extends LitElement {
id="input"
aria-checked=${isIndeterminate ? 'mixed' : nothing}
aria-label=${ariaLabel || nothing}
aria-invalid=${this.error || nothing}
?disabled=${this.disabled}
.indeterminate=${this.indeterminate}
.checked=${this.checked}
Expand Down

0 comments on commit ec02fe4

Please sign in to comment.