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

View File

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