We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa59ba1 commit 9490bc8Copy full SHA for 9490bc8
1 file changed
components/lib/togglebutton/ToggleButton.js
@@ -119,14 +119,14 @@ export const ToggleButton = React.memo(
119
onBlur: onBlur,
120
onKeyDown: onKeyDown,
121
tabIndex: tabIndex,
122
- role: 'switch',
123
type: 'checkbox',
124
- 'aria-pressed': props.checked,
125
'aria-invalid': props.invalid,
126
disabled: props.disabled,
127
readOnly: props.readonly,
128
value: props.checked,
129
- checked: props.checked
+ checked: props.checked,
+ 'aria-label': props['aria-label'],
+ 'aria-labelledby': props['aria-labelledby']
130
},
131
ptm('input')
132
);
0 commit comments