Skip to content

Commit 2bac1cd

Browse files
committed
Make the clickable label more accessible
1 parent 817ba0e commit 2bac1cd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@
44

55
### Breaking Changes
66

7+
#### Styling
8+
79
* The `iconsClass` property now defaults to `"fa5"` for Font Awesome 5/6 instead of Font Awesome 4
10+
11+
#### Accessibility
12+
813
* Hide the pseudo-checkbox from the accessibility tree
14+
* Change the clickable label from `role="link"` to `role="button"`
915

1016
## [v1.8.0](https://github.com/jakezatecky/react-checkbox-tree/compare/v1.7.3...v1.8.0) (2022-09-06)
1117

src/js/TreeNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class TreeNode extends React.PureComponent {
257257
<span
258258
key={1}
259259
className="rct-node-clickable"
260-
role="link"
260+
role="button"
261261
tabIndex={0}
262262
onClick={this.onClick}
263263
onKeyPress={this.onClick}

0 commit comments

Comments
 (0)