From 1c23bc58c6390febdb103319ef516ef358efcbbc Mon Sep 17 00:00:00 2001 From: Azin Asili Date: Thu, 2 Mar 2017 10:11:13 -0500 Subject: [PATCH] Check if setting is a sting Future versions of Sass will cause an error if a number is passed to `unquote()` --- bytes/functions/_get-setting.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bytes/functions/_get-setting.scss b/bytes/functions/_get-setting.scss index 5075e24..0e070ee 100644 --- a/bytes/functions/_get-setting.scss +++ b/bytes/functions/_get-setting.scss @@ -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); }