From 106251e0e106b52f1ccf0b4efc26adc5a24249bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABlle=20Huisman?= Date: Fri, 11 Oct 2024 16:51:22 +0200 Subject: [PATCH] Fix select docs --- book/src/primitives/components/select.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/book/src/primitives/components/select.md b/book/src/primitives/components/select.md index 21794ec9..a4849038 100644 --- a/book/src/primitives/components/select.md +++ b/book/src/primitives/components/select.md @@ -87,11 +87,11 @@ fn Anatomy() -> Html { - + - + } } @@ -116,13 +116,13 @@ See the W3C [Select-Only Combobox](https://www.w3.org/WAI/ARIA/apg/patterns/comb ### Keyboard Interactions -| Key | Description | -| ----------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `Space` | When focus is on `SelectTrigger`, opens the select and focuses the selected item. When focus is on an item, selects the focused item. | -| `Enter` | When focus is on `SelectTrigger`, opens the select and focuses the first item. When focus is on an item, selects the focused item. | -| `ArrowDown` | When focus is on `SelectTrigger`, opens the select. When focus is on an item, moves focus to the next item. | -| `ArrowUp` | When focus is on `SelectTrigger`, opens the select. When focus is on an item, moves focus to the previous item. | -| `Esc` | Closes the select and moves focus to `Select.Trigger`. | +| Key | Description | +| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------ | +| `Space` | When focus is on `SelectTrigger`, opens the select and focuses the selected item.
When focus is on an item, selects the focused item. | +| `Enter` | When focus is on `SelectTrigger`, opens the select and focuses the first item.
When focus is on an item, selects the focused item. | +| `ArrowDown` | When focus is on `SelectTrigger`, opens the select.
When focus is on an item, moves focus to the next item. | +| `ArrowUp` | When focus is on `SelectTrigger`, opens the select.
When focus is on an item, moves focus to the previous item. | +| `Esc` | Closes the select and moves focus to `Select.Trigger`. | ### Labelling @@ -153,7 +153,7 @@ fn Labelling() -> Html { ... - + } @@ -169,4 +169,4 @@ TODO ## See Also -- [Radix documentation](https://www.radix-ui.com/primitives/docs/components/switch) +- [Radix documentation](https://www.radix-ui.com/primitives/docs/components/select)