mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-02 23:52:22 +03:00
Don't prematurely get the label class
This commit is contained in:
parent
2ac25c25fa
commit
4f1913420b
@ -126,7 +126,6 @@ buildCheckbox model labelContent =
|
||||
|
||||
else
|
||||
enabledSquareLabel
|
||||
, labelClasses = labelClass model.selected
|
||||
, labelContent = labelContent
|
||||
, icon =
|
||||
case model.selected of
|
||||
@ -148,7 +147,6 @@ buildCheckbox model labelContent =
|
||||
|
||||
else
|
||||
enabledLockLabelStyles
|
||||
, labelClasses = labelClass model.selected
|
||||
, labelContent = labelContent
|
||||
, icon = checkboxLockOnInside
|
||||
}
|
||||
@ -266,7 +264,6 @@ viewCheckbox :
|
||||
->
|
||||
{ containerClasses : Html.Attribute msg
|
||||
, labelStyles : Icon -> List Style
|
||||
, labelClasses : Html.Attribute msg
|
||||
, labelContent : Html.Html msg
|
||||
, icon : Icon
|
||||
}
|
||||
@ -296,7 +293,7 @@ viewCheckbox model config =
|
||||
, Attributes.id model.identifier
|
||||
, Attributes.disabled model.disabled
|
||||
]
|
||||
, viewLabel model config.labelContent config.labelClasses (config.labelStyles config.icon)
|
||||
, viewLabel model config.labelContent (labelClass model.selected) (config.labelStyles config.icon)
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user