Skip to content

Commit 1eb467e

Browse files
Use tabular numbers in tables (#2680)
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. Co-authored-by: Katie Langerman <18661030+langermank@users.noreply.github.com>
1 parent 7d4cd40 commit 1eb467e

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.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
// stylelint-disable-next-line primer/typography

0 commit comments

Comments
 (0)