Skip to content

Commit c722104

Browse files
authored
fix: add id prop to improve accessibility (#8030)
* feat(TriStateCheckbox): add id prop to improve accessibility * edit: comma
1 parent 581f173 commit c722104

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

components/lib/tristatecheckbox/TriStateCheckbox.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export const TriStateCheckbox = React.memo(
124124

125125
const boxProps = mergeProps(
126126
{
127+
id: props.id + '_box',
127128
className: cx('box'),
128129
tabIndex: props.disabled ? '-1' : props.tabIndex,
129130
onFocus: onFocus,

0 commit comments

Comments
 (0)