refactor(tables): one column header style for every table

Summary

One column header style for every table. List tables (issues, releases, transactions, monitor checks) used Material's default header: 44px rows with 14px medium text, in the same weight and color as the data. That made the column labels read like another row of data, and it didn't match the compact header the breadcrumbs table on the issue page uses.

  • Column header rows are now 32px, in label-medium and the muted on-surface-variant color.
  • It is set once in material-overrides/_table.scss through mat.table-overrides, on tr[mat-header-row]:not(.table-header). Setting it on the row means mat.table-density(-3) on .table-container doesn't undo it.
  • The sticky action row above the headers (.table-header: select all, bulk actions, pagination) is not a column header, so it keeps Material's height and text. Its buttons inherit that font, so they stay the same.
  • The height lives in $table-header-height in _variables.scss.
  • DESIGN.md gets a Tables rule: one header row size for every table.
  • The issues list keeps its column labels at every width. Before, they hid below 1280px along with the Trend column; now only columns drop, and Trend shows from 1080px.

Screenshots: before is master; after is this branch run on its own.

Before (master)

before-1280

After (this branch)

after-1280

Issues list at 1100px

Before (master):

before

After (this branch):

after

Testing

  • Checked locally against master on issues, releases, performance and monitor checks, in light and dark, at 1280 and 390px.
  • Measured in the browser:
    • Column header rows went from 44px to 32px, and their text from 14px/500 to 12px/500.
    • The toolbar rows stayed at 44px, and their buttons kept the same text size.
  • Also checked with the whole design-system stack merged on top: the only visual difference across every page was these header rows.
  • npm run lint, both dev builds and unit tests pass.

Merge note: !749 (closed) also adds a ### Tables section to DESIGN.md at the same spot. Whichever lands second keeps one heading, with !749 (closed)'s intro and bullets first and the Header row bullet last.

AI disclosure: Claude Code, styles and docs drafted with AI, reviewed and tested by hand in the browser

  • I am respecting Sentry's proprietary Business Source License (BSL) by implementing code in a clean room environment. I have not read any BSL Sentry code. It is OK to read MIT licensed code.
Edited by Luis Armendariz

Merge request reports

Loading
Loading