You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
); // notice: in the "neutral" color the "inline" has a slightly darker border color compared to the others to increase contrast (eg. could be used on a light gray background)
148
+
// notice: in the "neutral" color the "inline" has a slightly darker border color compared to the others to increase contrast (eg. could be used on a light gray background)
// these values later may come from the design tokens
14
14
$hds-button-size-props: (
15
15
"small": (
16
+
// 13px = 0.8125rem
16
17
"font-size": 0.8125rem,
17
-
//13px;
18
+
//14px = 0.875rem; we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants)
18
19
"line-height": 0.875rem,
19
-
//14px - we need to make it even (so we set it slighly larger than the font-size; notice: in Figma is 12px but this would cut some ascendants/descendants)
20
+
//28px = 1.75rem
20
21
"min-height": 1.75rem,
21
-
//28px
22
+
//6px = 0.375rem; here we're taking into account the 1px border
22
23
"padding-vertical": 0.375rem,
23
-
//6px - here we're taking into account the 1px border
24
+
//11px = 0.6875rem; here we're taking into account the 1px border
24
25
"padding-horizontal": 0.6875rem,
25
-
//11px - here we're taking into account the 1px border
26
+
//12px = 0.75rem
26
27
"icon-size": 0.75rem,
27
-
// 12px
28
28
),
29
29
"medium": (
30
+
// 14px = 0.875rem
30
31
"font-size": 0.875rem,
31
-
//14px
32
+
//16px = 1rem
32
33
"line-height": 1rem,
33
-
//16px
34
+
//36px = 2.25rem
34
35
"min-height": 2.25rem,
35
-
//36px
36
+
//9px = 0.5625rem; here we're taking into account the 1px border
36
37
"padding-vertical": 0.5625rem,
37
-
//9px - here we're taking into account the 1px border
38
+
//15px = 0.9375rem; here we're taking into account the 1px border
38
39
"padding-horizontal": 0.9375rem,
39
-
// 15px - here we're taking into account the 1px border
40
-
"icon-size": 1rem,
41
40
// 16px
41
+
"icon-size": 1rem,
42
42
),
43
43
"large": (
44
+
// 16px = 1rem
44
45
"font-size": 1rem,
45
-
//16px
46
+
//24px = 1.5rem
46
47
"line-height": 1.5rem,
47
-
//24px
48
+
//48px = 3rem
48
49
"min-height": 3rem,
49
-
//48px
50
+
//11px = 0.6875rem; here we're taking into account the 1px border
50
51
"padding-vertical": 0.6875rem,
51
-
//11px - here we're taking into account the 1px border
52
+
//19px = 1.1875rem; here we're taking into account the 1px border
52
53
"padding-horizontal": 1.1875rem,
53
-
//19px - here we're taking into account the 1px border
0 commit comments