Merge pull request #14792 from overleaf/rd-report-remove-li-element

Accessibility - use CSS instead of empty list item for spacing in the filetree

GitOrigin-RevId: 2ee330dc867c223394afa9ccce1017a79c7112c1
This commit is contained in:
Rebeka Dekany 2023-09-15 09:13:11 +02:00 committed by Copybot
parent 40035985c7
commit bd7f6bf6d4
4 changed files with 8 additions and 8 deletions

View file

@ -77,9 +77,7 @@ function FileTreeRootFolder() {
dropRef={dropRef}
isOver={isOver}
dataTestId="file-tree-list-root"
>
<li className="bottom-buffer" />
</FileTreeFolderList>
/>
</>
)
}

View file

@ -30,8 +30,6 @@ export default function HistoryFileTree() {
folders={mappedFileTree.folders}
docs={mappedFileTree.docs ?? []}
rootClassName="history-file-tree-list"
>
<li className="bottom-buffer" />
</HistoryFileTreeFolderList>
/>
)
}

View file

@ -96,7 +96,9 @@
margin-left: 22px;
}
li.bottom-buffer {
&::after {
content: '';
display: block;
min-height: @line-height-computed;
}

View file

@ -432,7 +432,9 @@ history-root {
margin-left: 22px;
}
li.bottom-buffer {
&::after {
content: '';
display: block;
min-height: @line-height-computed;
}