mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +08:00
fix(qa): apply color contrast fix when colored only
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
parent
360a2ba1d8
commit
3ab4529232
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue
Block a user