Skip to content

Commit

Permalink
Font mixin error message update
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Yeshtukova committed Feb 12, 2022
1 parent 182e468 commit 066b091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/global/scss/base/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
// Font-size mixin - returns the font size for mobile and desktop based of the values in $font-sizes map
@mixin font-size($size) {
@if $size != 'xxs' and $size != 'xs' and $size != 'sm' and $size != 'md' and $size != 'lg' and $size != 'xl' and $size != 'xxl' {
@error 'NSW-DS font-size mixin allows the following values for $sizes: xs, sm, md, lg, xl, xxl, xxxl. You have used "#{$size}"';
@error 'NSW-DS font-size mixin allows the following values for $sizes: xxs, xs, sm, md, lg, xl, xxl. You have used "#{$size}"';
}

@if $size {
Expand Down

0 comments on commit 066b091

Please sign in to comment.