diff options
| author | qsm-odoo <qsm@odoo.com> | 2020-07-08 12:56:39 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-07-09 18:09:59 +0000 |
| commit | 3a34e39caa8544059dfb1888edc29c62c3efde31 (patch) | |
| tree | dd80524eaf83f61653ccd4ddfd79aebc283a7139 /addons/web_editor/static/src/js | |
| parent | ec026e76ca910107d5b61b5bf9f44c5b904c29b1 (diff) | |
[REF] web_editor, *: review how html properties are printed (scss)
*: website
Make sure strings are printed quoted and null values are not printed.
Part of https://github.com/odoo/odoo/pull/54065
task-2291398
Diffstat (limited to 'addons/web_editor/static/src/js')
| -rw-r--r-- | addons/web_editor/static/src/js/wysiwyg/widgets/color_palette.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/wysiwyg/widgets/color_palette.js b/addons/web_editor/static/src/js/wysiwyg/widgets/color_palette.js index 6bf55bb787a..5ed02d3a332 100644 --- a/addons/web_editor/static/src/js/wysiwyg/widgets/color_palette.js +++ b/addons/web_editor/static/src/js/wysiwyg/widgets/color_palette.js @@ -176,7 +176,7 @@ const ColorPaletteWidget = Widget.extend({ }, }); this.style.getPropertyValue(`--custom-colors`).trim().split(' ').forEach(v => { - const color = this.style.getPropertyValue(`--${v}`).trim(); + const color = this.style.getPropertyValue(`--${v.substring(1, v.length - 1)}`).trim(); if (ColorpickerWidget.isCSSColor(color)) { this._addCustomColor(existingColors, color); } |
