Skip to content

Commit 3b7b076

Browse files
authored
fix(button): update font styles to match RAC (#1440)
1 parent 037b114 commit 3b7b076

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.changeset/two-scissors-enjoy.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@launchpad-ui/button": patch
3+
"@launchpad-ui/core": patch
4+
---
5+
6+
Update font styles to match RAC

packages/button/src/styles/Button.module.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535

3636
/* End Remaining Legacy Tokens */
3737

38-
--Button-font-size-default: 0.875rem;
39-
--Button-font-size-small: 0.875rem;
40-
--Button-font-size-large: 1rem;
38+
--Button-font-size-default: var(--lp-font-size-200);
39+
--Button-font-size-small: var(--lp-font-size-100);
40+
--Button-font-size-large: var(--lp-font-size-300);
4141
--Button-font-weight: var(--lp-font-weight-medium);
42-
--Button-line-height-default: 114%;
43-
--Button-line-height-small: 114%;
44-
--Button-line-height-large: 150%;
42+
--Button-line-height-default: var(--lp-line-height-300);
43+
--Button-line-height-small: var(--lp-line-height-200);
44+
--Button-line-height-large: var(--lp-line-height-300);
4545
--Button-border-radius-default: 0.375rem;
4646
--Button-border-radius-small: var(--lp-border-radius-regular);
4747
--Button-border-radius-link: 1px;
@@ -235,7 +235,7 @@
235235
border-radius: var(--Button-border-radius-default);
236236
font-size: var(--Button-font-size-default);
237237
line-height: var(--Button-line-height-default);
238-
padding: 0.4375rem 0.5rem;
238+
padding: 3px var(--lp-spacing-300);
239239
cursor: default;
240240
user-select: none;
241241
appearance: none;
@@ -245,7 +245,7 @@
245245
.Button--tiny {
246246
border-radius: var(--Button-border-radius-small);
247247
font-size: var(--lp-font-size-100);
248-
line-height: var(--Button-line-height-small);
248+
line-height: 114%;
249249
padding: 0.0625rem 0.25rem;
250250
min-height: 1.25rem;
251251
}
@@ -254,14 +254,14 @@
254254
border-radius: var(--Button-border-radius-small);
255255
font-size: var(--Button-font-size-small);
256256
line-height: var(--Button-line-height-small);
257-
padding: 0.1875rem 0.5rem;
257+
padding: 1px var(--lp-spacing-300);
258258
min-height: 1.5rem;
259259
}
260260

261261
.Button--big {
262262
font-size: var(--Button-font-size-large);
263263
line-height: var(--Button-line-height-large);
264-
padding: 0.4375rem 0.75rem;
264+
padding: 7px var(--lp-spacing-400);
265265
min-height: 2.5rem;
266266
}
267267

0 commit comments

Comments
 (0)