Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
.dv-tab {
flex-shrink: 0;

&:focus-within,
&:focus {
// Keyboard-only focus ring: :focus-visible suppresses it on mouse click,
// :has(:focus-visible) keeps it when a child (e.g. the close button) is
// keyboard-focused — the descendant case the old :focus-within covered.
&:focus-visible,
&:has(:focus-visible) {
position: relative;

&::after {
Expand Down
8 changes: 4 additions & 4 deletions packages/dockview-core/src/paneview/paneview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
cursor: pointer;
}

&:focus,
&:focus-within {
&:focus-visible,
&:has(:focus-visible) {
&:before {
position: absolute;
top: 0;
Expand All @@ -94,8 +94,8 @@
position: relative;
outline: none;

&:focus,
&:focus-within {
&:focus-visible,
&:has(:focus-visible) {
&:before {
position: absolute;
top: 0;
Expand Down
Loading