You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/tray/README.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,6 @@ By default, `<sp-tray>` automatically detects whether its slotted content includ
78
78
These built-in dismiss buttons:
79
79
80
80
- Are visually hidden but accessible to screen readers
81
-
- Use `tabindex="-1"` to prevent keyboard tab navigation interference
82
81
- Allow mobile screen reader users to easily dismiss the tray from either the beginning or end of the content
83
82
- Are labeled "Dismiss" for clear screen reader announcements
84
83
@@ -88,7 +87,7 @@ This dismiss helper pattern is also implemented in the [`<sp-picker>`](https://o
88
87
<sp-tabvalue="auto">Content has no buttons</sp-tab>
89
88
<sp-tab-panelvalue="auto">
90
89
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.
0 commit comments