Skip to content

Commit

Permalink
Angular modules get added with weights 200+ so bump theme to 290
Browse files Browse the repository at this point in the history
This means custom CSS also needs to be bumped above 290.

Until civicrm/civicrm-core#20278 is merged,
there is no easy way to identify which snippet is the custom CSS one so
we search for 'custom.css' in the name.
  • Loading branch information
aydun committed May 12, 2021
1 parent 96f3f07 commit fbb3f92
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion finsburypark.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ function finsburypark_civicrm_alterBundle(CRM_Core_Resources_Bundle $bundle) {
if ($bundle->name == 'coreStyles') {
$bundle->filter(function($snippet) {
if ($snippet['name'] == 'civicrm:css/civicrm.css') {
$snippet['weight'] = 90;
$snippet['weight'] = 290;
return $snippet;
}
elseif (($snippet['name'] == 'civicrm::css/custom.css') or (strpos($snippet['name'], 'custom.css') !== false)) {
$snippet['weight'] = 300;
return $snippet;
}
return TRUE;
Expand Down

0 comments on commit fbb3f92

Please sign in to comment.