From 78eb234ab2d80da9230b7dec19319aebe937d919 Mon Sep 17 00:00:00 2001 From: Tessa Kelly Date: Fri, 15 Jun 2018 11:58:35 -0700 Subject: [PATCH] This checkbox is super specific. simplify the api --- src/Nri/Ui/Checkbox/V3.elm | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/src/Nri/Ui/Checkbox/V3.elm b/src/Nri/Ui/Checkbox/V3.elm index 801f0fa0..609cae4c 100644 --- a/src/Nri/Ui/Checkbox/V3.elm +++ b/src/Nri/Ui/Checkbox/V3.elm @@ -5,7 +5,6 @@ module Nri.Ui.Checkbox.V3 , Model , PremiumConfig , Theme(..) - , disabled , premium , styles , view @@ -16,7 +15,7 @@ module Nri.Ui.Checkbox.V3 @docs Model, Theme, ColorTheme -@docs view, viewWithLabel, disabled +@docs view, viewWithLabel ## Premium @@ -106,30 +105,6 @@ viewWithLabel assets model = Html.span [] [ Html.text model.label ] -{-| Show a disabled checkbox. --} -disabled : String -> String -> RootHtml.Html msg -disabled identifier labelText = - span - [ styles.class [ Container, SquareClass, Opacified ] - , RootAttributes.id <| identifier ++ "-container" - ] - [ checkbox identifier - (Just False) - [ Accessibility.Widget.label labelText - , styles.class [ Checkbox ] - , RootAttributes.id identifier - , RootAttributes.disabled True - ] - , label - [ RootAttributes.for identifier - , styles.class [ Label, Indeterminate ] - ] - [ RootHtml.text labelText - ] - ] - - {-| - `onChange`: A message for when the user toggles the checkbox