diff --git a/src/css_composer/model/CssRule.js b/src/css_composer/model/CssRule.js index d5534bc96..2beb24c40 100644 --- a/src/css_composer/model/CssRule.js +++ b/src/css_composer/model/CssRule.js @@ -141,8 +141,9 @@ export default class CssRule extends Model.extend(Styleable) { */ getDeclaration(opts = {}) { let result = ''; + const { important } = this.attributes; const selectors = this.selectorsToString(opts); - const style = this.styleToString(opts); + const style = this.styleToString({ important, ...opts }); const singleAtRule = this.get('singleAtRule'); if ((selectors || singleAtRule) && (style || opts.allowEmpty)) {