Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix(docs): use box-shadow for nav active indicator
Replace complex ::after pseudo-element with simpler inset box-shadow for the active nav underline. More reliable across different layouts. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sushmithamallesh committed
Jan 19, 2026 at 01:55 UTC
d678e2db1d0077d416b63fbcb7b1f74d97c4303a
1 file changed
+2
-18
docs/app/global.css
+2
-18
@@ -387,32 +387,16 @@ textarea:focus-visible {
387
outline-offset: 2px;
388
}
389
390
-/* Active nav link - orange color on all screens */
390
+/* Active nav link - orange color and underline */
391
#nd-nav nav > a[data-active="true"] {
392
color: var(--composio-orange);
393
+ box-shadow: inset 0 -2px 0 var(--composio-orange);
394
}
395
396
#nd-nav nav > a[data-active="true"]:hover {
397
background: transparent;
398
}
399
399
-/* Active nav indicator - only on desktop where nav is horizontal */
400
-@media (min-width: 768px) {
401
- #nd-nav nav > a[data-active="true"] {
402
- position: relative;
403
- }
404
-
405
- #nd-nav nav > a[data-active="true"]::after {
406
- content: '';
407
- position: absolute;
408
- bottom: -0.5rem; /* Extend down to overlap navbar border */
409
- left: 0;
410
- right: 0;
411
- height: 2px;
412
- background: var(--composio-orange);
413
- }
414
-}
415
-
400
/* Right side items - consistent gaps */
401
#nd-nav > div:last-child {
402
gap: 0.5rem;