Skip to content

Commit

Permalink
Fix deprecation issue type-of -> meta.type-of
Browse files Browse the repository at this point in the history
  • Loading branch information
bramsmulders committed Oct 21, 2024
1 parent 6d3be29 commit 7c4af33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions settings/defaults/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ $should-be-pixel-values: (
'line-height': $line-height,
);
@each $key, $value in $should-be-pixel-values {
@if type-of($value) == number {
@if meta.type-of($value) == number {
@if math.unit($value) != 'px' {
@error '`#{$key}: #{$value}` needs to be a pixel unit.';
}
Expand All @@ -120,7 +120,7 @@ $should-be-pixel-values: (
* check that breakpoints are defined in px or em
*/
@each $key, $value in $breakpoints {
@if type-of($value) == number {
@if meta.type-of($value) == number {
@if math.unit($value) != 'px' and math.unit($value) != 'em' {
@error 'Breakpoint `#{$key}: #{$value}` needs to be a pixel or em unit.';
}
Expand All @@ -136,7 +136,7 @@ $should-be-unitless-integers: (
'columns': $columns,
);
@each $key, $value in map.merge($space-factors, $should-be-unitless-integers) {
@if type-of($value) == number {
@if meta.type-of($value) == number {
@if math.is-unitless($value) == false {
@error '`#{$key}: #{$value}` needs to be unitless.';
}
Expand Down

0 comments on commit 7c4af33

Please sign in to comment.