Skip to content

Commit

Permalink
Backport PR #15860: Show outline on the full item in file browser, on…
Browse files Browse the repository at this point in the history
…ly when needed (#15984)

Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
  • Loading branch information
meeseeksmachine and krassowski committed Mar 13, 2024
1 parent 67ae98c commit 32eb7f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions packages/filebrowser/style/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -276,17 +276,23 @@
user-select: none;
}

.jp-DirListing-itemText:focus {
.jp-DirListing-item:has(.jp-DirListing-itemText:focus-visible) {
/* Targeting `.jp-DirListing-itemText` specifically to avoid an extra outline
when it gets replaced with `jp-DirListing-editor` when editing the file name */
outline-width: 2px;
outline-color: var(--jp-inverse-layout-color1);
outline-style: solid;
outline-offset: 1px;
outline-offset: -4px;
}

.jp-DirListing-item.jp-mod-selected .jp-DirListing-itemText:focus {
.jp-DirListing-item.jp-mod-selected:focus-within {
outline-color: var(--jp-layout-color1);
}

.jp-DirListing-item > .jp-DirListing-itemText:focus {
outline: 0;
}

.jp-DirListing-itemModified {
flex: 0 0 125px;
text-align: right;
Expand Down

0 comments on commit 32eb7f9

Please sign in to comment.