Skip to content

Commit e33ef43

Browse files
authored
Update base in tokens docs (#2547)
## Summary: The base for calculating pixel equivalents was still listed as `8`, so the token docs were outdated. This PR updates that hard-coded value to `10`! Issue: WB-1914 ## Test plan: 1. Visit the token docs page /?path=/docs/packages-tokens-sizing--docs 2. Look at the values in the "Pixels (equivalent)" column 3. The values should be base 10, such as sizing.size_180 / 1.8x / 1.8rem / 18 Author: marcysutton Reviewers: beaesguerra Required Reviewers: Approved By: beaesguerra Checks: ✅ 12 checks were successful, ⏭️ 2 checks have been skipped Pull Request URL: #2547
1 parent 599641c commit e33ef43

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.changeset/dry-eagles-relate.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

__docs__/wonder-blocks-tokens/tokens-sizing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const styles = {padding: sizing.size_160};
5151
},
5252
{
5353
label: "Pixels (equivalent)",
54-
cell: (row) => parseFloat(row.value.replace("rem", "") * 8),
54+
cell: (row) => parseFloat(row.value.replace("rem", "") * 10),
5555
},
5656
{
5757
label: "Example",

0 commit comments

Comments
 (0)