Skip to content

Commit 9b5c0a6

Browse files
ui(docs): add accent-a11 line indicator for selected nested sections (#4625)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Kapil Gowru <[email protected]>
1 parent 2719cdc commit 9b5c0a6

File tree

1 file changed

+17
-0
lines changed
  • packages/fern-docs/components/src/sidebar

1 file changed

+17
-0
lines changed

packages/fern-docs/components/src/sidebar/index.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,23 @@
4949

5050
&.nested {
5151
@apply data-[state=active]:max-lg:border-(color:--accent-a6) data-[state=active]:max-lg:-ml-px data-[state=active]:max-lg:border-l lg:py-1.5;
52+
53+
position: relative;
54+
}
55+
56+
/* Desktop-only accent line overlay for active nested items */
57+
@media (width >= 1024px) {
58+
&.nested[data-state="active"]::before {
59+
content: "";
60+
position: absolute;
61+
top: 6px;
62+
bottom: 6px;
63+
left: -5px;
64+
width: 1px;
65+
background: var(--accent-a11);
66+
pointer-events: none;
67+
z-index: 1;
68+
}
5269
}
5370

5471
.expand-indicator {

0 commit comments

Comments
 (0)