Skip to content

Commit

Permalink
Implement keyboard navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
haydar-metin committed Dec 12, 2024
1 parent b8529f0 commit c2e0146
Show file tree
Hide file tree
Showing 10 changed files with 416 additions and 73 deletions.
27 changes: 27 additions & 0 deletions src/components/tree/components/treetable.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,42 @@
}

.ant-table.ant-table-css-var {
--ant-table-row-selected-bg: var(--vscode-list-inactiveSelectionBackground);
--ant-table-row-selected-hover-bg: var(
--vscode-list-inactiveSelectionBackground
);
--ant-table-row-hover-bg: var(--vscode-list-hoverBackground);
--ant-table-border-color: var(--vscode-sideBar-background);
--ant-table-cell-font-size: var(--vscode-font-size);
--ant-table-cell-padding-block: 0;
--ant-table-cell-padding-inline: 4px;
}

.ant-table:focus-within {
--ant-table-row-selected-bg: var(--vscode-list-activeSelectionBackground);
--ant-table-row-selected-hover-bg: var(
--vscode-list-activeSelectionBackground
);
}

.ant-table .ant-table-row {
border: 1px solid transparent;
outline: none;
height: 22px;
cursor: pointer;
}

.ant-table:focus-within .ant-table-row.ant-table-row-selected {
border-color: var(
--vscode-list-focusAndSelectionOutline,
var(--vscode-contrastActiveBorder, var(--vscode-list-focusOutline))
);
}

.ant-table .ant-table-row .ant-table-cell {
display: flex;
transition: none;
border-bottom: none;
}

.ant-table .ant-table-row .ant-table-cell .cell-icon {
Expand Down
Loading

0 comments on commit c2e0146

Please sign in to comment.