Ensure typography has value

This commit is contained in:
Mike Jolley
2024-04-04 14:11:01 +01:00
parent c4313fd775
commit 1e5ec13403

View File

@@ -25,7 +25,7 @@ class Button extends AbstractBlockRenderer {
'color' => [
'text' => $blockStyles['color']['text'] ?? '',
],
'typography' => $blockStyles['typography'],
'typography' => $blockStyles['typography'] ?? [],
]);
return (object)[
'css' => $this->compileCss($styles['declarations'], ['display' => 'block']),