Accessibility - use CSS instead of empty list item for spacing in the filetree GitOrigin-RevId: 2ee330dc867c223394afa9ccce1017a79c7112c1
@@ -77,9 +77,7 @@ function FileTreeRootFolder() {
dropRef={dropRef}
isOver={isOver}
dataTestId="file-tree-list-root"
- >
- <li className="bottom-buffer" />
- </FileTreeFolderList>
+ />
</>
)
}
@@ -30,8 +30,6 @@ export default function HistoryFileTree() {
folders={mappedFileTree.folders}
docs={mappedFileTree.docs ?? []}
rootClassName="history-file-tree-list"
- </HistoryFileTreeFolderList>
@@ -96,7 +96,9 @@
margin-left: 22px;
- li.bottom-buffer {
+ &::after {
+ content: '';
+ display: block;
min-height: @line-height-computed;
@@ -432,7 +432,9 @@ history-root {