Remove grid/row/gridcell

This commit is contained in:
Tessa Kelly 2022-09-07 13:59:27 -06:00
parent 4d1339b6bc
commit ee3ff3d90d

View File

@ -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