Skip to content

Commit dad962e

Browse files
authored
Merge pull request #11 from lumihq/kimi/fix/disabled-btn
Fix disabled button colors
2 parents be889e8 + d7407e4 commit dad962e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Lumi/Components/Button.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Lumi.Components.Button where
22

33
import Prelude
44

5-
import Color (cssStringHSLA, darken, lighten)
5+
import Color (cssStringHSLA, darken, desaturate, lighten)
66
import Data.Array as Array
77
import Data.Char (fromCharCode)
88
import Data.Foldable (fold)
@@ -293,6 +293,6 @@ styles = jss
293293
, "&:hover": { backgroundColor: cssStringHSLA $ darken 0.1 value }
294294
, "&:active": { backgroundColor: cssStringHSLA $ darken 0.15 value }
295295
, "&:disabled, &[data-loading=\"true\"]":
296-
{ backgroundColor: cssStringHSLA $ lighten 0.25 value
296+
{ backgroundColor: cssStringHSLA $ lighten 0.4137 $ desaturate 0.1972 $ value
297297
}
298298
}

0 commit comments

Comments
 (0)