Compare commits

...
Author SHA1 Message Date
Julius Marminge 968db3cb59 Raise toast stacking above core UI
- Bump toast viewport and positioner z-index to 100
- Keep toasts above the reverted core UI palette
2026-04-12 00:01:00 -07:00
Julius Marminge f63c38ebbf Revert core UI palette layering tweaks
- Restore command palette backdrop handling
- Lower toast stacking to avoid overlay conflicts
- Simplify command input wrapper handling
2026-04-11 23:59:52 -07:00
2 changed files with 33 additions and 27 deletions

No files matched your search

+23 -19
View File
@@ -379,6 +379,7 @@ function OpenCommandPaletteDialog() {
return (
<CommandDialogPopup
aria-label="Command palette"
backdropClassName="bg-background/60 backdrop-blur-none"
className="overflow-hidden p-0"
data-testid="command-palette"
finalFocus={() => {
@@ -394,29 +395,32 @@ function OpenCommandPaletteDialog() {
onValueChange={handleQueryChange}
value={query}
>
<CommandInput
placeholder={inputPlaceholder}
wrapperClassName={
<div
className={
isSubmenu
? "[&_[data-slot=autocomplete-start-addon]]:pointer-events-auto [&_[data-slot=autocomplete-start-addon]]:cursor-pointer"
: undefined
}
{...(isSubmenu
? {
startAddon: (
<button
type="button"
className="flex cursor-pointer items-center"
aria-label="Back"
onClick={popView}
>
<ArrowLeftIcon />
</button>
),
}
: {})}
onKeyDown={handleKeyDown}
/>
>
<CommandInput
placeholder={inputPlaceholder}
{...(isSubmenu
? {
startAddon: (
<button
type="button"
className="flex cursor-pointer items-center"
aria-label="Back"
onClick={popView}
>
<ArrowLeftIcon />
</button>
),
}
: {})}
onKeyDown={handleKeyDown}
/>
</div>
<CommandPanel className="max-h-[min(28rem,70vh)]">
<CommandPaletteResults
groups={displayedGroups}
+10 -8
View File
@@ -30,7 +30,7 @@ function CommandDialogBackdrop({ className, ...props }: CommandDialogPrimitive.B
return (
<CommandDialogPrimitive.Backdrop
className={cn(
"fixed inset-0 z-50 bg-background/60 transition-all duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0",
"fixed inset-0 z-50 bg-black/32 backdrop-blur-sm transition-all duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0",
className,
)}
data-slot="command-dialog-backdrop"
@@ -52,10 +52,15 @@ function CommandDialogViewport({ className, ...props }: CommandDialogPrimitive.V
);
}
function CommandDialogPopup({ className, children, ...props }: CommandDialogPrimitive.Popup.Props) {
function CommandDialogPopup({
className,
children,
backdropClassName,
...props
}: CommandDialogPrimitive.Popup.Props & { backdropClassName?: string }) {
return (
<CommandDialogPortal>
<CommandDialogBackdrop />
<CommandDialogBackdrop className={backdropClassName} />
<CommandDialogViewport>
<CommandDialogPrimitive.Popup
className={cn(
@@ -90,14 +95,11 @@ function Command({
function CommandInput({
className,
wrapperClassName,
placeholder = undefined,
...props
}: React.ComponentProps<typeof AutocompleteInput> & {
wrapperClassName?: string | undefined;
}) {
}: React.ComponentProps<typeof AutocompleteInput>) {
return (
<div className={cn("px-2.5 py-1.5", wrapperClassName)}>
<div className="px-2.5 py-1.5">
<AutocompleteInput
autoFocus
className={cn(