Skip to content

Commit 7e1e812

Browse files
Enable single-storey-a in Figtree (#2846)
1 parent 31ec8ad commit 7e1e812

File tree

7 files changed

+8
-0
lines changed

7 files changed

+8
-0
lines changed

.storybook/public/manager.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
body {
1414
background-color: #f5f8fa;
15+
font-feature-settings: 'ss01' 1; /* enables single-storey 'a' */
1516
}
1617

1718
.sidebar-header img {
@@ -24,6 +25,7 @@ body {
2425

2526
.sidebar-item {
2627
border-radius: 8px;
28+
font-feature-settings: 'ss01' 1; /* enables single-storey 'a' */
2729
}
2830

2931
.sidebar-container {

src/components/text/_headlines.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ $headlineSizeRules: (
5858
color: $black;
5959
font-weight: $fontWeightBold;
6060
font-family: $fontFamilyPrimary;
61+
font-feature-settings: $fontFeatureSettings;
6162
max-width: 100%;
6263

6364
&--inherited {

src/components/text/_text-bits.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ $bitSizes: (
2929
font-size: getBitSize(medium);
3030
line-height: getBitSize(medium);
3131
font-family: $fontFamilyPrimary;
32+
font-feature-settings: $fontFeatureSettings;
3233
color: $text-green-40;
3334
font-weight: $fontWeightBlack;
3435
margin: 0;

src/components/text/_text.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ $bodyTextSizeRules: (
6363
.sg-text {
6464
@include bodyTextTypeSizeVariant(medium);
6565
font-family: $fontFamilyPrimary;
66+
font-feature-settings: $fontFeatureSettings;
6667
font-weight: $fontWeightNormal;
6768
color: $text-black;
6869

src/docs/styles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
font-size: 18px;
7979
line-height: 28px;
8080
font-family: 'Figtree', 'Helvetica', 'Arial', sans-serif;
81+
font-feature-settings: 'ss01' 1; /* enables single-storey 'a' */
8182
font-weight: 400;
8283
color: #000000;
8384

src/sass/_basics.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ $includeHtml: false !default;
4848

4949
font-size: fontSize(default);
5050
font-family: $fontFamilyPrimary;
51+
font-feature-settings: $fontFeatureSettings;
5152
line-height: rhythm(1);
5253
}
5354

src/sass/_config.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ $shadowLarge: 0 8px 32px 0 rgba($gray-70, 0.2);
1212
$fontFamilyFigtree: 'Figtree';
1313
$fontFamilyUntitledSerif: 'UntitledSerif';
1414
$fontFamilyPrimary: $fontFamilyFigtree, 'Helvetica', 'Arial', sans-serif;
15+
$fontFeatureSettings: 'ss01' 1; /* enables single-storey 'a' */
1516
$fontWeightNormal: 400;
1617
$fontWeightBold: 700;
1718
$fontWeightBlack: 900;

0 commit comments

Comments
 (0)