π¬ A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots π
TypeScript browser-extensionchrome-extensiondocumentationfirefox-extensionguide-generatorlocal-firstmanifest-v3privacy-firstproductivityreactscreenshotstep-by-step-guidetutorialtypescriptworkflowwxt
fix(ui): draw outline buttons and dialog frames with the border token
Luis Ortiz57041a0e0743
diff --git a/src/ui/components/ui/button.tsx b/src/ui/components/ui/button.tsxindex f63f410..efa52ec 100644--- a/src/ui/components/ui/button.tsx+++ b/src/ui/components/ui/button.tsx@@ -13,7 +13,7 @@ const buttonVariants = cva(destructive:'bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40',outline:- 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50',+ 'border border-border bg-background shadow-xs hover:bg-secondary dark:border-input dark:bg-input/30 dark:hover:bg-input/50',secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',link: 'text-primary underline-offset-4 hover:underline',diff --git a/src/ui/components/ui/dialog.tsx b/src/ui/components/ui/dialog.tsxindex 7fe233c..0ee2922 100644--- a/src/ui/components/ui/dialog.tsx+++ b/src/ui/components/ui/dialog.tsx@@ -3,7 +3,6 @@ import { Dialog as DialogPrimitive } from 'radix-ui';import type * as React from 'react';import { cn } from '@/lib/utils';-import { Button } from '@/ui/components/ui/button';function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {return <DialogPrimitive.Root data-slot="dialog" {...props} />;@@ -48,7 +47,7 @@ function DialogContent({<DialogPrimitive.Contentdata-slot="dialog-content"className={cn(- 'fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg',+ 'fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg',className,)}{...props}@@ -78,27 +77,13 @@ function DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {);}-function DialogFooter({- className,- showCloseButton = false,- children,- ...props-}: React.ComponentProps<'div'> & {- showCloseButton?: boolean;-}) {+function DialogFooter({ className, ...props }: React.ComponentProps<'div'>) {return (<divdata-slot="dialog-footer"className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)}{...props}- >- {children}- {showCloseButton && (- <DialogPrimitive.Close asChild>- <Button variant="outline">Close</Button>- </DialogPrimitive.Close>- )}- </div>+ />);}