Ensure typography has value
This commit is contained in:
@@ -25,7 +25,7 @@ class Button extends AbstractBlockRenderer {
|
|||||||
'color' => [
|
'color' => [
|
||||||
'text' => $blockStyles['color']['text'] ?? '',
|
'text' => $blockStyles['color']['text'] ?? '',
|
||||||
],
|
],
|
||||||
'typography' => $blockStyles['typography'],
|
'typography' => $blockStyles['typography'] ?? [],
|
||||||
]);
|
]);
|
||||||
return (object)[
|
return (object)[
|
||||||
'css' => $this->compileCss($styles['declarations'], ['display' => 'block']),
|
'css' => $this->compileCss($styles['declarations'], ['display' => 'block']),
|
||||||
|
Reference in New Issue
Block a user