---
title: "Menu styling reference"
source: https://support.storeconnect.com/articles/pos-menu-styling-reference
type: article
format: markdown
site: StoreConnect Support — product and developer documentation for StoreConnect
site_index: https://storeconnect.com/llms.txt
docs_index: https://support.storeconnect.com/llms.txt
note: Append .md to any page or article URL on this site to get its Markdown form.
---
# Menu styling reference

A menu is a column of things a person can do, on a raised card: the items of a group in the
navigation, opened under the group's button or floating over the page. Follow the
[POS styling API](pos-styling-api#rules) rules when styling it.

## Where it appears

The menus the action navigation opens: a group's items floating from the sidebar or the bar,
and a group opened inside another menu, which sits on the outer menu's card. The items are
[list buttons](pos-list-button-styling-reference).

## Parts

| Part | What it is | Available from |
| --- | --- | --- |
| `menu-root` | The whole menu: the card with the fill, corners, and shadow, holding the items. | v22.0.13 |

The **Available from** column shows the first release that carries the name.

## Attributes

Narrow `menu-root` by this, inside `:where()`, to style one kind of menu.

| Attribute | Values | Default | Available from |
| --- | --- | --- | --- |
| `data-placement` | `inline`, `below`, `beside` | `inline` | v22.0.13 |

- `inline` — in the flow of what holds it, such as a group opened inside the More menu, on that menu's card
- `below` and `beside` — floating over the page, below or beside the button that opened it

## Component properties

Set these on `menu-root` to change every menu, or narrow by `data-placement` to change one
kind. A fill set on `menu-root` also replaces the fill of a group with a configured color. The
group's items keep the text color chosen for the configured fill, so check that they still
read on yours.

| Property | What it sets | Default | Available from |
| --- | --- | --- | --- |
| `--sc-menu-bg` | The fill of the menu. It falls back to the overlay surface color, and a menu inside another to none. | none | v22.0.13 |
| `--sc-menu-width` | The width of a floating menu. | max-content | v22.0.13 |

## Examples

Each example is tested against the POS on every change.

**"Give the menus a darker fill."**

```css

[part~='menu-root'] {
  --sc-menu-bg: #e3e8ef;
}
```

**"Make the menus that open below their button wider."**

```css

[part~='menu-root']:where([data-placement='below']) {
  --sc-menu-width: 280px;
}
```

**"Round the menus that open beside their button less."**

```css

[part~='menu-root']:where([data-placement='beside']) {
  border-radius: 8px;
}
```

A menu that opens below a button is square where it joins the button. A `border-radius` on it
rounds that corner too.

## What can't be styled yet

- The corners of a menu inside another, such as a group opened in the More menu, which the navigation sets on the menu itself. A `background-color` set on `menu-root` doesn't reach it either; set the fill with `--sc-menu-bg`
- The fill of the button a floating menu opens below, which joins the menu but keeps a fill of its own, so a fill set on `menu-root` doesn't reach it
- Which side a floating menu opens toward, which follows where it is on the screen
## Retired

None yet.

---

## Follow StoreConnect

- [Email Newsletter](https://storeconnect.com/c/lp-newsletter)
- [LinkedIn Newsletter](https://www.linkedin.com/build-relation/newsletter-follow?entityUrn=7444956928444862464)
- [YouTube](https://www.youtube.com/channel/UCngKdP2x8l1wcbAKW3tvU8g)
- [LinkedIn](https://www.linkedin.com/company/storeconnect)
- [X / Twitter](https://x.com/storeconnecthq)

## Popular Links

- [Partners](https://storeconnect.com/partners)
- [Become a Partner](https://storeconnect.com/become-a-partner)
- [News](https://storeconnect.com/articles/news)
- [Events](https://storeconnect.com/articles/events)
- [Feature Comparison](https://storeconnect.com/how-we-compare)
- [Download a free trial](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FMkeKUAT)
- [Book a Demo](https://storeconnect.com/contact)

## Documentation

- [Help documentation](https://support.storeconnect.com/help-documentation)
- [AI agents](https://support.storeconnect.com/ai)
- [Videos & tutorials](https://support.storeconnect.com/videos-tutorials)
- [Developer reference](https://support.storeconnect.com/developer-reference)
- [Release notes](https://support.storeconnect.com/release-notes)
- [Troubleshooting](https://support.storeconnect.com/troubleshooting)
- [Trust Center](https://trust.getstoreconnect.com/)
- [Status Page](https://status.storeconnect.com/)

## Contact

- info@getstoreconnect.com
- US +1 415 745 3230
- AUS +61 2 8365 2308

100 S Ashley Dr, Suite 600-2461
Tampa FL 33602-600 USA

Level 22, Sydney Place
180 George Street
Sydney, NSW, 2000, AUS

## Machine-readable

- [Site index for agents](https://storeconnect.com/llms.txt): curated map of the StoreConnect site in llms.txt format
- [Documentation index for agents](https://support.storeconnect.com/llms.txt): full technical and product documentation map

Every page and article on this site has a Markdown rendering: append `.md` to its URL.

Continue in Markdown: [Help documentation](https://support.storeconnect.com/help-documentation.md) · [Developer reference](https://support.storeconnect.com/developer-reference.md) · [Videos & tutorials](https://support.storeconnect.com/videos-tutorials.md) · [Release notes](https://support.storeconnect.com/release-notes.md)

---

StoreConnect Support — https://support.storeconnect.com/articles/pos-menu-styling-reference