Skip to content

Commit

Permalink
Sass toolkit shouldn't handle font smoothing.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmalven committed Dec 19, 2022
1 parent bf9cad0 commit b05c56a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 28 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ $type-styles: (

body: (
stack: helvetica,
font-smoothing: true,
sizes: (
default: 16,
medium: 24
Expand Down
12 changes: 0 additions & 12 deletions _font-smoothing.scss

This file was deleted.

6 changes: 0 additions & 6 deletions _type-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
@use "sass:meta";
@import "util/map-deep-get";
@import "util/map-extend";
@import "font-smoothing";
@import "size";

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

// Apply font smoothing
@if map_has_key($map, $key) and map-get($map-style, font-smoothing) {
@include font-smoothing();
}

// Set font-family
@include font-stack-styles(map-get($map-style, 'stack'));

Expand Down
9 changes: 0 additions & 9 deletions test/test.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ $font-stacks: (
$type-styles: (
a: (
stack: helvetica,
font-smoothing: true,
sizes: (
default: (
font-size: 1.6rem,
Expand All @@ -62,7 +61,6 @@ $type-styles: (
),
b: (
stack: helvetica,
font-smoothing: false,
sizes: (
default: (
font-size: 1.6rem,
Expand All @@ -76,7 +74,6 @@ $type-styles: (
),
c: (
stack: helvetica,
font-smoothing: false,
sizes: (
default: (
font-size: 16px,
Expand Down Expand Up @@ -484,8 +481,6 @@ $type-styles: (
}
@include expect {
.h-type-a {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: "Helvetica Neue", arial, sans-serif;
font-weight: normal;
font-style: normal;
Expand Down Expand Up @@ -611,8 +606,6 @@ $type-styles: (
@include type-style(a);
}
@include expect {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: "Helvetica Neue", arial, sans-serif;
font-weight: normal;
font-style: normal;
Expand Down Expand Up @@ -702,8 +695,6 @@ $type-styles: (
@include get-type-style(a, medium);
}
@include expect {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: "Helvetica Neue", arial, sans-serif;
font-weight: normal;
font-style: normal;
Expand Down

0 comments on commit b05c56a

Please sign in to comment.