Skip to content

Commit 0ab20e5

Browse files
committed
Hide non-native checkbox from accessibility tree
Previous implementation would announce two checkboxes per node to screen readers.
1 parent b370e7a commit 0ab20e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js/TreeNode.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ class TreeNode extends React.PureComponent {
239239
<span
240240
aria-checked={checked === 1}
241241
aria-disabled={disabled}
242+
aria-hidden="true"
242243
className="rct-checkbox"
243244
role="checkbox"
244245
tabIndex={0}

0 commit comments

Comments
 (0)