Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use tabular numbers in tables
As tables are frequently used for comparing columns of numeric data (and have the ability to be right-aligned) we should make sure that we make it as easy as possibly. Toggling tabular numbers on givens you the ability to scan columns of numbers effectively, assuming the font supports it. If it doesn’t then this doesn’t have any effect, but is no worse than the current behaviour.
  • Loading branch information
robinwhittleton committed Aug 16, 2024
commit fd7782e3ce68fb65fe558f5a74fd2e66e4e607b2
5 changes: 5 additions & 0 deletions .changeset/wise-ducks-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/css': patch
---

Use tabular numbers in tables
1 change: 1 addition & 0 deletions src/markdown/tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
width: max-content;
max-width: 100%;
overflow: auto;
font-variant: tabular-nums;

th {
font-weight: $font-weight-bold;
Expand Down