Skip to content

Commit 2904ed3

Browse files
committed
[UI] Convert line-height styles to HDS tokens (HDS-5060)
1 parent 71e79ae commit 2904ed3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

ui/app/styles/components/masked-input.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pre.masked-font {
4343

4444
//override bulma's pre styling
4545
.masked-input .display-only {
46-
line-height: 1.5;
46+
line-height: var(--token-typography-body-300-line-height);
4747
font-size: 1rem;
4848
padding-top: 0;
4949
padding-bottom: 0;

ui/app/styles/components/replication-dashboard.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
grid-template-columns: 1fr 1fr;
6060
grid-template-rows: 0.2fr 0.2fr 0.2fr;
6161
padding: size_variables.$spacing-24;
62-
line-height: 1.5;
62+
line-height: var(--token-typography-body-300-line-height);
6363

6464
&.summary {
6565
grid-template-rows: 0.2fr 1fr 0.2fr 1fr;

ui/app/styles/core/element-styling.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pre code {
124124

125125
body {
126126
font-size: var(--token-typography-body-300-font-size);
127-
line-height: 1.5;
127+
line-height: var(--token-typography-body-300-line-height);
128128
overflow-x: hidden;
129129
overflow-y: scroll;
130130
}

ui/app/styles/core/file.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
box-shadow: 0 4px 1px rgba(10, 10, 10, 0.06) inset;
8888
display: block;
8989
font-size: 1em;
90-
line-height: 1.5;
90+
line-height: var(--token-typography-body-300-line-height);
9191
overflow: hidden;
9292
padding-bottom: calc(0.375em - 1px);
9393
padding-left: 1em;

ui/app/styles/core/inputs.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
display: inline-flex;
2020
font-size: var(--token-typography-body-300-font-size);
2121
height: size_variables.$size-2;
22-
line-height: 1.5;
22+
line-height: var(--token-typography-body-300-line-height);
2323
max-width: 100%;
2424
padding-bottom: calc(0.375em - 1px);
2525
padding-left: size_variables.$spacing-12;

0 commit comments

Comments
 (0)