Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
improvement(frontend): lower bulk action bar and add shadow (#8059)
claude[bot]b39cf9fdeeec
diff --git a/DESIGN.md b/DESIGN.mdindex 1f6b58ddda..beb272ed7d 100644--- a/DESIGN.md+++ b/DESIGN.md@@ -278,16 +278,17 @@ host component; don't override unless necessary.## 6. Depth & ElevationDepth is conveyed by layered surface tones and borders. Shadows are reserved-for elements that float (Popover, DropdownMenu, Sheet).--| Layer | Surface | Border |-| --------------- | ---------------------------------------- | ----------------------------- |-| Page | `bg-page` | — |-| Card | `bg-card` | `border-border` |-| Popover / Sheet | `bg-popover` | `border-border` + `shadow-lg` |-| Row hover | `bg-container-hover` | — |-| Focus | — | 3px ring, `--color-ring` |-| Disabled | `opacity-50 / 75`, `pointer-events-none` | — |+for elements that float (Popover, DropdownMenu, Sheet, SelectedActionBar).++| Layer | Surface | Border |+| --------------- | ---------------------------------------- | ----------------------------------- |+| Page | `bg-page` | — |+| Card | `bg-card` | `border-border` |+| Popover / Sheet | `bg-popover` | `border-border` + `shadow-lg` |+| Floating bar | `bg-popover` | `border-border` + `shadow-floating` |+| Row hover | `bg-container-hover` | — |+| Focus | — | 3px ring, `--color-ring` |+| Disabled | `opacity-50 / 75`, `pointer-events-none` | — |Never add a box-shadow to a Card, Table row, standalone Badge, or `ButtonBadge`;it breaks the border-defined system. An overlapping `ButtonBadge` uses its@@ -309,7 +310,7 @@ legible across the control edge.- **DON'T** use v2 components when a v3 equivalent exists unless the existing scope is v2.- **DON'T** add box-shadows as a depth cue — borders and surface tones dothat work. The exception is elements that genuinely float (Popover,- DropdownMenu, Sheet), which already include it.+ DropdownMenu, Sheet, SelectedActionBar), which already include it.- **DON'T** invent new colors. If it isn't in `index.css` `@theme`, itdoesn't belong.- **DON'T** use `project` yellow, `org` blue, or `sub-org` green as genericdiff --git a/frontend/src/components/v3/generic/SelectedActionBar/SelectedActionBar.tsx b/frontend/src/components/v3/generic/SelectedActionBar/SelectedActionBar.tsxindex 3f6bdf14bc..35722008b4 100644--- a/frontend/src/components/v3/generic/SelectedActionBar/SelectedActionBar.tsx+++ b/frontend/src/components/v3/generic/SelectedActionBar/SelectedActionBar.tsx@@ -73,7 +73,7 @@ function SelectedActionBar({<divdata-slot="selected-action-bar-positioner"className={cn(- "pointer-events-none fixed inset-x-4 bottom-16 z-40 flex justify-center",+ "pointer-events-none fixed inset-x-4 bottom-8 z-40 flex justify-center","transition-[opacity,translate,filter,scale] ease-out motion-reduce:transition-none",isVisible? "translate-y-0 scale-100 opacity-100 blur-none duration-200"@@ -91,7 +91,7 @@ function SelectedActionBar({data-slot="selected-action-bar"data-state={isVisible ? "open" : "closed"}className={cn(- "pointer-events-auto flex max-h-[calc(100vh-2rem)] w-full max-w-xl flex-wrap items-center gap-2 overflow-y-auto rounded-md border border-border bg-popover p-2 pl-4 text-foreground shadow-lg",+ "pointer-events-auto flex max-h-[calc(100vh-2rem)] w-full max-w-xl flex-wrap items-center gap-2 overflow-y-auto rounded-md border border-border bg-popover p-2 pl-4 text-foreground shadow-floating",className)}>diff --git a/frontend/src/index.css b/frontend/src/index.cssindex f22fcd068b..fd3703351b 100644--- a/frontend/src/index.css+++ b/frontend/src/index.css@@ -111,6 +111,9 @@--color-container: #1a1c1e;--color-container-hover: #1f2123;+ /* Elevation */+ --shadow-floating: 0 8px 32px rgb(0 0 0 / 0.6);+/* Sidebar */--color-sidebar: #19191c;--color-sidebar-foreground: #ebebeb;