From 1e1edc02e9f5032c360af75fb0b6909bba4404e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sun, 17 Apr 2022 14:04:53 +0200 Subject: [PATCH] Fix warnings when compiling SCSS Foundation was using `!global` for non-existing variables, which generated a warning on our current version of Sass. This is (mostly) fixed on the latest version of Foundation. However, this latest version isn't included in the `foundation-rails` gem, so we can't upgrade yet. So we're defining these variables before Foundation does so. See issue 12080 in the foundation/foundation-sites repository for more information. --- app/assets/stylesheets/_consul_settings.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/assets/stylesheets/_consul_settings.scss b/app/assets/stylesheets/_consul_settings.scss index 9f9cf57ad..c29f86bf7 100644 --- a/app/assets/stylesheets/_consul_settings.scss +++ b/app/assets/stylesheets/_consul_settings.scss @@ -6,6 +6,7 @@ // 1. Foundation settings overrides // 2. CONSUL variables // 3. Foundation overrides depending on CONSUL variables +// 4. Foundation fixes // 1. Foundation settings overrides // --------------------------------- @@ -154,3 +155,14 @@ $tab-content-border: $border !default; $closebutton-color: $text !default; $tooltip-background-color: $brand !default; + +// 4. Foundation fixes +// ------------------- + +$alert-color: null !default; +$primary-color: null !default; +$secondary-color: null !default; +$success-color: null !default; +$warning-color: null !default; +$-zf-bp-value: null !default; +$-zf-size: null !default;