mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-30 14:48:09 +03:00
Remove grid/row/gridcell
This commit is contained in:
parent
4d1339b6bc
commit
ee3ff3d90d
@ -453,14 +453,11 @@ static { id, highlightables } =
|
||||
|
||||
container : String -> List (Html msg) -> Html msg
|
||||
container id_ content =
|
||||
Html.div
|
||||
p
|
||||
[ Html.Styled.Attributes.id id_
|
||||
, class "highlighter-container"
|
||||
, Role.grid
|
||||
, Aria.label "highlightable paragraph"
|
||||
, Aria.multiSelectable True
|
||||
]
|
||||
[ div [ Role.row ] content ]
|
||||
content
|
||||
|
||||
|
||||
viewHighlightable : Model marker -> ( Grouping.Position, Highlightable marker ) -> Html (Msg marker)
|
||||
@ -529,8 +526,7 @@ viewMaybeMarker isInteractive eventListeners maybeTool ( groupPos, highlightable
|
||||
Nothing ->
|
||||
( span, False )
|
||||
in
|
||||
span [ Role.gridCell, Aria.selected selected ]
|
||||
[ spanOrMark
|
||||
spanOrMark
|
||||
(eventListeners
|
||||
++ customToHtmlAttributes highlightable.customAttributes
|
||||
++ whitespaceClass highlightable.text
|
||||
@ -546,7 +542,6 @@ viewMaybeMarker isInteractive eventListeners maybeTool ( groupPos, highlightable
|
||||
]
|
||||
)
|
||||
[ Html.text highlightable.text ]
|
||||
]
|
||||
|
||||
|
||||
highlightableStyle : Maybe (Tool.Tool kind) -> Highlightable kind -> Bool -> Grouping.Position -> List Css.Style
|
||||
|
Loading…
Reference in New Issue
Block a user