Skip to content

Commit c1c58ea

Browse files
Copilotsix7
andcommitted
Add selected state to breadcrumb tabs
Co-authored-by: six7 <[email protected]>
1 parent a286322 commit c1c58ea

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/graph-editor/src/css/rc-dock.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
background: transparent;
1717
border-bottom: none;
1818
z-index: 10;
19+
transition: background-color 0.2s, border-bottom 0.2s, font-weight 0.2s; /* Smooth transition for tab states */
1920
}
2021

2122
.dock-tab>div {
@@ -60,6 +61,16 @@
6061
background: var(--color-neutral-canvas-default-bg);
6162
}
6263

64+
.dock-tab-active,
65+
.dock-tab-active:hover {
66+
color: var(--color-neutral-canvas-minimal-fg-default);
67+
background: var(--color-neutral-canvas-subtle-bg);
68+
border-bottom: 2px solid var(--color-accent-stroke-default);
69+
font-weight: var(--fontWeights-sansMedium);
70+
position: relative;
71+
z-index: 1; /* Ensure the active tab is above the ink-bar */
72+
}
73+
6374
.dock-panel.dock-style-main .dock-bar {
6475
border-bottom-color: var(--color-neutral-stroke-subtle);
6576
}

0 commit comments

Comments
 (0)