Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
k11q committed Jul 18, 2023
1 parent 0d6e97c commit 2a9c91e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/components/tables/KeyboardTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const props = defineProps<DataAttributesTableProps>();
<ProseTable>
<ProseThead>
<ProseTr>
<ProseTh class="w-[45%]">
<ProseTh class="">
<span>Key</span>
</ProseTh>
<ProseTh class="w-[55%]">
<ProseTh class="">
<span>Description</span>
</ProseTh>
</ProseTr>
Expand Down
16 changes: 8 additions & 8 deletions docs/content/components/accordion.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,11 @@ Adheres to the [Accordion WAI-ARIA design pattern](https://www.w3.org/WAI/ARIA/a
<KeyboardTable :data="[
{
keys: ['Space'],
description: 'Moves focus to the next',
description: 'When focus is on an <code>AccordionTrigger</code> of a collapsed section, expands the section.',
},
{
keys: ['Enter'],
description: 'Moves focus to the next',
description: 'When focus is on an <code>AccordionTrigger</code> of a collapsed section, expands the section.',
},
{
keys: ['Tab'],
Expand All @@ -462,25 +462,25 @@ Adheres to the [Accordion WAI-ARIA design pattern](https://www.w3.org/WAI/ARIA/a
},
{
keys: ['ArrowDown'],
description: 'Moves focus to the next',
description: 'Moves focus to the next <code>AccordionTrigger</code> when <code>orientation</code> is <code>vertical</code>.',
},
{
keys: ['ArrowUp'],
description: 'Moves focus to the next',
description: 'Moves focus to the previous <code>AccordionTrigger</code> when <code>orientation</code> is <code>vertical</code>.',
},
{
keys: ['ArrowRight'],
description: 'Moves focus to the next',
description: 'Moves focus to the next <code>AccordionTrigger</code> when <code>orientation</code> is <code>horizontal</code>.',
},
{
keys: ['ArrowLeft'],
description: 'Moves focus to the next',
description: 'Moves focus to the previous <code>AccordionTrigger</code> when <code>orientation</code> is <code>horizontal</code>.',
},
{
keys: ['Home'],
description: 'Moves focus to the next',
description: 'When focus is on an <code>AccordionTrigger</code>, moves focus to the start <code>AccordionTrigger</code>.',
},
{
keys: ['End'],
description: 'Moves focus to the next',
description: 'When focus is on an <code>AccordionTrigger</code>, moves focus to the last <code>AccordionTrigger</code>.',
}]" />
14 changes: 13 additions & 1 deletion docs/content/components/alert-dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ description: 'Change the default rendered element for the one passed as a child,

Use the controlled props to programmatically close the Alert Dialog after an async operation has completed.

```vue line=14,15,18,23-29,32
```vue line=14,15,18,23-30,32
<script setup>
import {
AlertDialogAction,
Expand Down Expand Up @@ -346,4 +346,16 @@ Adheres to the [Alert and Message Dialogs WAI-ARIA design pattern](https://www.w
<KeyboardTable :data="[{
keys: ['Space'],
description: 'Opens/closes the dialog.',
},{
keys: ['Enter'],
description: 'Opens/closes the dialog.',
},{
keys: ['Tab'],
description: 'Moves focus to the next focusable element.',
},{
keys: ['Shift + Tab'],
description: 'Moves focus to the previous focusable element.',
},{
keys: ['Esc'],
description: 'Closes the dialog and moves focus to <Code>AlertDialogTrigger</code>.',
}]" />
2 changes: 1 addition & 1 deletion docs/content/components/dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ If you want to hide the description, wrap it inside our Visually Hidden utility

Use the controlled props to programmatically close the Dialog after an async operation has completed.

```vue line=10,11,16,21-26,28
```vue line=10,11,15,20-27,29
<script setup>
import {
DialogRoot,
Expand Down

0 comments on commit 2a9c91e

Please sign in to comment.