Skip to content

Commit

Permalink
improve disabled button styling
Browse files Browse the repository at this point in the history
  • Loading branch information
myrho committed Mar 19, 2024
1 parent 7a6401a commit dbfc2fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Css/Button.elm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ danger vc =

disabled : Config -> List Style
disabled vc =
cursor notAllowed :: vc.theme.button.disabled vc.lightmode
button vc ++ [ cursor notAllowed ] ++ vc.theme.button.disabled vc.lightmode
8 changes: 4 additions & 4 deletions themes/Iknaio.elm
Original file line number Diff line number Diff line change
Expand Up @@ -529,9 +529,6 @@ theme =
|> s_primary
(\lightmode ->
[ color_backgroundColorWithLightmode lightmode colors.brandText colors.brandLight
, disabled
[ color_backgroundColorWithLightmode lightmode colors.grey colors.greyLight
]
, hover
[ backgroundColorWithLightmode lightmode colors.brandBase
]
Expand All @@ -544,7 +541,10 @@ theme =
)
|> s_disabled
(\lightmode ->
[ colorWithLightmode lightmode colors.brandLight
[ color_backgroundColorWithLightmode lightmode colors.grey colors.greyLight
, hover
[ color_backgroundColorWithLightmode lightmode colors.grey colors.greyLight
]
]
)
)
Expand Down

0 comments on commit dbfc2fe

Please sign in to comment.