Is it possible to have a control set !important
on the styles it sets when creating elements? I thought I read somewhere that it is, but I can’t find that information anymore.
$this->controls['abc'] = [
'css' => [
[
'property' => 'color',
'selector' => '',
'!important => true
],
],
];
I forgot to update this post when someone from the unofficial Bricks discord offered a solution. In my case I didn’t need the exclamation at the beginning.
$this->controls['foo'] = [
'css' => [
[
'selector' => '.mine',
'property' => 'color',
'important' => true,
],
],
];