Skip to content

Commit 3e0fc7c

Browse files
authored
fix(Table): update invalid line-height value (#5363)
* fix(Table): update invalid line-height value * chore: add changeset
1 parent f0a530b commit 3e0fc7c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/healthy-humans-chew.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
Update line-height value for Table to be a valid calc() expression

packages/react/src/DataTable/Table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const StyledTable = styled.table<React.ComponentPropsWithoutRef<'table'>>`
3131
display: grid;
3232
font-size: var(--table-font-size);
3333
grid-template-columns: var(--grid-template-columns);
34-
line-height: calc(20 / var(--table-font-size));
34+
line-height: calc(20 / 12);
3535
width: 100%;
3636
3737
/* Density modes: condensed, normal, spacious */

0 commit comments

Comments
 (0)