Skip to content

Commit a61f4f8

Browse files
authored
fix docs wrong links/typos (#8069)
1 parent 0151935 commit a61f4f8

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

packages/@react-aria/menu/docs/useMenu.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import tailwindPreview from 'url:./tailwind.png';
2727

2828
---
2929
category: Collections
30-
keywords: [menu trigger, mutli-select menu, aria]
30+
keywords: [menu trigger, multi-select menu, aria]
3131
---
3232

3333
# useMenu

packages/@react-spectrum/picker/docs/Picker.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ keywords: [select, collections, dropdown]
5252
```
5353

5454
## Content
55-
Picker follows the [Collection Components](../react-stately/collections.html) API, accepting both static and dynamic collections. Similar to [Menu](MenuTrigger.html), Picker accepts `<Item>` elements as children, each with a `key` prop. Basic usage of Picker, seen in the example above, shows multiple options populated with a string. Static collections, as in this example, can be used when the full list of options is known ahead of time.
55+
Picker follows the [Collection Components](../react-stately/collections.html) API, accepting both static and dynamic collections. Similar to [Menu](Menu.html), Picker accepts `<Item>` elements as children, each with a `key` prop. Basic usage of Picker, seen in the example above, shows multiple options populated with a string. Static collections, as in this example, can be used when the full list of options is known ahead of time.
5656

5757
Dynamic collections, as shown below, can be used when the options come from an external data source such as an API call, or update over time. Providing the data in this way allows Picker to automatically cache the rendering of each item, which dramatically improves performance.
5858

packages/@react-spectrum/text/docs/Keyboard.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ which can be used within a Spectrum container such as a [Menu](Menu.html).
4545
from the parent container. In addition, `Keyboard` will be automatically
4646
placed within the container's layout according to Spectrum guidelines.
4747

48-
See [Menu](MenuTrigger.html#complex-menu-items) for examples of how to use the
48+
See [Menu](Menu.html#complex-menu-items) for examples of how to use the
4949
`Keyboard` component in the context of a Spectrum container.
5050
See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd) for more
5151
information about the semantics of the `kbd` element.

packages/dev/docs/pages/react-spectrum/layout.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ and `Dialog` takes care of positioning and styling them properly for the dialog
248248
these items can change depending on the screen size. For example, the buttons in full screen dialogs move from the
249249
top to the bottom on mobile.
250250

251-
Another example of this is the complex items supported by [Picker](Picker.html) and [Menu](MenuTrigger.html). These components allow
251+
Another example of this is the complex items supported by [Picker](Picker.html) and [Menu](Menu.html). These components allow
252252
icons, text, and descriptions to be added as children of items, and the layout and styling is handled automatically.
253253
The icon and main text element of an item are placed in slots automatically, and the description text element is
254254
placed using the `slot` prop to specify a named area.

packages/react-aria-components/docs/ColorSlider.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ A `<SliderOutput>` renders the current value of the color slider as text.
457457

458458
### SliderTrack
459459

460-
The `<SliderTrack>` component renders a gradient repreresenting the colors that can be selected for the color channel, and contains a `<ColorThumb>` element.
460+
The `<SliderTrack>` component renders a gradient representing the colors that can be selected for the color channel, and contains a `<ColorThumb>` element.
461461

462462
<details>
463463
<summary style={{fontWeight: 'bold'}}><ChevronRight size="S" /> Show props</summary>

packages/react-aria-components/docs/ColorWheel.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ The `aria-valuetext` of the `<input>` element is formatted according to the user
272272

273273
### ColorWheelTrack
274274

275-
The `<ColorWheelTrack>` component renders a circular gradient repreresenting the colors that can be selected for the color channel.
275+
The `<ColorWheelTrack>` component renders a circular gradient representing the colors that can be selected for the color channel.
276276

277277
<details>
278278
<summary style={{fontWeight: 'bold'}}><ChevronRight size="S" /> Show props</summary>

packages/react-aria-components/docs/FileTrigger.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function Example(){
6868

6969
## Features
7070

71-
A file input can be created with an `<input type=“file”>` element, but this supports limited styling options and may not integrate well with the overall design of a website or application. To overcome this, `FileTrigger` extends the functionality of the standard file input element by working with a pressable child such as a `Button` to create accessible file inputs that can be style as needed.
71+
A file input can be created with an `<input type=“file”>` element, but this supports limited styling options and may not integrate well with the overall design of a website or application. To overcome this, `FileTrigger` extends the functionality of the standard file input element by working with a pressable child such as a `Button` to create accessible file inputs that can be styled as needed.
7272

7373
* **Customizable** – Works with any pressable React Aria or React Spectrum component, and custom components built with [usePress](usePress.html).
7474

packages/react-aria-components/docs/Menu.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {StarterKits} from '@react-spectrum/docs/src/StarterKits';
2929

3030
---
3131
category: Collections
32-
keywords: [menu trigger, mutli-select menu, aria]
32+
keywords: [menu trigger, multi-select menu, aria]
3333
type: component
3434
---
3535

packages/react-aria-components/docs/Tree.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ import {
252252

253253
A tree can be built using the [&lt;ul&gt;](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul), [&lt;li&gt;](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li),
254254
and [&lt;ol&gt;](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol), but is very limited in functionality especially when it comes to user interactions.
255-
HTML lists are meant for static content, rather than heirarchies with rich interactions like focusable elements within cells, keyboard navigation, item selection, sorting, etc.
255+
HTML lists are meant for static content, rather than hierarchies with rich interactions like focusable elements within cells, keyboard navigation, item selection, sorting, etc.
256256
`Tree` helps achieve accessible and interactive tree components that can be styled as needed.
257257

258258
* **Item selection** – Single or multiple selection, with optional checkboxes, disabled items, and both `toggle` and `replace` selection behaviors.
@@ -632,9 +632,9 @@ Items may also have an action specified by directly applying `onAction` on the `
632632
id="ivysaur"
633633
title="Ivysaur">
634634
<MyTreeItem
635-
onAction={() => alert(`Opening Venisaur...`)}
636-
id="venisaur"
637-
title="Venisaur" />
635+
onAction={() => alert(`Opening Venusaur...`)}
636+
id="venusaur"
637+
title="Venusaur" />
638638
</MyTreeItem>
639639
</MyTreeItem>
640640
</Tree>
@@ -660,8 +660,8 @@ Tree items may also be links to another page or website. This can be achieved by
660660
href="https://pokemondb.net/pokedex/ivysaur"
661661
target="_blank">
662662
<MyTreeItem
663-
id="venisaur"
664-
title="Venisaur"
663+
id="venusaur"
664+
title="Venusaur"
665665
href="https://pokemondb.net/pokedex/venusaur"
666666
target="_blank" />
667667
</MyTreeItem>
@@ -691,7 +691,7 @@ Note that you are responsible for the styling of disabled items, however, the se
691691
{/*- begin highlight -*/}
692692
<MyTreeItem id="ivysaur" title="Ivysaur" isDisabled>
693693
{/*- end highlight -*/}
694-
<MyTreeItem id="venisaur" title="Venisaur" />
694+
<MyTreeItem id="venusaur" title="Venusaur" />
695695
</MyTreeItem>
696696
</MyTreeItem>
697697
</Tree>
@@ -713,7 +713,7 @@ When `disabledBehavior` is set to `selection`, interactions such as focus, dragg
713713
{/*- begin highlight -*/}
714714
<MyTreeItem id="ivysaur" title="Ivysaur" isDisabled>
715715
{/*- end highlight -*/}
716-
<MyTreeItem id="venisaur" title="Venisaur" />
716+
<MyTreeItem id="venusaur" title="Venusaur" />
717717
</MyTreeItem>
718718
</MyTreeItem>
719719
</Tree>

0 commit comments

Comments
 (0)