Skip to content

Commit e4d25f1

Browse files
committed
fix(toggle): add missing aria-checked attribute
1 parent ac6eaae commit e4d25f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/components/toggle/toggle.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ export class Toggle implements ComponentInterface {
391391
return (
392392
<Host
393393
role="switch"
394+
aria-checked={`${checked}`}
394395
aria-describedby={this.getHintTextID()}
395396
aria-invalid={this.getHintTextID() === errorTextId}
396397
onClick={this.onClick}

0 commit comments

Comments
 (0)