Skip to content

Commit

Permalink
fix(Utilities): sCSS bad inputs prevent a build and error messages ar…
Browse files Browse the repository at this point in the history
…e displayed

ISSUES CLOSED: #1456
  • Loading branch information
shani-terminus authored and benjamincharity committed Apr 25, 2019
1 parent eb1590b commit dd80490
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion terminus-ui/scss/helpers/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
$padding: unquote((( $y / $x ) * 100) + '%');

@if $x == null or $y == null {
@warn 'Both the x and y ratios must be passed in.';
@error 'Both the x and y ratios must be passed in.';
}

@if $pseudo {
Expand Down
2 changes: 1 addition & 1 deletion terminus-ui/scss/helpers/_opposite-direction.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
@if map-has-key($direction-map, $direction) {
$opposite-directions: append($opposite-directions, unquote(map-get($direction-map, $direction)));
} @else {
@warn 'No opposite direction can be found for `#{$direction}`. Direction omitted.';
@error 'No opposite direction can be found for `#{$direction}`. Direction omitted.';
}
}

Expand Down
2 changes: 1 addition & 1 deletion terminus-ui/scss/helpers/_shadows.scss
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ $material-elements: (
$upper: nth($reference-shadows, length($reference-shadows));

@if $elevation < 0 {
@warn 'Elevation is less than zero';
@error 'Elevation is less than zero';
}

@for $i from 1 to length($reference-shadows) {
Expand Down
2 changes: 1 addition & 1 deletion terminus-ui/scss/helpers/_z-index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $z-layers: (
@if index($z-layers, $name) {
@return (length($z-layers) - index($z-layers, $name)) + 1;
} @else {
@warn 'There is no item "#{$name}" in this list; choose one of: #{$z-layers}';
@error 'There is no item "#{$name}" in this list; choose one of: #{$z-layers}';
@return null;
}
}

0 comments on commit dd80490

Please sign in to comment.