From b8159135ca5dc745a7685fe004e3b17df68009e8 Mon Sep 17 00:00:00 2001 From: Colin Tucker Date: Fri, 31 Aug 2018 17:22:17 +1000 Subject: [PATCH] Fixed bug with title component style extensions. --- src/Components/TitleComponent.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Components/TitleComponent.php b/src/Components/TitleComponent.php index b0a8c89..0e09a6c 100644 --- a/src/Components/TitleComponent.php +++ b/src/Components/TitleComponent.php @@ -134,6 +134,20 @@ public function getCMSFields() return $fields; } + /** + * Overrides the parent method so style extensions can add classes to the component class names. + * + * @return array + */ + public function getClassNames() + { + $classes = parent::getClassNames(); + + $this->extend('updateContentClassNames', $classes); + + return $classes; + } + /** * Renders the component for the HTML template. *