💀 submit button

This commit is contained in:
Brooke 2018-08-17 15:44:50 -07:00 committed by Michael Glass
parent 0c7e1618d2
commit 39841b9016
No known key found for this signature in database
GPG Key ID: 0A1A7A8792A6A129

View File

@ -17,7 +17,6 @@ module Nri.Ui.Button.V3
, linkSpa
, linkWithMethod
, linkWithTracking
, submit
, toggleButton
)
@ -30,6 +29,7 @@ module Nri.Ui.Button.V3
- Removes buttonDeprecated
- Removes Tiny size
- Removes one-off Active hack
- Removes "submit" button - we just used that for forms that were partially in Elm
# About:
@ -58,11 +58,6 @@ There will generally be a `*Button` and `*Link` version of each button style.
@docs LinkConfig, link, linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
## `<input>` Buttons
@docs submit
-}
-- import EventExtras
@ -352,7 +347,6 @@ toggleButton config =
[ onClick config.onDeselect
, Widget.pressed <| Just True
-- , styles.class [ Button, Toggled, SizeStyle Medium ] -- TODO
-- reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_button_role#Labeling_buttons
, Role.button
@ -386,24 +380,6 @@ type alias InputConfig =
}
{-| A submit input that overrides the form's method to PUT
TODO: Should this exist?
-}
submit : InputConfig -> Html c
submit config =
Nri.Ui.styled Html.button
"Nri-Ui-Button-V3-submit"
(buttonStyles config.size Nothing (styleToColorPalette config.style))
[ name config.name
, type_ "submit"
, value config.value
]
[ Html.map never config.content
]
-- LINKS THAT LOOK LIKE BUTTONS