Skip to content

Commit

Permalink
Fix preset class specificity in site-editor (#31204)
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolosw authored Apr 26, 2021
1 parent a8b9dc2 commit 75262ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function getBlockPresetClasses( blockSelector, blockPresets = {} ) {
const value = preset[ valueKey ];
const classSelectorToUse = `.has-${ slug }-${ classSuffix }`;
const selectorToUse = `${ blockSelector }${ classSelectorToUse }`;
declarations += `${ selectorToUse } {${ propertyName }: ${ value };}`;
declarations += `${ selectorToUse }{${ propertyName }: ${ value } !important;}`;
} );
} );
return declarations;
Expand Down

0 comments on commit 75262ab

Please sign in to comment.