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
A tray has a single default `slot`. Expected content typically includes dialogs and their content, plain text, forms and/or form elements, and some native HTML elements. Always ensure that your tray's content is accessible according to WCAG standards.
33
29
34
30
```html
35
31
<overlay-triggertype="modal">
@@ -43,30 +39,6 @@ A tray has a single default `slot`.
<sp-menu-itemdisabled>Make Work Path</sp-menu-item>
62
-
</sp-menu>
63
-
</sp-tray>
64
-
</overlay-trigger>
65
-
```
66
-
67
-
</sp-tab-panel>
68
-
</sp-tabs>
69
-
70
42
### Accessibility
71
43
72
44
`<sp-tray>` presents a page blocking experience and should be opened with the `Overlay` API using the `modal` interaction to ensure that the content appropriately manages the presence of other content in the tab order of the page and the availability of that content for a screen reader.
@@ -87,20 +59,35 @@ This dismiss helper pattern is also implemented in the [`<sp-picker>`](https://o
87
59
<sp-tabvalue="auto">Content has no buttons</sp-tab>
88
60
<sp-tab-panelvalue="auto">
89
61
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.
62
+
This example shows the default behavior where the tray automatically detects that the 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