Remove id attribute from SegmentedControl.V7

This commit is contained in:
Aaron VonderHaar 2019-06-04 14:47:01 -07:00
parent b05eefd421
commit 75b6e8a9ee
2 changed files with 1 additions and 5 deletions

View File

@ -33,7 +33,6 @@ type alias Option a =
{ value : a { value : a
, icon : Maybe Icon , icon : Maybe Icon
, label : String , label : String
, id : String
} }
@ -68,8 +67,7 @@ tabList =
viewTab : Config a msg -> Option a -> Html.Html msg viewTab : Config a msg -> Option a -> Html.Html msg
viewTab config option = viewTab config option =
Html.div Html.div
[ Attr.id option.id [ Role.tab
, Role.tab
, Events.onClick (config.onClick option.value) , Events.onClick (config.onClick option.value)
, css sharedTabStyles , css sharedTabStyles
, css <| , css <|

View File

@ -54,12 +54,10 @@ init =
{ onClick = Select { onClick = Select
, options = , options =
[ { icon = Nothing [ { icon = Nothing
, id = "a"
, label = "Option A" , label = "Option A"
, value = "a" , value = "a"
} }
, { icon = Nothing , { icon = Nothing
, id = "b"
, label = "Option B" , label = "Option B"
, value = "b" , value = "b"
} }