Skip to content

Commit 71e79ae

Browse files
committed
[UI] Convert font-size styles to HDS tokens (HDS-5060)
1 parent 5310204 commit 71e79ae

27 files changed

+46
-46
lines changed

ui/app/styles/components/console-ui-panel.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ $console-close-height: 35px;
6363
color: hsl(0, 0%, 100%);
6464
flex: 1 1 auto;
6565
font-family: var(--token-typography-font-stack-code);
66-
font-size: size_variables.$size-6;
66+
font-size: var(--token-typography-body-300-font-size);
6767
font-weight: var(--tokens-typography-font-weight-bold);
6868
outline: none;
6969
padding: size_variables.$spacing-8;

ui/app/styles/components/empty-state-component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
.empty-state-title {
3333
color: var(--token-color-palette-neutral-400);
34-
font-size: size_variables.$size-4;
34+
font-size: var(--token-typography-display-400-font-size);
3535
font-weight: var(--token-typography-font-weight-semibold);
3636
line-height: 1.2;
3737
margin-bottom: size_variables.$spacing-8;

ui/app/styles/components/info-table-row.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393

9494
.info-table-row-header {
9595
margin: 0;
96-
font-size: size_variables.$size-8;
96+
font-size: var(--token-typography-body-200-font-size);
9797
color: var(--token-color-palette-neutral-400);
9898
font-weight: var(--token-typography-font-weight-semibold);
9999

ui/app/styles/components/list-item-row.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
.center-inside-row {
2424
width: 50%;
2525
margin-left: auto;
26-
font-size: size_variables.$size-8;
26+
font-size: var(--token-typography-body-200-font-size);
2727
font-weight: var(--token-typography-font-weight-semibold);
2828
color: var(--token-color-palette-neutral-400);
2929
}

ui/app/styles/components/radio-card.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
.radio-card-message-body {
9090
line-height: 1.2;
9191
color: var(--token-color-foreground-faint);
92-
font-size: size_variables.$size-8;
92+
font-size: var(--token-typography-body-200-font-size);
9393
}
9494

9595
.radio-card-radio-row {

ui/app/styles/components/raft-join.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
}
1515
.raft-join-unseal {
1616
color: var(--token-color-palette-amber-200);
17-
font-size: size_variables.$size-6;
17+
font-size: var(--token-typography-body-300-font-size);
1818
display: inline-block;
1919
}

ui/app/styles/components/regex-validator.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818
.regex-group {
1919
font-family: var(--token-typography-font-stack-code);
20-
font-size: size_variables.$size-8;
20+
font-size: var(--token-typography-body-200-font-size);
2121
color: var(--token-color-palette-neutral-500);
2222
}
2323
.regex-group-position {

ui/app/styles/components/search-select.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
.ember-power-select-option--no-matches-message {
8888
color: var(--token-color-palette-neutral-400);
89-
font-size: size_variables.$size-8;
89+
font-size: var(--token-typography-body-200-font-size);
9090
font-weight: var(--token-typography-font-weight-semibold);
9191
text-transform: uppercase;
9292

@@ -130,7 +130,7 @@
130130

131131
.search-select-list-key {
132132
color: var(--token-color-foreground-faint);
133-
font-size: size_variables.$size-8;
133+
font-size: var(--token-typography-body-200-font-size);
134134
}
135135

136136
.search-select .search-icon {

ui/app/styles/components/sidebar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
.popup-menu-content {
1212
.menu-label {
1313
color: hsl(0, 0%, 4%);
14-
font-size: 14px;
14+
font-size: var(--token-typography-body-200-font-size);
1515
font-weight: var(--token-typography-font-weight-bold);
1616
text-transform: unset;
1717
}

ui/app/styles/components/stat-text.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
&.l,
1515
&.m {
1616
.stat-label {
17-
font-size: size_variables.$size-6;
17+
font-size: var(--token-typography-body-300-font-size);
1818
font-weight: var(--token-typography-font-weight-semibold);
1919
margin-bottom: size_variables.$spacing-4;
2020
line-height: inherit;
2121
}
2222
.stat-text {
23-
font-size: size_variables.$size-8;
23+
font-size: var(--token-typography-body-200-font-size);
2424
font-weight: var(--token-typography-font-weight-regular);
2525
color: var(--token-color-palette-neutral-500);
2626
line-height: inherit;
@@ -39,7 +39,7 @@
3939
line-height: inherit;
4040
}
4141
.stat-text {
42-
font-size: size_variables.$size-8;
42+
font-size: var(--token-typography-body-200-font-size);
4343
font-weight: var(--token-typography-font-weight-regular);
4444
color: var(--token-color-palette-neutral-500);
4545
line-height: inherit;
@@ -58,7 +58,7 @@
5858
line-height: inherit;
5959
}
6060
.stat-text {
61-
font-size: size_variables.$size-8;
61+
font-size: var(--token-typography-body-200-font-size);
6262
font-weight: var(--token-typography-font-weight-regular);
6363
color: var(--token-color-palette-neutral-500);
6464
line-height: inherit;
@@ -72,12 +72,12 @@
7272

7373
&.m-no-subText {
7474
.stat-label {
75-
font-size: size_variables.$size-8;
75+
font-size: var(--token-typography-body-200-font-size);
7676
font-weight: var(--token-typography-font-weight-bold);
7777
line-height: inherit;
7878
}
7979
.stat-text {
80-
font-size: size_variables.$size-8;
80+
font-size: var(--token-typography-body-200-font-size);
8181
font-weight: var(--token-typography-font-weight-regular);
8282
color: var(--token-color-palette-neutral-500);
8383
line-height: inherit;
@@ -91,19 +91,19 @@
9191

9292
&.s-no-subText {
9393
.stat-label {
94-
font-size: size_variables.$size-8;
94+
font-size: var(--token-typography-body-200-font-size);
9595
font-weight: var(--token-typography-font-weight-regular);
9696
color: var(--token-color-palette-neutral-400);
9797
line-height: inherit;
9898
}
9999
.stat-text {
100-
font-size: size_variables.$size-8;
100+
font-size: var(--token-typography-body-200-font-size);
101101
font-weight: var(--token-typography-font-weight-regular);
102102
color: var(--token-color-palette-neutral-500);
103103
line-height: inherit;
104104
}
105105
.stat-value {
106-
font-size: size_variables.$size-8;
106+
font-size: var(--token-typography-body-200-font-size);
107107
font-weight: var(--token-typography-font-weight-regular);
108108
color: var(--token-color-palette-neutral-600);
109109
line-height: inherit;

0 commit comments

Comments
 (0)