Action group menu styling reference
On this page
An action group menu is the list of actions that opens when operators tap an action group’s button, such as the large button at the bottom of a screen or a button in a screen’s header. Your store sets up the group and the actions in it on a layout’s primary or secondary action item, with Type set to group. You can change the action group menu fill, corners, shadow, border, etc. Follow the POS styling API rules when you style the action group menu.
Where an action group menu appears
Action group menus open from two kinds of button:
- A primary action item: the large button at the bottom of a screen or a list of records, when that button is a group. The menu is the color set in Color on the action item, or white when the action item has no color.
- A secondary action item: a button in the header of a screen or a list of records, such as on a station’s screen. The menu has the default fill.
An action group menu opens below the button, or above the button when the button is in the lower half of the screen. A secondary action group menu on the right half of the screen lines up with the right edge of the button.
Parts
| Part | What it is | Available from |
|---|---|---|
action-group-menu-root |
The whole menu, with the fill, corners, and shadow. The actions in it have no part yet. | v22.0.19 |
The Available from column shows the first release that carries the name.
Attributes
Narrow action-group-menu-root by this, inside :where(), to style the primary menus or the secondary ones.
| Attribute | Values | Default | Available from |
|---|---|---|---|
data-kind |
primary, secondary |
secondary |
v22.0.19 |
primary: opened from the large button pinned to the bottom of a screen or a list. A fill you set on every menu also replaces the group’s color on these menus; narrow your rule tosecondaryto keep the group’s color.secondary: opened from a group in a header.
Component properties
None yet. Style the part directly.
Examples
Each example is tested against the POS on every change.
“Make the action menus’ corners squarer.”
```css
part~=’action-group-menu-root’ { border-radius: 8px; } ```
“Give the header menus a softer fill.”
```css
background-color: #f3f6fa; } ```
“Drop the shadow under the action menus.”
```css
part~=’action-group-menu-root’ { box-shadow: none; } ```
“Outline the action menus.”
```css
part~=’action-group-menu-root’ { border: 1px solid #d0d5dd; } ```
What can’t be styled yet
- The actions in the menu, which have no part yet
- One group’s menu alone, since no menu has a name yet
- How see-through the menu is and what it sits above: the POS sets the opacity, visibility, and stacking on the menu itself
- Where the menu opens beside the button
Retired
None yet.
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.