We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddd2d94 commit 5ff2620Copy full SHA for 5ff2620
common/common.scss
@@ -47,6 +47,8 @@ div[class^="category-title-header"] {
47
display: flex;
48
width: 100%;
49
justify-content: center;
50
+ background: var(--category-banner-bg-color);
51
+ color: var(--category-banner-color);
52
53
@if $align_text == "center" {
54
text-align: center;
javascripts/discourse/components/category-banner.gjs
@@ -45,7 +45,7 @@ export default class DiscourseCategoryBanners extends Component {
45
46
get safeStyle() {
return htmlSafe(
- `background-color: #${this.category.color}; color: #${this.category.text_color};`
+ `--category-banner-bg-color: #${this.category.color}; --category-banner-color: #${this.category.text_color};`
);
}
0 commit comments