Skip to content

Commit e07fde0

Browse files
committed
Update all instances of previous -font-* variables, T-20761
1 parent 6796409 commit e07fde0

23 files changed

+43
-43
lines changed

CHANGELOG.md

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

276276
### 9.1.3: 2022-09-07
277277

278-
* Consistency for variable `--font-weight-paragraph`
278+
* Consistency for variable `--typography-weight-paragraph`
279279
* Remove `has-light-bg` and `has-dark-bg` classes that are no longer used by back to top feature
280280
* Increase padding on mid-sized screens to prevent container sticking to sides
281281

@@ -292,7 +292,7 @@
292292
* Improve form checkbox and radiob button styles
293293
* Form checkboxes and radio buttons: Add bouncy check animation
294294
* Clarify reset for checkboxes and radio buttons for gravity forms
295-
* Combine `--line-height-paragraphs-blog` and `--line-height-paragraphs` to one unified CSS variable: `--line-height-paragraph`
295+
* Combine `--typography-paragraph-line-heights-blog` and `--typography-paragraph-line-heights` to one unified CSS variable: `--typography-paragraph-line-height`
296296

297297
### 9.1.0: 2022-09-01
298298

sass/base/_accessibility.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
clip-path: none;
3434
display: block;
3535
font-size: 1.7rem;
36-
font-weight: var(--font-weight-bold);
36+
font-weight: var(--typography-weight-bold);
3737
height: auto;
3838
left: .5rem;
3939
line-height: normal;

sass/components/_button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
display: inline-block;
1010
font-family: var(--font-paragraph);
1111
font-size: var(--typography-size-16);
12-
font-weight: var(--font-weight-semibold);
12+
font-weight: var(--typography-weight-semibold);
1313
line-height: 1.39;
1414
margin-bottom: 0;
1515
max-width: 23rem;

sass/features/_gravity-forms.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ div.validation_error {
77
background-color: var(--color-error);
88
color: var(--color-white);
99
font-size: var(--typography-size-17);
10-
font-weight: var(--font-weight-bold);
10+
font-weight: var(--typography-weight-bold);
1111
margin-bottom: var(--form-row-gap);
1212
padding: 2rem;
1313

@@ -23,7 +23,7 @@ body *[aria-invalid="true"] {
2323
.validation_message {
2424
color: var(--color-error);
2525
font-size: var(--typography-size-16);
26-
font-weight: var(--font-weight-regular);
26+
font-weight: var(--typography-weight-regular);
2727
}
2828

2929
.validation_list {
@@ -39,7 +39,7 @@ body *[aria-invalid="true"] {
3939

4040
li {
4141
color: var(--color-error);
42-
font-weight: var(--font-weight-bold);
42+
font-weight: var(--typography-weight-bold);
4343
}
4444
}
4545

@@ -189,6 +189,6 @@ body *[aria-invalid="true"] {
189189
border: 2px solid var(--color-success);
190190
color: var(--color-success);
191191
font-size: var(--typography-size-paragraph);
192-
font-weight: var(--font-weight-semibold);
192+
font-weight: var(--typography-weight-semibold);
193193
padding: 2rem;
194194
}

sass/features/_pagination.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
border-top: 2px solid var(--color-blue-chalk);
3333
color: var(--color-pagination-text);
3434
display: flex;
35-
font-weight: var(--font-weight-medium);
35+
font-weight: var(--typography-weight-medium);
3636
height: 3.5rem;
3737
justify-content: center;
3838
margin-left: 0;

sass/global.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@import 'variables/breakpoints';
1818
@import 'variables/font-face';
1919
@import 'variables/font-family';
20-
@import 'variables/font-size';
20+
@import 'variables/typography-size';
2121
@import 'variables/forms';
2222
@import 'variables/spacings';
2323

sass/gutenberg-editor-styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@import 'variables/colors';
1818
@import 'variables/breakpoints';
1919
@import 'variables/font-family';
20-
@import 'variables/font-size';
20+
@import 'variables/typography-size';
2121
@import 'variables/forms';
2222
@import 'variables/spacings';
2323

sass/gutenberg/blocks/_boxed.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
color: var(--color-paragraph);
66
font-size: var(--typography-size-17);
77
font-style: normal;
8-
font-weight: var(--font-weight-medium);
9-
line-height: var(--line-height-paragraph);
8+
font-weight: var(--typography-weight-medium);
9+
line-height: var(--typography-paragraph-line-height);
1010
padding: 2rem;
1111
width: calc(100% - 4rem);
1212
}

sass/gutenberg/blocks/_core-blockquote.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ blockquote {
1414
p {
1515
color: var(--color-paragraph);
1616
font-style: normal;
17-
font-weight: var(--font-weight-semibold);
17+
font-weight: var(--typography-weight-semibold);
1818
margin-bottom: 0;
1919
overflow: visible;
2020
position: relative;
@@ -28,7 +28,7 @@ blockquote {
2828

2929
.wp-block-quote {
3030
border-left: 2px solid var(--color-paragraph);
31-
line-height: var(--line-height-paragraph);
31+
line-height: var(--typography-paragraph-line-height);
3232
margin-bottom: 4rem;
3333
margin-left: auto;
3434
margin-right: auto;
@@ -38,7 +38,7 @@ blockquote {
3838

3939
> p {
4040
color: var(--color-paragraph);
41-
line-height: var(--line-height-paragraph);
41+
line-height: var(--typography-paragraph-line-height);
4242
}
4343

4444
@media (max-width: $width-max-article + 40px) {

sass/gutenberg/blocks/_core-heading.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ h2,
66
h3,
77
h4,
88
h5 {
9-
line-height: var(--line-height-core-heading);
9+
line-height: var(--typography-core-heading-line-height);
1010
}
1111

1212
// Don't add extra margin on top of first title

0 commit comments

Comments
 (0)