Skip to content
Log in

Pager styling reference

On this page

A pager is the area of a POS screen where operators swipe between pages of quick actions. Dots below the pages show which page is open. You can change the color, shape, and spacing of the dots. Follow the POS styling API rules when you style pagers.

Where a pager appears

Pagers appear in these places:

  • The pages of quick actions
  • The pages of an action group opened in a dialog

The arrows for the previous and next page are buttons. A product’s image gallery also uses a pager, but with separate dots and arrows, so only pager-root applies there.

Parts

Part What it is Available from
pager-root The whole pager, with the pages a person swipes between. v22.0.15
pager-indicator The row of dots under the pages, shown when there is more than one page. With a mouse it shows only while the pointer is over the pager; on a touch screen it always shows. v22.0.15
pager-dot One dot, standing for one page. v22.0.15

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

Attributes

Narrow pager-dot by this, inside :where(), to style the dot for the page that is showing, or the others.

Attribute Values Default Available from
pager-dot[data-active] true, false false v22.0.15

Component properties

None yet. Style the parts directly.

Examples

Each example is tested against the POS on every change.

“Show the current page’s dot in our brand color.”

```css

background-color: #0b5394; } ```

“Make the other dots lighter.”

```css

background-color: #d5dbe1; } ```

“Make the dots square.”

```css

part~=’pager-dot’ { border-radius: 2px; } ```

“Give the dots less room above and below.”

```css

[part~=’pager-indicator’] { padding-top: 4px; padding-bottom: 4px; } ```

What can’t be styled yet

  • The arrows that move between pages, apart from other buttons: they are buttons with no name yet
  • How the pages are laid out and how they slide
  • The dots fading out when the pointer leaves the pager, which the POS does around the row of dots and which an opacity you set on the row doesn’t change
  • The dots and arrows a product’s gallery draws in place of the pager’s

Retired

None yet.

Was this article helpful?

Was this article helpful?