Skip to content
Log in

Count styling reference

On this page

A count is the number that shows operators how many tickets are waiting at a station. Counts appear on each station on the Your stations screen, and beside the Tickets heading in a station’s list of tickets. You can change the size, color, and shape of counts. Follow the POS styling API rules when you style counts.

Where a count appears

Counts appear in these places:

  • On each station on the Your stations screen, when the station has tickets waiting. The digits roll as the number changes.
  • Beside the Tickets heading in a station’s list of tickets.
  • On each line of a completed stock adjustment, showing the change in quantity, such as +3 or -2.

Parts

Part What it is Available from
count-root The whole count, with the fill and corners. v22.0.15

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

Component properties

Set these on count-root. A card sets both around the count, so the count scales with the card: a value you set on :root doesn’t reach a count on a card, and one you set on count-root does. A value set on count-root replaces the card’s scaling, so the count stays that size on a small card too.

Property What it sets Default Available from
--sc-count-size The width and height of the count. A count that rolls the digits grows wider than this to fit them. 30px v22.0.15
--sc-count-font-size The size of the digits. A count that rolls the digits draws them at seven tenths of this. var(–sc-type-body-small-size) v22.0.15

Examples

Each example is tested against the POS on every change.

“Make the counts bigger.”

```css

[part~=’count-root’] { –sc-count-size: 36px; –sc-count-font-size: 16px; } ```

“Give the counts our brand color.”

```css

[part~=’count-root’] { background-color: #0b5394; } ```

“Make the counts round.”

```css

[part~=’count-root’] { border-radius: 999px; } ```

What can’t be styled yet

  • A count that rolls the digits, apart from one that doesn’t, and the digits one by one
  • The digits of a count on a very small card, which the POS hides so only the pill shows: a text color you set on the count shows them again
  • Where a count sits on a card

Retired

None yet.

Was this article helpful?

Was this article helpful?