Skip to content
Log in

Record table styling reference

On this page

A record table is the table of records in a list: a header row of column names, then a row for each record, the first cell naming the record. Follow the POS styling API rules when styling it.

Where it appears

A list layout’s records, such as the customers, orders, and products lists, the fulfillments list, and the results of a quick search. When a record is open beside the list, the row says so with aria-current.

Parts

Part What it is Available from
record-table-root The whole table, with the fill, border, and corners. v22.0.7
record-table-head-row The row of column names at the top of the table. v22.0.7
record-table-head-cell One column’s name, which sorts the table by that column when pressed. v22.0.7
record-table-row One record’s row. v22.0.7
record-table-lead-cell The first cell of a row, which names the record. v22.0.7
record-table-cell Each of the other cells in a row. v22.0.7

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

Attributes

Narrow record-table-row by this, inside :where(), to style the row of the record that’s open. It’s on a row rather than on the table’s root, so the rule narrows the row.

Attribute Values Default Available from
record-table-row[aria-current] true, false false v22.0.7

Examples

Each example is tested against the POS on every change.

“Round the table’s corners less and give it a white fill.”

```css

[part~=’record-table-root’] { border-radius: 4px; background-color: #ffffff; } ```

“Shade the column names.”

```css

[part~=’record-table-head-row’] { background-color: #f5f7fa; } ```

“Show the record names in our brand color.”

```css

[part~=’record-table-lead-cell’] { color: #0b5394; } ```

“Make the other columns smaller.”

```css

[part~=’record-table-cell’] { font-size: 14px; } ```

“Highlight the record that’s open.”

```css

background-color: #e8f0fb; } ```

What can’t be styled yet

  • The sort arrow beside a column name, and the name’s text on its own
  • The dot beside the row of the record that’s open, and that row’s cells on their own
  • The spinner while the table loads, and the message when it has no records
  • The width of each column

Retired

None yet.

Was this article helpful?

Was this article helpful?