From c0b2dbc7cdbad965f08d4c2832e61e0e7bfb4c48 Mon Sep 17 00:00:00 2001 From: Tessa Kelly Date: Wed, 27 Mar 2019 16:35:50 -0700 Subject: [PATCH] :skull: kill toggle button config --- src/Nri/Ui/Button/V8.elm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/Nri/Ui/Button/V8.elm b/src/Nri/Ui/Button/V8.elm index 4549a332..9a6d1f2b 100644 --- a/src/Nri/Ui/Button/V8.elm +++ b/src/Nri/Ui/Button/V8.elm @@ -2,7 +2,7 @@ module Nri.Ui.Button.V8 exposing ( ButtonSize(..), ButtonWidth(..), ButtonStyle(..), ButtonState(..) , button , delete - , ToggleButtonConfig, toggleButton + , toggleButton , link, linkSpa , linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking ) @@ -44,7 +44,7 @@ may be exceptions, for example if button content is supplied by an end-user. @docs button @docs delete -@docs ToggleButtonConfig, toggleButton +@docs toggleButton ## `` Buttons @@ -249,18 +249,15 @@ delete assets config = -- TOGGLE BUTTON -{-| Buttons can be toggled into a pressed state and back again. +{-| A button that can be toggled into a pressed state and back again. -} -type alias ToggleButtonConfig msg = +toggleButton : { label : String , onSelect : msg , onDeselect : msg , pressed : Bool } - - -{-| -} -toggleButton : ToggleButtonConfig msg -> Html msg + -> Html msg toggleButton config = let toggledStyles =