Station row styling reference
On this page
A station row shows one fulfillment station on a single line, such as on the outlet stations board where operators manage the stations in an outlet. Each station row shows the station name and status tags, where the station’s tickets go, how many tickets are waiting, and a button that opens the station’s actions. You can change the fill, border, corners, and text of station rows. Follow the POS styling API rules when you style station rows.
Where a station row appears
Station rows appear in these places:
- On the outlet stations board, in each register’s column and in the Inactive stations column. Operators open the board from an action such as Manage stations.
- In the list of stations operators choose from when they cover stations.
A station on any other screen, such as Your stations, is a card.
The station row button that opens a station’s actions is a button named station-row-options. The Degraded, Disabled, and Offline tags beside a station’s name are tags, so style them with the tag parts and properties.
Parts
| Part | What it is | Available from |
|---|---|---|
station-row-root |
The whole row, with the fill, border, corners, and shadow. | v22.0.19 |
station-row-name |
The station’s name. The Degraded, Disabled, or Offline tags sit inside the name. They are tags, so style them through tag-root. |
v22.0.19 |
station-row-routing |
Where the station’s tickets go, such as → Kitchen, Covered by you, or Tickets unrouted, and each → line naming a station whose tickets come here instead. | v22.0.19 |
station-row-counts |
How many tickets the station has: requested, preparing, and ready on the outlet stations board, or how many are pending in the list of stations to cover. | v22.0.19 |
station-row-options |
The button at the end of a row on the outlet stations board that opens the station’s actions. It is a button, so style it with the button properties. | v22.0.19 |
The Available from column shows the first release that carries the name.
Attributes
Narrow station-row-root by these attributes, inside :where(), to style one kind of station.
| Attribute | Values | Default | Available from |
|---|---|---|---|
data-relationship |
direct, covered |
direct |
v22.0.19 |
data-selected |
true, false |
false |
v22.0.19 |
data-status |
active, degraded, disabled |
active |
v22.0.19 |
data-relationship is how the station’s tickets reach the register:
direct— a station listed for itselfcovered— a station this register is covering
A covered row has a dashed border and a lighter fill, unless it’s picked.
data-selected is whether the station is picked in the list of stations to cover. A picked row has a solid primary border instead.
data-status is the station’s status: active, degraded, or disabled. A station with no status is styled as active.
Component properties
None yet. Style the parts directly.
Examples
Each example is tested against the POS on every change.
“Show the stations this register is covering in our brand amber.” Narrow the row by how the station’s tickets reach the register:
```css
background-color: #fff4d6; } ```
“Square off the rows.”
```css
part~=’station-row-root’ { border-radius: 4px; } ```
“Tint the disabled stations.”
```css
background-color: #f2f2f2; } ```
“Make station names bolder.”
```css
[part~=’station-row-name’] { font-weight: 800; } ```
“Show where the tickets go in italics.”
```css
[part~=’station-row-routing’] { font-style: italic; } ```
“Make the ticket counts smaller.”
```css
[part~=’station-row-counts’] { font-size: 12px; } ```
“Make the options button a darker gray.” It’s a button, so set the button properties:
```css
[part~=’station-row-options’] { –sc-button-color: #333333; } ```
What can’t be styled yet
- The tint a row shows while hovered or pressed
- A picked row’s border: a store’s rule on the root part may not win over it
- A station in the Inactive stations column, apart from one in a register’s column
- A row operators can open, apart from one they can’t
- The Degraded, Disabled, and Offline tags apart from other tags, and an offline station apart from one that isn’t
- The ticket count line apart from the Pending line, and the → lines for other stations apart from the line saying where this station’s tickets go
Retired
None yet.
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.