diff options
| author | Samuel Degueldre <sad@odoo.com> | 2020-05-04 07:23:20 +0000 |
|---|---|---|
| committer | Samuel Degueldre <sad@odoo.com> | 2020-05-05 14:40:18 +0000 |
| commit | e4c3f778ccb22fa1925398482b07a111e4a7aab4 (patch) | |
| tree | a027a6258e9cb2d92c6f610c6b533aaa784a33e9 | |
| parent | d0946b369476fb12c82107ee7b49e455631d4c2b (diff) | |
[FIX] website: don't interpolate null values for css properties
In 29f02a37f042 we bumped the verion of libsass that we use. One
breaking change introduced by the new version is that if a css variable
is interpolated to the empty string, it is still emited in the compiled
css [1]
This commit fixes that by explicitly omitting null values from the map
before looping over it.
[1]: https://sass-lang.com/documentation/breaking-changes/css-vars
task-2248360
closes odoo/odoo#50668
X-original-commit: 6faf327706169bbe31e188a42805085b95b78052
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
| -rw-r--r-- | addons/website/static/src/scss/website.scss | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss index eb0a3be0423..363528e30a5 100644 --- a/addons/website/static/src/scss/website.scss +++ b/addons/website/static/src/scss/website.scss @@ -37,7 +37,7 @@ $-font-numbers: ( // 3) The values in the $colors map are also printed by Bootstrap. // 4) The Odoo values map, $o-website-values, must be printed. - @each $key, $value in $o-website-values { + @each $key, $value in o-map-omit($o-website-values) { --#{$key}: #{$value}; } |
