@devries-cameron20 / composio Mirror · read-only / commits / 95e2d37fe
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 12:00 UTC

refactor: Simplify CSS with :is() and add anchor tag support

- Combined span/button/a selectors using :is() for maintainability - Added documentation comments explaining the CSS - Covers all type element variations: span, button, anchor Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Sushmithamallesh committed Jan 30, 2026 at 11:54 UTC 95e2d37fe716c1cf8a53e2d098d856b83f262867
1 file changed +12 -22
docs/app/global.css
+12 -22
@@ -463,6 +463,14 @@ nav a[href*="app.composio"]:focus-visible {
463
464 /* ==========================================================================
465 OpenAPI Reference - Field Indicators
466 +
467 + Replaces fumadocs-openapi's default ? and * indicators with explicit
468 + (optional) and (required) labels after the type.
469 +
470 + Targets: span (simple types), button (expandable objects/arrays), a (links)
471 +
472 + Note: This depends on fumadocs-openapi's internal class structure.
473 + If the library updates its classes, this CSS may need adjustment.
474 ========================================================================== */
475
476 /* Hide original indicators (* and ?) after property name */
@@ -471,8 +479,8 @@ span.font-mono.text-fd-primary > span.text-fd-muted-foreground:last-child {
479 display: none;
480 }
481
474 -/* Add (required) after type for required fields - simple types (span) */
475 -div.flex.items-center:has(> span.font-mono.text-fd-primary > span.text-red-400) > span.text-sm.font-mono::after {
482 +/* Add (required) after type for required fields */
483 +div.flex.items-center:has(> span.font-mono.text-fd-primary > span.text-red-400) > :is(span, button, a).text-sm.font-mono::after {
484 content: "(required)";
485 font-size: 0.75rem;
486 font-weight: 400;
@@ -480,26 +488,8 @@ div.flex.items-center:has(> span.font-mono.text-fd-primary > span.text-red-400)
488 color: #f87171;
489 }
490
483 -/* Add (required) after type for required fields - complex types (button) */
484 -div.flex.items-center:has(> span.font-mono.text-fd-primary > span.text-red-400) > button.text-sm.font-mono::after {
485 - content: "(required)";
486 - font-size: 0.75rem;
487 - font-weight: 400;
488 - margin-left: 0.25rem;
489 - color: #f87171;
490 -}
491 -
492 -/* Add (optional) after type for optional fields - simple types (span) */
493 -div.flex.items-center:has(> span.font-mono.text-fd-primary > span.text-fd-muted-foreground:last-child):not(:has(> span.font-mono.text-fd-primary > span.text-red-400)) > span.text-sm.font-mono::after {
494 - content: "(optional)";
495 - font-size: 0.75rem;
496 - font-weight: 400;
497 - margin-left: 0.25rem;
498 - color: var(--color-fd-muted-foreground);
499 -}
500 -
501 -/* Add (optional) after type for optional fields - complex types (button) */
502 -div.flex.items-center:has(> span.font-mono.text-fd-primary > span.text-fd-muted-foreground:last-child):not(:has(> span.font-mono.text-fd-primary > span.text-red-400)) > button.text-sm.font-mono::after {
491 +/* Add (optional) after type for optional fields */
492 +div.flex.items-center:has(> span.font-mono.text-fd-primary > span.text-fd-muted-foreground:last-child):not(:has(> span.font-mono.text-fd-primary > span.text-red-400)) > :is(span, button, a).text-sm.font-mono::after {
493 content: "(optional)";
494 font-size: 0.75rem;
495 font-weight: 400;