Skip to content

Commit 639548c

Browse files
authored
Update keyboard pattern links (#5055)
1 parent 0b5321d commit 639548c

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

packages/@react-aria/gridlist/docs/useGridList.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ By default, `useGridList` uses the `"toggle"` selection behavior, which behaves
463463

464464
When `selectionBehavior` is set to `"replace"`, clicking a row with the mouse replaces the selection with only that row. Using the arrow keys moves both focus and selection. To select multiple rows, modifier keys such as <Keyboard>Ctrl</Keyboard>, <Keyboard>Cmd</Keyboard>, and <Keyboard>Shift</Keyboard> can be used. On touch screen devices, selection always behaves as toggle since modifier keys may not be available.
465465

466-
These selection styles implement the behaviors defined in [Aria Practices](https://w3c.github.io/aria-practices/#listbox_kbd_interaction).
466+
These selection styles implement the behaviors defined in [Aria Practices](https://www.w3.org/WAI/ARIA/apg/patterns/listbox/#keyboardinteraction).
467467

468468
```tsx example
469469
<PokemonList aria-label="List with replace selection behavior" selectionMode="multiple" selectionBehavior="replace" />

packages/@react-aria/listbox/docs/useListBox.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ By default, `useListBox` uses the `"toggle"` selection behavior, which behaves l
263263

264264
When `selectionBehavior` is set to `"replace"`, clicking a row with the mouse replaces the selection with only that row. Using the arrow keys moves both focus and selection. To select multiple rows, modifier keys such as <Keyboard>Ctrl</Keyboard>, <Keyboard>Cmd</Keyboard>, and <Keyboard>Shift</Keyboard> can be used. On touch screen devices, selection always behaves as toggle since modifier keys may not be available.
265265

266-
These selection behaviors are defined in [Aria Practices](https://w3c.github.io/aria-practices/#listbox_kbd_interaction).
266+
These selection behaviors are defined in [Aria Practices](https://www.w3.org/WAI/ARIA/apg/patterns/listbox/#keyboardinteraction).
267267

268268
```tsx example
269269
<ListBox label="Choose sandwich contents" selectionMode="multiple" selectionBehavior="replace">

packages/@react-spectrum/list/docs/ListView.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ In the highlight selection style, however, clicking a row with the mouse _replac
337337
modifier keys such as <Keyboard>Ctrl</Keyboard>, <Keyboard>Cmd</Keyboard>, and <Keyboard>Shift</Keyboard> can be used. On touch screen devices, selection always behaves as toggle since modifier
338338
keys may not be available.
339339

340-
These selection styles implement the behaviors defined in [Aria Practices](https://w3c.github.io/aria-practices/#listbox_kbd_interaction).
340+
These selection styles implement the behaviors defined in [Aria Practices](https://www.w3.org/WAI/ARIA/apg/patterns/listbox/#keyboardinteraction).
341341

342342
```tsx example
343343
// Using the same list as above
@@ -1082,7 +1082,7 @@ function CustomDragPreviewExample() {
10821082
);
10831083
}
10841084
```
1085-
1085+
10861086
</details>
10871087

10881088
```tsx example

packages/@react-spectrum/table/docs/TableView.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ In the highlight selection style, however, clicking a row with the mouse _replac
490490
modifier keys such as <Keyboard>Ctrl</Keyboard>, <Keyboard>Cmd</Keyboard>, and <Keyboard>Shift</Keyboard> can be used. On touch screen devices, selection always behaves as toggle since modifier
491491
keys may not be available.
492492

493-
These selection styles implement the behaviors defined in [Aria Practices](https://w3c.github.io/aria-practices/#listbox_kbd_interaction).
493+
These selection styles implement the behaviors defined in [Aria Practices](https://www.w3.org/WAI/ARIA/apg/patterns/listbox/#keyboardinteraction).
494494

495495
```tsx example
496496
<PokemonTable selectionMode="multiple" selectionStyle="highlight" />

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ By default, `GridList` uses the `"toggle"` selection behavior, which behaves lik
558558

559559
When `selectionBehavior` is set to `"replace"`, clicking a row with the mouse replaces the selection with only that row. Using the arrow keys moves both focus and selection. To select multiple rows, modifier keys such as <Keyboard>Ctrl</Keyboard>, <Keyboard>Cmd</Keyboard>, and <Keyboard>Shift</Keyboard> can be used. On touch screen devices, selection always behaves as toggle since modifier keys may not be available.
560560

561-
These selection styles implement the behaviors defined in [Aria Practices](https://w3c.github.io/aria-practices/#listbox_kbd_interaction).
561+
These selection styles implement the behaviors defined in [Aria Practices](https://www.w3.org/WAI/ARIA/apg/patterns/listbox/#keyboardinteraction).
562562

563563
```tsx example
564564
<PokemonList

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ By default, `ListBox` uses the `"toggle"` selection behavior, which behaves like
379379

380380
When `selectionBehavior` is set to `"replace"`, clicking a row with the mouse replaces the selection with only that row. Using the arrow keys moves both focus and selection. To select multiple rows, modifier keys such as <Keyboard>Ctrl</Keyboard>, <Keyboard>Cmd</Keyboard>, and <Keyboard>Shift</Keyboard> can be used. On touch screen devices, selection always behaves as toggle since modifier keys may not be available.
381381

382-
These selection behaviors are defined in [Aria Practices](https://w3c.github.io/aria-practices/#listbox_kbd_interaction).
382+
These selection behaviors are defined in [Aria Practices](https://www.w3.org/WAI/ARIA/apg/patterns/listbox/#keyboardinteraction).
383383

384384
```tsx example
385385
<ListBox

0 commit comments

Comments
 (0)