Skip to content

Commit 1803e18

Browse files
pwolfertkim-cmsds
authored andcommitted
[NO-TICKET] Undo semibold deprecation (#3266)
* Revert "BREAKING: Deprecate semibold utility class and remove semibold Open Sans from includes" This reverts commit a3586ed. * Remove deprecation warning
1 parent 61996d1 commit 1803e18

File tree

6 files changed

+23
-7
lines changed

6 files changed

+23
-7
lines changed

packages/design-system/src/styles/_font.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ $font-path: '../fonts' !default;
4343
src: url('#{$font-path}/opensans-italic-webfont.woff2') format('woff2');
4444
}
4545

46+
@font-face {
47+
font-display: swap;
48+
font-family: 'Open Sans';
49+
font-style: normal;
50+
font-weight: 600;
51+
src: url('#{$font-path}/opensans-semibold-webfont.woff2') format('woff2');
52+
}
53+
4654
@font-face {
4755
font-display: swap;
4856
font-family: 'Open Sans';

packages/design-system/src/styles/_set-for-deprecation.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424

2525
@container style(--debugger: true) {
2626
// Remove in v12
27-
.ds-u-font-weight--semibold {
28-
@include deprecate;
29-
}
30-
3127
.ds-u-sans {
3228
@include deprecate;
3329
}

packages/design-system/src/styles/utilities/_font-weight.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
font-weight: var(--font-weight-normal) !important;
33
}
44

5+
.ds-u-font-weight--semibold {
6+
font-weight: 600 !important;
7+
}
8+
59
.ds-u-font-weight--bold {
610
font-weight: var(--font-weight-bold) !important;
711
}

packages/docs/content/foundation/typography/body.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ import loremIpsumGenerator from '../../../src/helpers/loremIpsumGenerator';
2727

2828
<ThemeContent onlyThemes={['healthcare']}>
2929

30-
Open Sans serves as the base font for the site. Sans-serifs have been proven to be easier to read on-screen and are incredibly adaptable when resized and displayed across different platforms and browsers. Accordingly, Open Sans is used for body type, secondary and tertiary headlines, and instructional text.
30+
Open Sans serves as the base font for the site. The full Open Sans type family consists of a variety of weights including light, regular, semibold, bold, and extrabold which allows for a wide range of type treatments and hierarchies within a page while still maintaining a unified look and feel.
31+
32+
Sans-serifs have been proven to be easier to read on-screen and are incredibly adaptable when resized and displayed across different platforms and browsers. Accordingly, Open Sans is used for body type, secondary and tertiary headlines, and instructional text.
3133

3234
**Web font stack:** Open Sans > Helvetica > Arial > Verdana > Sans-Serif
3335

packages/docs/content/foundation/typography/headings.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ import loremIpsumGenerator from '../../../src/helpers/loremIpsumGenerator';
2727

2828
<ThemeContent onlyThemes={['healthcare']}>
2929

30-
Open Sans serves as the base font for the site. Sans-serifs have been proven to be easier to read on-screen and are incredibly adaptable when resized and displayed across different platforms and browsers. Accordingly, Open Sans is used for body type, secondary and tertiary headlines, and instructional text.
30+
Open Sans serves as the base font for the site. The full Open Sans type family consists of a variety of weights including light, regular, semibold, bold, and extrabold which allows for a wide range of type treatments and hierarchies within a page while still maintaining a unified look and feel.
31+
32+
Sans-serifs have been proven to be easier to read on-screen and are incredibly adaptable when resized and displayed across different platforms and browsers. Accordingly, Open Sans is used for body type, secondary and tertiary headlines, and instructional text.
3133

3234
**Web font stack:** Open Sans > Helvetica > Arial > Verdana > Sans-Serif
3335

packages/docs/content/utilities/font/font-weight.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ import loremIpsumGenerator from '../../../src/helpers/loremIpsumGenerator';
66

77
Change an element's `font-weight` property using the font weight utility.
88

9-
**Format**: `.ds-u-font-weight--[normal|bold]`
9+
**Format**: `.ds-u-font-weight--[normal|semibold|bold]`
1010

1111
<EmbeddedExample>
1212
<section class="example-list">
1313
<article>
1414
<code class="ds-u-margin-bottom--1">.ds-u-font-weight--normal</code>
1515
<div class="ds-u-font-weight--normal">{loremIpsumGenerator('m')}</div>
1616
</article>
17+
<article>
18+
<code class="ds-u-margin-bottom--1">.ds-u-font-weight--semibold</code>
19+
<div class="ds-u-font-weight--semibold">{loremIpsumGenerator('m')}</div>
20+
</article>
1721
<article>
1822
<code class="ds-u-margin-bottom--1">.ds-u-font-weight--bold</code>
1923
<div class="ds-u-font-weight--bold">{loremIpsumGenerator('m')}</div>

0 commit comments

Comments
 (0)