N°3882 - Move DataModel classes fields' style to theme instead of (duplicated) inline CSS

This commit is contained in:
Molkobain
2021-09-21 22:49:41 +02:00
parent 24cedbdebd
commit e2b73995e1
4 changed files with 185 additions and 89 deletions

View File

@@ -38,16 +38,6 @@ class FieldBadgeUIBlockFactory extends AbstractUIBlockFactory
$sHtml .= "<span class=\"ibo-field-badge--decoration\"><i class=\"$sDecorationClasses\"></i></span>";
}
$sHtml .= "<span class=\"ibo-field-badge--label\">$sValue</span>";
// Add custom style
// TODO 3.0 To be removed when compilation supports generated CSS
$sHtml .= <<<HTML
<style>
.$sStyleClass {
color: $sComplementaryColor;
background-color: $sPrimaryColor;
}
</style>
HTML;
}
}
if (!$oBadge) {