mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-28 18:24:04 +03:00
🎨 remove reidrection -- if we want to use the indeterminate styles let's do that
This commit is contained in:
parent
23abc65573
commit
8739188cd9
@ -123,7 +123,7 @@ disabled identifier labelText =
|
||||
]
|
||||
, label
|
||||
[ RootAttributes.for identifier
|
||||
, getLabelClass NotSelected
|
||||
, styles.class [ Label, Indeterminate ]
|
||||
]
|
||||
[ RootHtml.text labelText
|
||||
]
|
||||
@ -465,22 +465,6 @@ viewLabel model content class theme =
|
||||
[ content ]
|
||||
|
||||
|
||||
getLabelClass : IsSelected -> RootHtml.Attribute msg
|
||||
getLabelClass maybeChecked =
|
||||
styles.class
|
||||
[ Label
|
||||
, case maybeChecked of
|
||||
Selected ->
|
||||
Checked
|
||||
|
||||
NotSelected ->
|
||||
Unchecked
|
||||
|
||||
PartiallySelected ->
|
||||
Indeterminate
|
||||
]
|
||||
|
||||
|
||||
indeterminateAttr : RootHtml.Attribute msg
|
||||
indeterminateAttr =
|
||||
RootAttributes.property "indeterminate" (Json.Encode.bool True)
|
||||
|
Loading…
Reference in New Issue
Block a user