Skip to content

Commit

Permalink
Merge pull request #1989 from cozy/fix/alerter
Browse files Browse the repository at this point in the history
fix: Correct colors about Alerter buttons
  • Loading branch information
flohhhh committed Dec 7, 2021
2 parents 8c7635e + 050c2b9 commit 1da555c
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions stylus/components/button.styl
Original file line number Diff line number Diff line change
Expand Up @@ -188,47 +188,56 @@ $button-alert

$button-alert--error
@extend $button-alert
color: palette['pomegranate'] // @stylint ignore
color: palette['pomegranate'] !important // @stylint ignore
background-color: var(--white) !important // @stylint ignore
border-color: var(--white) !important // @stylint ignore

&:visited
color: palette['pomegranate'] // @stylint ignore
color: palette['pomegranate'] !important // @stylint ignore

&:active
&:hover
&:focus
color var(--monza)
background-color: palette['yourPink'] // @stylint ignore
color: var(--monza) !important // @stylint ignore
background-color: palette['yourPink'] !important // @stylint ignore
border-color: palette['yourPink'] !important // @stylint ignore


$button-alert--info
@extend $button-alert
color var(--white)
background-color var(--coolGrey)
color: var(--white) !important // @stylint ignore
background-color: var(--coolGrey) !important // @stylint ignore
border-color: var(--coolGrey) !important // @stylint ignore

&[disabled]
&[aria-disabled=true]
&:hover
background-color var(--coolGrey)
background-color: var(--coolGrey) !important // @stylint ignore // @stylint ignore

&:visited
color var(--white)
color: var(--white) !important // @stylint ignore

&:active
&:hover
&:focus
background-color var(--charcoalGrey)
background-color: var(--charcoalGrey) !important // @stylint ignore
border-color: var(--charcoalGrey) !important // @stylint ignore

$button-alert--success
@extend $button-alert
color: palette['emerald'] // @stylint ignore
color: palette['emerald'] !important // @stylint ignore
background-color: var(--white) !important // @stylint ignore
border-color: var(--white) !important // @stylint ignore

&:visited
color: palette['emerald'] // @stylint ignore
color: palette['emerald'] !important // @stylint ignore

&:active
&:hover
&:focus
color: palette['malachite'] // @stylint ignore
background-color: palette['grannyApple'] // @stylint ignore
color: palette['malachite'] !important // @stylint ignore
background-color: palette['grannyApple'] !important // @stylint ignore
border-color: palette['grannyApple'] !important // @stylint ignore

$button-client
@extend $button
Expand Down

0 comments on commit 1da555c

Please sign in to comment.