Kill checkbox styles (the checkbox is hidden anyway)

This commit is contained in:
Tessa Kelly 2018-06-15 11:35:17 -07:00
parent 8739188cd9
commit fbfccc5c49

View File

@ -214,7 +214,6 @@ buildCheckbox assets modifierClasses model labelContent =
Square colorTheme -> Square colorTheme ->
{ containerStyles = css containerStyles { containerStyles = css containerStyles
, containerClasses = toClassList (modifierClasses ++ [ "SquareClass" ]) , containerClasses = toClassList (modifierClasses ++ [ "SquareClass" ])
, checkboxStyles = css [ cursor pointer ]
, labelStyles = , labelStyles =
css css
[ cursor pointer [ cursor pointer
@ -257,9 +256,6 @@ buildCheckbox assets modifierClasses model labelContent =
Locked -> Locked ->
{ containerStyles = css containerStyles { containerStyles = css containerStyles
, containerClasses = toClassList (modifierClasses ++ [ "LockedClass" ]) , containerClasses = toClassList (modifierClasses ++ [ "LockedClass" ])
, checkboxStyles =
css
[ cursor pointer ]
, labelStyles = , labelStyles =
css css
[ cursor pointer [ cursor pointer
@ -272,9 +268,6 @@ buildCheckbox assets modifierClasses model labelContent =
LockOnInside -> LockOnInside ->
{ containerStyles = css containerStyles { containerStyles = css containerStyles
, containerClasses = toClassList (modifierClasses ++ [ "LockOnInsideClass" ]) , containerClasses = toClassList (modifierClasses ++ [ "LockOnInsideClass" ])
, checkboxStyles =
css
[ cursor pointer ]
, labelStyles = , labelStyles =
css css
[ cursor pointer [ cursor pointer
@ -287,9 +280,6 @@ buildCheckbox assets modifierClasses model labelContent =
Unlockable -> Unlockable ->
{ containerStyles = css containerStyles { containerStyles = css containerStyles
, containerClasses = toClassList (modifierClasses ++ [ "UnlockableClass" ]) , containerClasses = toClassList (modifierClasses ++ [ "UnlockableClass" ])
, checkboxStyles =
css
[ cursor pointer ]
, labelStyles = , labelStyles =
css css
[ cursor pointer [ cursor pointer
@ -302,7 +292,6 @@ buildCheckbox assets modifierClasses model labelContent =
Round -> Round ->
{ containerStyles = css containerStyles { containerStyles = css containerStyles
, containerClasses = toClassList (modifierClasses ++ [ "RoundClass" ]) , containerClasses = toClassList (modifierClasses ++ [ "RoundClass" ])
, checkboxStyles = css [ cursor pointer ]
, labelStyles = , labelStyles =
css css
[ if model.disabled then [ if model.disabled then
@ -351,9 +340,6 @@ buildCheckbox assets modifierClasses model labelContent =
Disabled -> Disabled ->
{ containerStyles = css containerStyles { containerStyles = css containerStyles
, containerClasses = toClassList (modifierClasses ++ [ "SquareClass", "Opacified" ]) , containerClasses = toClassList (modifierClasses ++ [ "SquareClass", "Opacified" ])
, checkboxStyles =
css
[ cursor pointer ]
, labelStyles = , labelStyles =
css css
[ cursor pointer [ cursor pointer
@ -366,9 +352,6 @@ buildCheckbox assets modifierClasses model labelContent =
Premium -> Premium ->
{ containerStyles = css containerStyles { containerStyles = css containerStyles
, containerClasses = toClassList (modifierClasses ++ [ "SquareClass", "PremiumClass" ]) , containerClasses = toClassList (modifierClasses ++ [ "SquareClass", "PremiumClass" ])
, checkboxStyles =
css
[ cursor pointer ]
, labelStyles = , labelStyles =
css css
[ cursor pointer [ cursor pointer
@ -405,7 +388,6 @@ viewCheckbox :
-> ->
{ containerStyles : Html.Attribute msg { containerStyles : Html.Attribute msg
, containerClasses : Html.Attribute msg , containerClasses : Html.Attribute msg
, checkboxStyles : Html.Attribute msg
, labelStyles : Html.Attribute msg , labelStyles : Html.Attribute msg
, labelClasses : Html.Attribute msg , labelClasses : Html.Attribute msg
, labelContent : Html.Html msg , labelContent : Html.Html msg
@ -429,7 +411,6 @@ viewCheckbox model config =
, Events.onCheck model.setterMsg , Events.onCheck model.setterMsg
, Attributes.id model.identifier , Attributes.id model.identifier
, Attributes.disabled model.disabled , Attributes.disabled model.disabled
, config.checkboxStyles
] ]
, viewLabel model config.labelContent config.labelClasses config.labelStyles , viewLabel model config.labelContent config.labelClasses config.labelStyles
] ]