Skip to content

Commit 3379ef3

Browse files
committed
Default to latest Font Awesome version
Addresses part of #395.
1 parent 45732bc commit 3379ef3

13 files changed

+10
-14
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## v2.0.0 (TBA)
4+
5+
### Breaking Changes
6+
7+
* The `iconsClass` property now defaults to `"fa5"` for Font Awesome 5/6 instead of Font Awesome 4
8+
39
## [v1.8.0](https://github.com/jakezatecky/react-checkbox-tree/compare/v1.7.3...v1.8.0) (2020-09-06)
410

511
### Other

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ All node objects **must** have a unique `value`. This value is serialized into t
8383

8484
#### Changing the Default Icons
8585

86-
By default, **react-checkbox-tree** uses Font Awesome 4 for the various icons that appear in the tree. To utilize Font Awesome 5 icons, simply pass in `iconsClass="fa5"`:
86+
By default, **react-checkbox-tree** uses Font Awesome 5/6 for the various icons that appear in the tree. To utilize Font Awesome 4 icons, simply pass in `iconsClass="fa4"`:
8787

8888
``` jsx
8989
<CheckboxTree
9090
...
91-
iconsClass="fa5"
91+
iconsClass="fa4"
9292
/>
9393
```
9494

@@ -166,7 +166,7 @@ Returns:
166166
| `expandOnClick` | bool | If true, nodes will be expanded by clicking on labels. Requires a non-empty `onClick` function. | `false` |
167167
| `expanded` | array | An array of expanded node values. | `[]` |
168168
| `icons` | object | An object containing the mappings for the various icons and their components. See **Changing the Default Icons**. | `{ ... }` |
169-
| `iconsClass` | string | A string that specifies which icons class to utilize. Currently, `'fa4'` and `'fa5'` are supported. | `'fa4'` |
169+
| `iconsClass` | string | A string that specifies which icons class to utilize. Currently, `'fa4'` and `'fa5'` are supported. | `'fa5'` |
170170
| `id` | string | A string to be used for the HTML ID of the rendered tree and its nodes. | `null` |
171171
| `lang` | object | An object containing the language mappings for the various text elements. | `{ ... }` |
172172
| `name` | string | Optional name for the hidden `<input>` element. | `undefined` |

examples/src/js/BasicExample.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ class BasicExample extends React.Component {
116116
<CheckboxTree
117117
checked={checked}
118118
expanded={expanded}
119-
iconsClass="fa5"
120119
nodes={nodes}
121120
onCheck={this.onCheck}
122121
onExpand={this.onExpand}

examples/src/js/ClickableLabelsExample.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ class ClickExample extends React.Component {
125125
<CheckboxTree
126126
checked={checked}
127127
expanded={expanded}
128-
iconsClass="fa5"
129128
nodes={nodes}
130129
expandOnClick
131130
onCheck={this.onCheck}

examples/src/js/CustomIconsExample.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class CustomIconsExamples extends React.Component {
7171
<CheckboxTree
7272
checked={checked}
7373
expanded={expanded}
74-
iconsClass="fa5"
7574
nodes={nodes}
7675
onCheck={this.onCheck}
7776
onExpand={this.onExpand}

examples/src/js/DisabledExample.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ class DisabledExample extends React.Component {
117117
checked={checked}
118118
disabled
119119
expanded={expanded}
120-
iconsClass="fa5"
121120
nodes={nodes}
122121
onCheck={this.onCheck}
123122
onExpand={this.onExpand}

examples/src/js/ExpandAllExample.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ class ExpandAllExample extends React.Component {
117117
<CheckboxTree
118118
checked={checked}
119119
expanded={expanded}
120-
iconsClass="fa5"
121120
nodes={nodes}
122121
showExpandAll
123122
onCheck={this.onCheck}

examples/src/js/FilterExample.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ class FilterExample extends React.Component {
172172
<CheckboxTree
173173
checked={checked}
174174
expanded={expanded}
175-
iconsClass="fa5"
176175
nodes={nodesFiltered}
177176
onCheck={this.onCheck}
178177
onExpand={this.onExpand}

examples/src/js/HiddenCheckboxesExample.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ class HiddenCheckboxesExample extends React.Component {
122122
<CheckboxTree
123123
checked={checked}
124124
expanded={expanded}
125-
iconsClass="fa5"
126125
nodes={nodes}
127126
onlyLeafCheckboxes
128127
onCheck={this.onCheck}

examples/src/js/LargeDataExample.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ class LargeDataExample extends React.Component {
5454
<CheckboxTree
5555
checked={checked}
5656
expanded={expanded}
57-
iconsClass="fa5"
5857
nodes={nodes}
5958
onCheck={this.onCheck}
6059
onExpand={this.onExpand}

0 commit comments

Comments
 (0)