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
### Action menu component (now with custom styles!)
9
+
10
+
Introduces `@spectrum-css/actionmenu`, a composition of `ActionButton`, `Popover`, and `Menu` to present action lists from a trigger. Now with custom styles!
11
+
12
+
- Adds wrapper classes: `spectrum-ActionMenu`, `spectrum-ActionMenu-trigger`, `spectrum-ActionMenu-popover`, and `spectrum-ActionMenu-menu`.
13
+
- Supports long press triggers and four placements (start/end, top/bottom) via the underlying popover API.
- If you previously composed an action menu manually (action button + popover + menu), you can adopt the new wrapper classes without changing the underlying markup semantics. Ensure the trigger has `aria-haspopup="menu"` and manages `aria-expanded` according to your application logic.
19
+
- For spacing customizations previously done with ad‑hoc margins, switch to the new `--spectrum-actionmenu-button-to-menu-gap` custom property.
<!-- popover positioning/visibility is owned by your implementation -->
38
+
<!-- use long-press behavior when appropriate to your UX -->
39
+
<!-- use Popover placement options: bottom-start, bottom-end, start-top, end-top -->
40
+
</div>
41
+
```
42
+
43
+
### Menu refinements
44
+
45
+
Updates `@spectrum-css/menu` styles to align with latest Spectrum 2 design specifications and improve accessibility.
46
+
47
+
- Updated `.is-selectableMultiple .spectrum-Menu-itemCheckbox` to `.is-selectableMultiple:not(:has(.is-selectable)) .spectrum-Menu-itemCheckbox` to prevent clash with the `.is-selectable` placement.
48
+
- Non-breaking; no class or DOM changes required.
49
+
50
+
### Action button refinements
51
+
52
+
- Selection styling now applies when components use ARIA pressed/expanded semantics, not just `.is-selected`.
53
+
- Implemented with `:where()` to keep selector specificity low and prevent downstream specificity battles.
54
+
- Non-breaking; no class changes required.
55
+
56
+
### Action group refinements
57
+
58
+
Aligns selection behavior of grouped items with action button updates.
59
+
60
+
- Adds `:where([aria-pressed="true"], [aria-expanded="true"])` alongside `.is-selected` on items to cover more accessibility use-cases while keeping specificity low.
* An action button can have a hold icon (a small corner triangle). This icon indicates that holding down the action button for a
182
-
* short amount of time can reveal a [popover](/docs/components-popover--docs) menu, which can be used, for example, to switch
183
-
* between related actions. Note that this popover menu is not demonstrated here—this would be handled by the implementation.
201
+
* short amount of time (currently the standard is 300ms) can reveal a [popover](/docs/components-popover--docs) menu, which can be used, for example, to switch
202
+
* between related actions. Note that this popover menu is not demonstrated here; this would be handled by the implementation.
184
203
* Because of the way padding is calculated, the hold icon must be placed before the workflow icon in the markup.
0 commit comments