mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-01 09:12:33 +03:00
Be sure to disable the cursor when the input is disabled
This commit is contained in:
parent
58908f0bd1
commit
bd24852b1e
@ -218,7 +218,10 @@ buildCheckbox assets modifierClasses model labelContent =
|
||||
css
|
||||
[ backgroundRepeat noRepeat
|
||||
, color Colors.gray20
|
||||
, cursor pointer
|
||||
, if model.disabled then
|
||||
cursor auto
|
||||
else
|
||||
cursor pointer
|
||||
, Fonts.baseFont
|
||||
, fontSize (px 16)
|
||||
, minHeight (px 42) -- container height
|
||||
@ -293,7 +296,10 @@ buildCheckbox assets modifierClasses model labelContent =
|
||||
, backgroundRepeat noRepeat
|
||||
, backgroundSize (px 24)
|
||||
, color Colors.gray20
|
||||
, cursor pointer
|
||||
, if model.disabled then
|
||||
cursor auto
|
||||
else
|
||||
cursor pointer
|
||||
, Fonts.baseFont
|
||||
, fontSize (px 16)
|
||||
, minHeight (px 42) -- container height
|
||||
@ -316,6 +322,10 @@ buildCheckbox assets modifierClasses model labelContent =
|
||||
[ backgroundImage assets PremiumKey
|
||||
, backgroundRepeat noRepeat
|
||||
, color Colors.gray20
|
||||
, if model.disabled then
|
||||
cursor auto
|
||||
else
|
||||
cursor pointer
|
||||
, display inlineBlock
|
||||
, Fonts.baseFont
|
||||
, fontSize (px 16)
|
||||
@ -553,9 +563,6 @@ containerStyles =
|
||||
, height inherit
|
||||
, descendants
|
||||
[ Css.Foreign.input [ display none ]
|
||||
, selector ":disabled + label"
|
||||
[ cursor auto
|
||||
]
|
||||
]
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user