From dd80490449bceec96aca8c4b0dd7eea52a5f7ad5 Mon Sep 17 00:00:00 2001 From: shani-terminus Date: Mon, 22 Apr 2019 15:11:26 -0400 Subject: [PATCH] fix(Utilities): sCSS bad inputs prevent a build and error messages are displayed ISSUES CLOSED: #1456 --- terminus-ui/scss/helpers/_layout.scss | 2 +- terminus-ui/scss/helpers/_opposite-direction.scss | 2 +- terminus-ui/scss/helpers/_shadows.scss | 2 +- terminus-ui/scss/helpers/_z-index.scss | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/terminus-ui/scss/helpers/_layout.scss b/terminus-ui/scss/helpers/_layout.scss index 6a9a8fe3c..313eb78f0 100644 --- a/terminus-ui/scss/helpers/_layout.scss +++ b/terminus-ui/scss/helpers/_layout.scss @@ -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 { diff --git a/terminus-ui/scss/helpers/_opposite-direction.scss b/terminus-ui/scss/helpers/_opposite-direction.scss index 20285d938..b47024739 100644 --- a/terminus-ui/scss/helpers/_opposite-direction.scss +++ b/terminus-ui/scss/helpers/_opposite-direction.scss @@ -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.'; } } diff --git a/terminus-ui/scss/helpers/_shadows.scss b/terminus-ui/scss/helpers/_shadows.scss index fec09644b..afe901f60 100644 --- a/terminus-ui/scss/helpers/_shadows.scss +++ b/terminus-ui/scss/helpers/_shadows.scss @@ -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) { diff --git a/terminus-ui/scss/helpers/_z-index.scss b/terminus-ui/scss/helpers/_z-index.scss index 564ae4591..0c45cdc18 100644 --- a/terminus-ui/scss/helpers/_z-index.scss +++ b/terminus-ui/scss/helpers/_z-index.scss @@ -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; } }