mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-29 16:44:41 +03:00
Remove id attribute from SegmentedControl.V7
This commit is contained in:
parent
b05eefd421
commit
75b6e8a9ee
@ -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 <|
|
||||
|
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user