Skip to content

Commit 320f0d7

Browse files
docs(tray): update docs with keyboard nav info
1 parent 4321b34 commit 320f0d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/tray/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ By default, `<sp-tray>` automatically detects whether its slotted content includ
7878
These built-in dismiss buttons:
7979

8080
- Are visually hidden but accessible to screen readers
81-
- Use `tabindex="-1"` to prevent keyboard tab navigation interference
8281
- Allow mobile screen reader users to easily dismiss the tray from either the beginning or end of the content
8382
- Are labeled "Dismiss" for clear screen reader announcements
8483

@@ -88,7 +87,7 @@ This dismiss helper pattern is also implemented in the [`<sp-picker>`](https://o
8887
<sp-tab value="auto">Content has no buttons</sp-tab>
8988
<sp-tab-panel value="auto">
9089

91-
This example shows the default behavior where the tray automatically detects that the menu content lacks dismiss buttons and renders visually hidden helpers. Screen readers will announce them as "Dismiss, button."
90+
This example shows the default behavior where the tray automatically detects that the menu content lacks dismiss buttons and renders visually hidden helpers. Screen readers will announce them as "Dismiss, button" and these helpers are keyboard accessible.
9291

9392
```html
9493
<overlay-trigger type="modal">

0 commit comments

Comments
 (0)