Skip to content

Commit b05c56a

Browse files
committed
Sass toolkit shouldn't handle font smoothing.
1 parent bf9cad0 commit b05c56a

File tree

4 files changed

+0
-28
lines changed

4 files changed

+0
-28
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ $type-styles: (
134134

135135
body: (
136136
stack: helvetica,
137-
font-smoothing: true,
138137
sizes: (
139138
default: 16,
140139
medium: 24

_font-smoothing.scss

Lines changed: 0 additions & 12 deletions
This file was deleted.

_type-styles.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
@use "sass:meta";
55
@import "util/map-deep-get";
66
@import "util/map-extend";
7-
@import "font-smoothing";
87
@import "size";
98

109
// ---------------------------------------------------------------
@@ -270,11 +269,6 @@ $breakpoints: () !default;
270269
// Get list of properties from the size set
271270
$properties: get-properties-for-type-size-set($size-set);
272271

273-
// Apply font smoothing
274-
@if map_has_key($map, $key) and map-get($map-style, font-smoothing) {
275-
@include font-smoothing();
276-
}
277-
278272
// Set font-family
279273
@include font-stack-styles(map-get($map-style, 'stack'));
280274

test/test.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ $font-stacks: (
5050
$type-styles: (
5151
a: (
5252
stack: helvetica,
53-
font-smoothing: true,
5453
sizes: (
5554
default: (
5655
font-size: 1.6rem,
@@ -62,7 +61,6 @@ $type-styles: (
6261
),
6362
b: (
6463
stack: helvetica,
65-
font-smoothing: false,
6664
sizes: (
6765
default: (
6866
font-size: 1.6rem,
@@ -76,7 +74,6 @@ $type-styles: (
7674
),
7775
c: (
7876
stack: helvetica,
79-
font-smoothing: false,
8077
sizes: (
8178
default: (
8279
font-size: 16px,
@@ -484,8 +481,6 @@ $type-styles: (
484481
}
485482
@include expect {
486483
.h-type-a {
487-
-moz-osx-font-smoothing: grayscale;
488-
-webkit-font-smoothing: antialiased;
489484
font-family: "Helvetica Neue", arial, sans-serif;
490485
font-weight: normal;
491486
font-style: normal;
@@ -611,8 +606,6 @@ $type-styles: (
611606
@include type-style(a);
612607
}
613608
@include expect {
614-
-moz-osx-font-smoothing: grayscale;
615-
-webkit-font-smoothing: antialiased;
616609
font-family: "Helvetica Neue", arial, sans-serif;
617610
font-weight: normal;
618611
font-style: normal;
@@ -702,8 +695,6 @@ $type-styles: (
702695
@include get-type-style(a, medium);
703696
}
704697
@include expect {
705-
-moz-osx-font-smoothing: grayscale;
706-
-webkit-font-smoothing: antialiased;
707698
font-family: "Helvetica Neue", arial, sans-serif;
708699
font-weight: normal;
709700
font-style: normal;

0 commit comments

Comments
 (0)