Skip to content

Commit 0e43975

Browse files
[tree-view][docs] Fix grammar and spelling mistakes (#19299)
Signed-off-by: mapache-salvaje <[email protected]>
1 parent 63a7ee8 commit 0e43975

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

docs/data/tree-view/quickstart/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ This is the recommended version for larger trees, as well as those that require
8888
### Accessibility
8989

9090
The MUI X Tree View follows the [WAI-ARIA authoring practices for a tree view](https://www.w3.org/WAI/ARIA/apg/patterns/treeview/).
91-
The component includes many built-in [accessibility features](/x/react-tree-view/accessibility/), but it's the developer's responsibilty to provide the component with a descriptive `aria-labelledby`or `aria-label` tag—otherwise, screen readers will announce it as "tree," making it difficult for the end user to understand the purpose of the tree items.
91+
The component includes many built-in [accessibility features](/x/react-tree-view/accessibility/), but it's the developer's responsibility to provide the component with a descriptive `aria-labelledby` or `aria-label` tag—otherwise, screen readers will announce it as "tree," making it difficult for the end user to understand the purpose of the tree items.
9292

9393
## TypeScript
9494

docs/data/tree-view/rich-tree-view/editing/editing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If set to `true`, this prop will enable label editing on all items:
2121
:::success
2222
If an item is editable, the editing state can be toggled by double clicking on it, or by pressing <kbd class="key">Enter</kbd> on the keyboard when the item is in focus.
2323

24-
Once an item is in editing state, the value of the label can be edited. Pressing <kbd class="key">Enter</kbd> again or bluring the item will save the new value. Pressing <kbd class="key">Esc</kbd> will cancel the action and restore the item to its original state.
24+
Once an item is in editing state, the value of the label can be edited. Pressing <kbd class="key">Enter</kbd> again or blurring the item will save the new value. Pressing <kbd class="key">Esc</kbd> will cancel the action and restore the item to its original state.
2525

2626
:::
2727

docs/data/tree-view/rich-tree-view/headless/headless.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ this page is still a _Work in Progress_ and its content is not meant to be used
1818

1919
### Basic plugin
2020

21-
A custom plugins contains 2 required elements:
21+
A custom plugin contains 2 required elements:
2222

2323
1. A hook that will be executed by the `useTreeView` hook:
2424

docs/data/tree-view/rich-tree-view/items/items.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ publicAPI.getParentId(itemId);
268268

269269
### Imperatively disable an item
270270

271-
Use the `setIsItemDisabled` API method to imperatively toggle the items's disabled state.
271+
Use the `setIsItemDisabled` API method to imperatively toggle the item's disabled state.
272272

273273
```ts
274274
publicAPI.setIsItemDisabled({

docs/data/tree-view/rich-tree-view/ordering/ordering.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ You can enable the drag & drop re-ordering of items by setting the `itemsReorder
2121

2222
By default, all the items are reorderable.
2323
You can prevent the re-ordering of some items using the `isItemReorderable` prop.
24-
The following example shows how to only allow re-ordering of the leaves using the [`getItemOrderedChildrenIds`](/x/react-tree-view/rich-tree-view/items/#get-an-items-children-by-id) API method.
24+
The following example shows how to only let users reorder the leaves using the [`getItemOrderedChildrenIds`](/x/react-tree-view/rich-tree-view/items/#get-an-items-children-by-id) API method.
2525

2626
{{"demo": "OnlyReorderLeaves.js"}}
2727

2828
You can also limit the items in which an item can be dropped using the `canMoveItemToNewPosition` prop.
29-
The following example shows how to only allow re-ordering inside the same parent:
29+
The following example shows how to only let users reorder inside the same parent:
3030

3131
{{"demo": "OnlyReorderInSameParent.js"}}
3232

docs/data/tree-view/rich-tree-view/selection/selection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ apiRef.current.setItemSelection({
136136
keepExistingSelection,
137137
// If `true` the item will be selected
138138
// If `false` the item will be deselected
139-
// If not defined, the item's selection status will toggled
139+
// If not defined, the item's selection status will be toggled
140140
shouldBeSelected,
141141
});
142142
```

docs/data/tree-view/simple-tree-view/selection/selection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/treeview/
1313

1414
## Single selection
1515

16-
By default, the Tree View allows selecting a single item.
16+
By default, the Tree View lets users select a single item.
1717

1818
{{"demo": "SingleSelectTreeView.js"}}
1919

0 commit comments

Comments
 (0)