From 2fdcb2c2b6efb31157deb156fd8dab76d2582874 Mon Sep 17 00:00:00 2001 From: navedqb <109583873+navedqb@users.noreply.github.com> Date: Thu, 22 May 2025 12:39:16 +0530 Subject: [PATCH 1/2] feat(TriStateCheckbox): add id prop to improve accessibility --- components/lib/tristatecheckbox/TriStateCheckbox.js | 1 + 1 file changed, 1 insertion(+) diff --git a/components/lib/tristatecheckbox/TriStateCheckbox.js b/components/lib/tristatecheckbox/TriStateCheckbox.js index bc02725b59..dac5431023 100644 --- a/components/lib/tristatecheckbox/TriStateCheckbox.js +++ b/components/lib/tristatecheckbox/TriStateCheckbox.js @@ -124,6 +124,7 @@ export const TriStateCheckbox = React.memo( const boxProps = mergeProps( { + id: props.id + '_box' className: cx('box'), tabIndex: props.disabled ? '-1' : props.tabIndex, onFocus: onFocus, From cba5e394ce8996a80517852331cb04989992b4dc Mon Sep 17 00:00:00 2001 From: navedqb <109583873+navedqb@users.noreply.github.com> Date: Thu, 22 May 2025 12:42:52 +0530 Subject: [PATCH 2/2] edit: comma --- components/lib/tristatecheckbox/TriStateCheckbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/tristatecheckbox/TriStateCheckbox.js b/components/lib/tristatecheckbox/TriStateCheckbox.js index dac5431023..1121de4188 100644 --- a/components/lib/tristatecheckbox/TriStateCheckbox.js +++ b/components/lib/tristatecheckbox/TriStateCheckbox.js @@ -124,7 +124,7 @@ export const TriStateCheckbox = React.memo( const boxProps = mergeProps( { - id: props.id + '_box' + id: props.id + '_box', className: cx('box'), tabIndex: props.disabled ? '-1' : props.tabIndex, onFocus: onFocus,