From c20caf49807c8b3df226673f978ed5fa2d1f069b Mon Sep 17 00:00:00 2001 From: Tessa Kelly Date: Fri, 15 Jun 2018 11:36:41 -0700 Subject: [PATCH] Reorder for clarity --- src/Nri/Ui/Checkbox/V3.elm | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/Nri/Ui/Checkbox/V3.elm b/src/Nri/Ui/Checkbox/V3.elm index bd63e785..cc86d4eb 100644 --- a/src/Nri/Ui/Checkbox/V3.elm +++ b/src/Nri/Ui/Checkbox/V3.elm @@ -469,18 +469,6 @@ type CssClasses | PremiumClass -type CheckboxImage - = CheckboxUnchecked - | CheckboxChecked - | CheckboxCheckedPartially - | PremiumUnlocked - | PremiumFlag - | CheckWhite - | PremiumLocked - | PremiumKey - | CheckboxLockOnInside - - {-| -} type Theme = Square ColorTheme @@ -588,6 +576,15 @@ styles = |> Nri.Ui.Styles.V1.stylesWithAssets "checkbox-" + +-- ICONS used instead of default browser implementations + + +backgroundImage : Assets r -> CheckboxImage -> Css.Style +backgroundImage assets checkboxImage = + property "background-image" (Nri.Ui.AssetPath.Css.url <| checkboxAssetPath assets checkboxImage) + + {-| The assets used in this module. -} type alias Assets r = @@ -604,9 +601,16 @@ type alias Assets r = } -backgroundImage : Assets r -> CheckboxImage -> Css.Style -backgroundImage assets checkboxImage = - property "background-image" (Nri.Ui.AssetPath.Css.url <| checkboxAssetPath assets checkboxImage) +type CheckboxImage + = CheckboxUnchecked + | CheckboxChecked + | CheckboxCheckedPartially + | PremiumUnlocked + | PremiumFlag + | CheckWhite + | PremiumLocked + | PremiumKey + | CheckboxLockOnInside checkboxAssetPath : Assets r -> CheckboxImage -> Asset