mirror of
https://github.com/flarum/core.git
synced 2025-08-11 10:55:47 +02:00
refactor: keep it for backwards compatibility
This commit is contained in:
@@ -24,6 +24,7 @@ export default function () {
|
|||||||
const color = tags[0].color();
|
const color = tags[0].color();
|
||||||
if (color) {
|
if (color) {
|
||||||
view.attrs.style = { '--hero-bg': color };
|
view.attrs.style = { '--hero-bg': color };
|
||||||
|
view.attrs.className += ' DiscussionHero--colored';
|
||||||
|
|
||||||
if (isDark(color)) {
|
if (isDark(color)) {
|
||||||
view.attrs.className += ' DiscussionHero--dark';
|
view.attrs.className += ' DiscussionHero--dark';
|
||||||
|
Reference in New Issue
Block a user