{"title":"Nav styling reference","slug":"pos-nav-styling-reference","url":"https://support.storeconnect.com/articles/pos-nav-styling-reference","url_markdown":"https://support.storeconnect.com/articles/pos-nav-styling-reference.md","subtitle":null,"summary":"Every part and attribute for restyling the POS\u0026#39;s action navigation with CSS, the top bar\u0026#39;s actions and the sidebar, as a rail or a row, with tested examples such as spacing the rail\u0026#39;s items further apart or tinting every row, and the list of what can\u0026#39;t be styled yet.","type":"Developer_Documentation","video_url":"","keywords":"pos navigation css, nav-root, nav-list, nav-item, nav-group, data-direction, data-align, horizontal, vertical, sidebar css, top bar css, action navigation, rail, pos styling api, pos parts","last_modified":"2026-11-24T06:19:14+0000","body_markdown":"POS users navigate the POS using menus in the top bar and the\nsidebar. The nav lays out [list buttons](pos-list-button-styling-reference) in a rail or a row,\nand a group opens more items under the group's button or in a\n[menu](pos-menu-styling-reference) over the page. Use this reference to style the nav,\nfollowing the [POS styling API](pos-styling-api#rules) rules.\n\n## Where the nav appears\n\nThe nav appears in two places:\n\n- The top bar's actions, always laid out as a row\n- The sidebar, laid out as a rail, which becomes a row on a medium screen\n\nBoth places hold the same three things:\n\n- The main list of action items\n- The **More** button and the menu it opens\n- The groups that open from an item\n\nThe sidebar also holds the pinned list, and the collapse button while the sidebar is a rail.\n\nA rule on a row applies to both the top bar and the sidebar.\n\n## Parts of the nav\n\n| Part | What it is | Available from |\n| --- | --- | --- |\n| `nav-root` | The whole nav: the bar or the rail, holding the lists. | v22.0.14 |\n| `nav-list` | A list of items in the nav, or the items a group opens under the group's button. | v22.0.14 |\n| `nav-item` | One entry in a list, holding an item or a group. | v22.0.14 |\n| `nav-group` | A group of items: the button that opens it and, while open, the list or the menu under it. | v22.0.14 |\n\nThe **Available from** column shows the first release that carries the name.\n\n## Attributes of the nav\n\nNarrow `nav-root` by these, inside `:where()`, to style a rail or a row.\n\n| Attribute | Values | Default | Available from |\n| --- | --- | --- | --- |\n| `data-direction` | `horizontal`, `vertical` | `horizontal` | v22.0.14 |\n| `data-align` | `start`, `center`, `end` | `start` | v22.0.14 |\n\n- `horizontal` — a row of items, as in the top bar and in the sidebar on a medium screen\n- `vertical` — a rail, laid out in a column, as in the sidebar otherwise\n- `start`, `center`, `end` — where the lists sit along the nav\n\n## Component properties\n\nThe nav has none of its own. Style the parts directly, and the items and menus by their own\nproperties.\n\n## Nav examples\n\nEach example is tested against the POS on every change.\n\n**\"Space the rail's items further apart.\"**\n\n```css\n\n[part~='nav-root']:where([data-direction='vertical']) [part~='nav-list'] {\n  gap: 8px;\n}\n```\n\n**\"Tint every row of items.\"**\n\n```css\n\n[part~='nav-root']:where([data-direction='horizontal']) {\n  background-color: #f1f5f9;\n  padding: 4px;\n}\n```\n\n**\"Round the corners of the lists, such as the sidebar's raised one.\"**\n\n```css\n\n[part~='nav-list'] {\n  border-radius: 12px;\n}\n```\n\n## What can't be styled yet\n\n- The button that opens a group on its own: it is a list button with no name of its own yet\n- Padding, a border, or a margin on `nav-item`: the nav counts how many items fit by each item's button, so room added around it isn't counted, and items spill past the nav instead of moving to the More menu\n- The top bar's row apart from the sidebar's row on a medium screen\n- A list that scrolls, or sits on a raised card, apart from the others\n- The fill and corners of the list a group opens under the group's button in the expanded sidebar, which the navigation sets on the list itself, so a rule on `nav-list` doesn't reach them\n\n## Retired\n\nNone yet."}