mirror of
https://github.com/flarum/core.git
synced 2025-07-30 13:10:24 +02:00
fix(qa): apply color contrast fix when colored only
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
@@ -10,7 +10,7 @@ export default class TagHero extends Component {
|
||||
|
||||
return (
|
||||
<header
|
||||
className={classList('Hero', 'TagHero', { 'TagHero--colored': color }, textContrastClass(color))}
|
||||
className={classList('Hero', 'TagHero', { 'TagHero--colored': color, [textContrastClass(color)]: color })}
|
||||
style={color ? { '--hero-bg': color } : ''}
|
||||
>
|
||||
<div className="container">
|
||||
|
Reference in New Issue
Block a user