Skip to content

Commit fd7782e

Browse files
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.
1 parent 8412964 commit fd7782e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/wise-ducks-beam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/css': patch
3+
---
4+
5+
Use tabular numbers in tables

src/markdown/tables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
width: max-content;
99
max-width: 100%;
1010
overflow: auto;
11+
font-variant: tabular-nums;
1112

1213
th {
1314
font-weight: $font-weight-bold;

0 commit comments

Comments
 (0)