Skip to content

Commit

Permalink
Check if setting is a sting
Browse files Browse the repository at this point in the history
Future versions of Sass will cause an error if a number is passed to `unquote()`
  • Loading branch information
Azin Asili authored Mar 2, 2017
1 parent 5b9c452 commit 1c23bc5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bytes/functions/_get-setting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@
@function _get-setting($override, $setting) {
$_config: map-merge($_bytes-default, $override);

@return unquote(map-get($_config, $setting));
@if map-get($_config, $setting) == string {
@return unquote(map-get($_config, $setting));
}

@return map-get($_config, $setting);
}

0 comments on commit 1c23bc5

Please sign in to comment.