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 7e011d422a
commit 3da66daa8b
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;
}