Skip to content

Commit 3b2989b

Browse files
committed
Use slightly more semantic icon tags
1 parent e6f05bf commit 3b2989b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/js/TreeNode.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ class TreeNode extends React.Component {
6666

6767
renderCollapseIcon() {
6868
if (!this.props.expanded) {
69-
return <i className="rct-icon rct-icon-expand-close" />;
69+
return <span className="rct-icon rct-icon-expand-close" />;
7070
}
7171

72-
return <i className="rct-icon rct-icon-expand-open" />;
72+
return <span className="rct-icon rct-icon-expand-open" />;
7373
}
7474

7575
renderCollapseButton() {
7676
if (!this.hasChildren()) {
7777
return (
7878
<span className="rct-collapse">
79-
<i className="rct-icon" />
79+
<span className="rct-icon" />
8080
</span>
8181
);
8282
}
@@ -90,14 +90,14 @@ class TreeNode extends React.Component {
9090

9191
renderCheckboxIcon() {
9292
if (this.props.checked === 0) {
93-
return <i className="rct-icon rct-icon-uncheck" />;
93+
return <span className="rct-icon rct-icon-uncheck" />;
9494
}
9595

9696
if (this.props.checked === 1) {
97-
return <i className="rct-icon rct-icon-check" />;
97+
return <span className="rct-icon rct-icon-check" />;
9898
}
9999

100-
return <i className="rct-icon rct-icon-half-check" />;
100+
return <span className="rct-icon rct-icon-half-check" />;
101101
}
102102

103103
renderNodeIcon() {
@@ -106,14 +106,14 @@ class TreeNode extends React.Component {
106106
}
107107

108108
if (!this.hasChildren()) {
109-
return <i className="rct-icon rct-icon-leaf" />;
109+
return <span className="rct-icon rct-icon-leaf" />;
110110
}
111111

112112
if (!this.props.expanded) {
113-
return <i className="rct-icon rct-icon-parent-close" />;
113+
return <span className="rct-icon rct-icon-parent-close" />;
114114
}
115115

116-
return <i className="rct-icon rct-icon-parent-open" />;
116+
return <span className="rct-icon rct-icon-parent-open" />;
117117
}
118118

119119
renderChildren() {

0 commit comments

Comments
 (0)