Skip to content

Commit

Permalink
feat: indicate focused tab with css style
Browse files Browse the repository at this point in the history
  • Loading branch information
mathuo committed Jan 1, 2024
1 parent 343d42c commit ff6d40a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/dockview-core/src/dockview/components/tab/defaultTab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@
.tab {
flex-shrink: 0;

&:focus-within,
&:focus {
position: relative;

&::after {
position: absolute;
content: '';
height: 100%;
width: 100%;
top: 0px;
left: 0px;
pointer-events: none;
outline: 1px solid var(--dv-tab-divider-color) !important;
outline-offset: -1px;
z-index: 5;
}
}

&.dv-tab-dragging {
.tab-action {
background-color: var(--dv-activegroup-visiblepanel-tab-color);
Expand Down

0 comments on commit ff6d40a

Please sign in to comment.