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
|
{ 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 <|
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user