Skip to content

Commit

Permalink
Fixed bug with title component style extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
colintucker committed Aug 31, 2018
1 parent 090f586 commit b815913
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Components/TitleComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit b815913

Please sign in to comment.