{"title":"Snack bar styling reference","slug":"pos-snack-bar-styling-reference","url":"https://support.storeconnect.com/articles/pos-snack-bar-styling-reference","url_markdown":"https://support.storeconnect.com/articles/pos-snack-bar-styling-reference.md","subtitle":null,"summary":"Every part and component property for restyling the POS\u0026#39;s snack bars with CSS, the short notices that float at the bottom of the screen after an item is added to the cart or an order is saved, with tested examples such as giving the notices a dark fill or turning the glow off, and the list of what can\u0026#39;t be styled yet.","type":"Developer_Documentation","video_url":"","keywords":"pos snack bar css, pos toast css, pos notification css, snack-bar-root, snack-bar-glow, snack-bar-bar, snack-bar-media, snack-bar-message, snack-bar-icon, snack-bar-text, snack-bar-count, snack-bar-action, snack-bar-close, --sc-snack-bar-max-width, --sc-snack-bar-inset-bottom, undo button, pos styling api, pos parts","last_modified":"2026-11-24T06:19:15+0000","body_markdown":"A snack bar tells POS users that something has just happened, such as an item added to the\ncart or an order saved, without stopping what they are doing. It floats at the bottom of the\nscreen and closes itself. Use this reference to style snack bars, following the\n[POS styling API](pos-styling-api#rules) rules.\n\n## Where a snack bar appears\n\nSnack bars appear at the bottom of the screen after an action that doesn't need the user to\nrespond. Each snack bar contains these things:\n\n- A picture or an icon\n- A line saying what happened\n- At most an action button, an **Undo** button, and a close button\n\nThe buttons on a snack bar are [buttons](pos-button-styling-reference) named\n`snack-bar-action` and `snack-bar-close`, and the number on the pictures is a badge named\n`snack-bar-count`.\n\n## Parts of a snack bar\n\n| Part | What it is | Available from |\n| --- | --- | --- |\n| `snack-bar-root` | The whole notice: the layer over the screen that holds the glow and the bar. | v22.0.14 |\n| `snack-bar-glow` | The glow behind the bar, spreading from the bottom corner of the screen. | v22.0.14 |\n| `snack-bar-bar` | The pill that floats at the bottom of the screen, with the fill, corners, and shadow. | v22.0.14 |\n| `snack-bar-media` | The box holding the stack of pictures before the message, when there are any. | v22.0.14 |\n| `snack-bar-message` | The icon and the text together. | v22.0.14 |\n| `snack-bar-icon` | The icon before the text, when there is one. | v22.0.14 |\n| `snack-bar-text` | The text saying what happened. | v22.0.14 |\n| `snack-bar-count` | The number on the pictures, when there is one. It is a Badge, so it reads the Badge properties. | v22.0.14 |\n| `snack-bar-action` | The action button and the Undo button. Each is a Button, so it reads the Button properties. | v22.0.14 |\n| `snack-bar-close` | The close button, when there is one. It is a Button, so it reads the Button properties. | v22.0.14 |\n\nThe **Available from** column shows the first release that carries the name.\n\n## Component properties\n\nSet these on `snack-bar-root`.\n\n| Property | What it sets | Default | Available from |\n| --- | --- | --- | --- |\n| `--sc-snack-bar-max-width` | The widest the message grows before it wraps. | 200px | v22.0.14 |\n| `--sc-snack-bar-inset-bottom` | The room the notice leaves at the bottom of the screen. Where the navigation is a bar at the bottom, the POS sets this to the bar's height, and a value you set replaces it. | 0px | v22.0.14 |\n\n## Snack bar examples\n\nEach example is tested against the POS on every change.\n\n**\"Let the notices' text run longer.\"**\n\n```css\n\n[part~='snack-bar-root'] {\n  --sc-snack-bar-max-width: 320px;\n}\n```\n\n**\"Give the notices a dark fill with light text.\"**\n\n```css\n\n[part~='snack-bar-bar'] {\n  background-color: #1f2933;\n  color: #ffffff;\n}\n```\n\n**\"Make the action button stand out.\"**\n\n```css\n\n[part~='snack-bar-action'] {\n  --sc-button-bg: #0b5394;\n  --sc-button-color: #ffffff;\n}\n```\n\n**\"Turn the glow off.\"**\n\n```css\n\n[part~='snack-bar-glow'] {\n  background: none;\n}\n```\n\n## What can't be styled yet\n\n- Where the bar sits on the screen, which is the bottom corner, apart from the room it leaves below\n- The stack of pictures, which has no parts of its own yet\n- The blur behind the bar, and how the notice slides in\n\n## Retired\n\nNone yet."}