Skip to content

Commit 5906133

Browse files
committed
style(foundation): update line height config
1 parent 1efe6ee commit 5906133

File tree

9 files changed

+14
-17
lines changed

9 files changed

+14
-17
lines changed

src/base/button.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
gap: var(--sgds-gap-2-xs);
4343
font-size: var(--sgds-font-size-2);
4444
font-weight: var(--sgds-btn-font-weight);
45-
line-height: var(--sgds-line-height-md);
45+
line-height: var(--sgds-line-height-body);
4646
padding: 0px var(--sgds-padding-lg);
4747
min-width: var(--sgds-dimension-96);
4848
height: var(--sgds-dimension-48);

src/base/sgds-element.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Accordion/accordion-item.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:host([density="compact"]) .accordion-btn {
66
padding: var(--sgds-padding-sm) var(--sgds-padding-sm);
77
font-size: var(--sgds-font-size-2);
8-
line-height: var(--sgds-line-height-heading);
8+
line-height: var(--sgds-line-height-min);
99
}
1010

1111
:host([density="compact"]) .content {
@@ -32,7 +32,7 @@
3232
text-align: left;
3333
border: 0;
3434
color: var(--sgds-default-color);
35-
line-height: var(--sgds-line-height-body);
35+
line-height: var(--sgds-line-height-heading);
3636
font-size: var(--sgds-font-size-3);
3737
overflow-anchor: none;
3838
}

src/components/Footer/footer.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ slot[name="title"]::slotted(*) {
2323
--sgds-header-color: var(--sgds-default-color-inverse);
2424
--sgds-font-size-6: var(--sgds-font-size-5);
2525
--sgds-margin-2-xs: var(--sgds-margin-none);
26-
--sgds-line-height-heading: var(--sgds-line-height-body);
2726
color: var(--sgds-header-color, --sgds-default-color-inverse);
2827
font-size: var(--sgds-font-size-6, --sgds-font-size-5);
2928
font-weight: var(--sgds-font-weight-bold);
30-
line-height: var(--sgds-line-height-heading, --sgds-line-height-body);
29+
line-height: var(--sgds-line-height-heading);
3130
letter-spacing: var(--sgds-letter-spacing-tight);
3231
margin-top: var(--sgds-margin-none);
3332
margin-bottom: var(--sgds-margin-2-xs, --sgds-margin-none);

src/components/Input/input.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
flex-grow: 1;
3636
color: var(--sgds-form-color);
3737
font-size: var(--sgds-font-size-2);
38-
line-height: var(--sgds-line-height-heading);
38+
line-height: var(--sgds-line-height-body);
3939
}
4040

4141
.form-control-group > .form-control:focus {

src/components/Modal/modal.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,21 @@
6565
slot[name="title"]::slotted(*) {
6666
--sgds-margin-2-xs: var(--sgds-margin-none);
6767
--sgds-margin-xs: var(--sgds-margin-none);
68-
--sgds-line-height-heading: var(--sgds-line-height-body);
6968
--sgds-font-size-6: var(--sgds-font-size-4);
7069
display: flex;
7170
flex: 1 1 auto;
7271
align-items: center;
7372
gap: 1rem;
7473
margin: var(--sgds-margin-none, var(--sgds-margin-xs, --sgds-margin-2-xs));
75-
line-height: var(--sgds-line-height-heading, --sgds-line-height-body);
74+
line-height: var(--sgds-line-height-heading);
7675
font-size: var(--sgds-font-size-6, --sgds-font-size-4);
7776
}
7877

7978
slot[name="description"]::slotted(*) {
8079
--sgds-paragraph-spacing-xl: var(--sgds-margin-none);
81-
--sgds-line-height-body: var(--sgds-line-height-heading);
8280
margin: var(--sgds-margin-none, --sgds-paragraph-spacing-xl);
8381
color: var(--sgds-default-color-subtle);
84-
line-height: var(--sgds-line-height-body, --sgds-line-height-heading);
82+
line-height: var(--sgds-line-height-body);
8583
}
8684

8785
.modal-close {

src/css/reboot.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ul {
2828
font-family: var(--sgds-font-family-brand);
2929
font-size: var(--sgds-font-size-2);
3030
font-weight: var(--sgds-font-weight-regular);
31-
line-height: var(--sgds-line-height-heading);
31+
line-height: var(--sgds-line-height-body);
3232
list-style-position: outside;
3333
padding-left: var(--sgds-padding-2-xl);
3434
margin-top: var(--sgds-padding-xs);
@@ -38,7 +38,7 @@ li {
3838
font-family: var(--sgds-font-family-brand);
3939
font-size: var(--sgds-font-size-2);
4040
font-weight: var(--sgds-font-weight-regular);
41-
line-height: var(--sgds-line-height-heading);
41+
line-height: var(--sgds-line-height-body);
4242
list-style-position: outside;
4343
margin-top: var(--sgds-padding-xs);
4444
}
@@ -124,7 +124,7 @@ p {
124124
font-size: var(--sgds-font-size-2);
125125
font-weight: var(--sgds-font-weight-regular);
126126
margin-bottom: var(--sgds-paragraph-spacing-xl);
127-
font-family: var(--sgds-font-family-brand);
127+
font-family: var(--sgds-font-family-brand);
128128
line-height: var(--sgds-line-height-body);
129129
letter-spacing: var(--sgds-letter-spacing-normal);
130130
margin-top: var(--sgds-margin-none);

src/styles/form-placeholder.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
color: var(--sgds-form-color-subtle);
33
font-family: var(--sgds-font-family-brand);
44
font-weight: var(--sgds-font-weight-light);
5-
line-height: var(--sgds-line-height-heading);
5+
line-height: var(--sgds-line-height-body);
66
}

src/themes/root.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@
155155
--sgds-letter-spacing-wider: 2px;
156156

157157
/* Primitive - Line Height */
158-
--sgds-line-height-body: 1.2;
159-
--sgds-line-height-heading: 1.5;
158+
--sgds-line-height-body: 1.5;
159+
--sgds-line-height-heading: 1.2;
160160
--sgds-line-height-min: 20px;
161161

162162
/* Primitive - Opacity */

0 commit comments

Comments
 (0)