Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

refactor(ui): drop redundant Button variant="default" props (#50161)

Danny White476d4a585173
diff --git a/apps/design-system/components/component-preview.tsx b/apps/design-system/components/component-preview.tsx
index 04a5fc30ee1..4e4913d29bc 100644
--- a/apps/design-system/components/component-preview.tsx
+++ b/apps/design-system/components/component-preview.tsx
@@ -125,7 +125,6 @@ export function ComponentPreview({
<Button
className="rounded-full"
onClick={() => setExpandState(!expand)}
- variant="default"
icon={<Expand className="text-foreground-lighter" />}
>
{expand ? 'Collapse code' : 'Expand code'}
diff --git a/apps/design-system/registry/default/example/admonition-button-split.tsx b/apps/design-system/registry/default/example/admonition-button-split.tsx
index 0300ac430f7..3083ae3f8d3 100644
--- a/apps/design-system/registry/default/example/admonition-button-split.tsx
+++ b/apps/design-system/registry/default/example/admonition-button-split.tsx
@@ -19,7 +19,6 @@ export default function AdmonitionButtonSplitDemo() {
<div className="flex w-full @lg:w-auto">
<Button
type="button"
- variant="default"
className="flex-1 rounded-r-none px-3 @lg:flex-none hover:z-10 focus-visible:z-10 focus-visible:rounded-r-sm"
>
Set up SMTP
@@ -28,7 +27,6 @@ export default function AdmonitionButtonSplitDemo() {
<DropdownMenuTrigger asChild>
<Button
type="button"
- variant="default"
aria-label="More email template editing options"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
icon={<ChevronDown />}
diff --git a/apps/design-system/registry/default/example/admonition-button.tsx b/apps/design-system/registry/default/example/admonition-button.tsx
index 0eab627e767..6f25a294db5 100644
--- a/apps/design-system/registry/default/example/admonition-button.tsx
+++ b/apps/design-system/registry/default/example/admonition-button.tsx
@@ -10,7 +10,7 @@ export default function AdmonitionDemo() {
title="Set up custom SMTP"
description="You’re using the built-in email service. This service has rate limits and is not meant to be
used for production apps."
- actions={<Button variant="default">Set up SMTP</Button>}
+ actions={<Button>Set up SMTP</Button>}
/>
<Admonition
type="destructive"
diff --git a/apps/design-system/registry/default/example/admonition-demo.tsx b/apps/design-system/registry/default/example/admonition-demo.tsx
index 3b40709ad6c..1398d7eef2a 100644
--- a/apps/design-system/registry/default/example/admonition-demo.tsx
+++ b/apps/design-system/registry/default/example/admonition-demo.tsx
@@ -9,7 +9,7 @@ export default function AdmonitionDemo() {
title="OAuth Server is disabled"
description="Enable OAuth Server to make your project act as an identity provider for
third-party applications."
- actions={<Button variant="default">OAuth Server Settings</Button>}
+ actions={<Button>OAuth Server Settings</Button>}
/>
)
}
diff --git a/apps/design-system/registry/default/example/admonition-responsive.tsx b/apps/design-system/registry/default/example/admonition-responsive.tsx
index 32d796acdb9..2e488553f54 100644
--- a/apps/design-system/registry/default/example/admonition-responsive.tsx
+++ b/apps/design-system/registry/default/example/admonition-responsive.tsx
@@ -8,7 +8,7 @@ export default function AdmonitionDemo() {
layout="responsive"
title="Disk management has moved"
description="Disk management is now handled alongside Project Compute on the Compute and Disk page."
- actions={<Button variant="default">Go to Compute and Disk</Button>}
+ actions={<Button>Go to Compute and Disk</Button>}
/>
)
}
diff --git a/apps/design-system/registry/default/example/button-split-dropdown.tsx b/apps/design-system/registry/default/example/button-split-dropdown.tsx
index 54a1c621c72..3bb12f03265 100644
--- a/apps/design-system/registry/default/example/button-split-dropdown.tsx
+++ b/apps/design-system/registry/default/example/button-split-dropdown.tsx
@@ -13,7 +13,6 @@ export default function ButtonSplitDropdownDemo() {
<div className="flex w-fit">
<Button
type="button"
- variant="default"
className="rounded-r-none hover:z-10 focus-visible:z-10 focus-visible:rounded-r-sm"
>
Primary action
@@ -22,7 +21,6 @@ export default function ButtonSplitDropdownDemo() {
<DropdownMenuTrigger asChild>
<Button
type="button"
- variant="default"
aria-label="More actions"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
icon={<ChevronDown />}
diff --git a/apps/design-system/registry/default/example/calendar-form.tsx b/apps/design-system/registry/default/example/calendar-form.tsx
index a4f5d66bf2d..2c8e37c9d38 100644
--- a/apps/design-system/registry/default/example/calendar-form.tsx
+++ b/apps/design-system/registry/default/example/calendar-form.tsx
@@ -57,7 +57,6 @@ export default function CalendarForm() {
<PopoverTrigger asChild>
<FormControl>
<Button
- variant="default"
size="small"
className={cn(
'w-[240px] justify-start',
diff --git a/apps/design-system/registry/default/example/combobox-popover.tsx b/apps/design-system/registry/default/example/combobox-popover.tsx
index 3ddb32386cc..fde35b836c8 100644
--- a/apps/design-system/registry/default/example/combobox-popover.tsx
+++ b/apps/design-system/registry/default/example/combobox-popover.tsx
@@ -69,7 +69,6 @@ export default function ComboboxPopover() {
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button
- variant="default"
size="small"
className="w-[150px] justify-start rounded-full"
icon={
diff --git a/apps/design-system/registry/default/example/combobox-responsive.tsx b/apps/design-system/registry/default/example/combobox-responsive.tsx
index 9d48ceb272d..3a4cbe3f957 100644
--- a/apps/design-system/registry/default/example/combobox-responsive.tsx
+++ b/apps/design-system/registry/default/example/combobox-responsive.tsx
@@ -58,7 +58,6 @@ export default function ComboBoxResponsive() {
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button
- variant="default"
size="small"
className="w-[150px] justify-start"
icon={!selectedStatus && <Plus className="text-foreground-muted" />}
diff --git a/apps/design-system/registry/default/example/confirmation-modal-demo.tsx b/apps/design-system/registry/default/example/confirmation-modal-demo.tsx
index 140ef286421..a5cddea2ffd 100644
--- a/apps/design-system/registry/default/example/confirmation-modal-demo.tsx
+++ b/apps/design-system/registry/default/example/confirmation-modal-demo.tsx
@@ -24,9 +24,7 @@ export default function ConfirmationModalDemo() {
return (
<>
- <Button variant="default" onClick={() => setVisible(!visible)}>
- Show Confirmation Modal
- </Button>
+ <Button onClick={() => setVisible(!visible)}>Show Confirmation Modal</Button>
<ConfirmationModal
visible={visible}
size="small"
diff --git a/apps/design-system/registry/default/example/connect-interstitial-shared.tsx b/apps/design-system/registry/default/example/connect-interstitial-shared.tsx
index 49c53778e80..c24bdb6c343 100644
--- a/apps/design-system/registry/default/example/connect-interstitial-shared.tsx
+++ b/apps/design-system/registry/default/example/connect-interstitial-shared.tsx
@@ -133,5 +133,5 @@ export function InterstitialActionError({ error }: { error?: React.ReactNode })
}
export function SignOutButton() {
- return <Button variant="default" icon={<LogOut />} className="px-2" aria-label="Sign out" />
+ return <Button icon={<LogOut />} className="px-2" aria-label="Sign out" />
}
diff --git a/apps/design-system/registry/default/example/copy-confirmations.tsx b/apps/design-system/registry/default/example/copy-confirmations.tsx
index d99d184b00c..3fcc91c9490 100644
--- a/apps/design-system/registry/default/example/copy-confirmations.tsx
+++ b/apps/design-system/registry/default/example/copy-confirmations.tsx
@@ -18,9 +18,7 @@ export default function CopyConfirmations() {
</div>
</div>
<div className="flex gap-2 justify-end">
- <Button variant="default" size="tiny">
- Cancel
- </Button>
+ <Button size="tiny">Cancel</Button>
<Button variant="danger" size="tiny">
Delete
</Button>
@@ -40,9 +38,7 @@ export default function CopyConfirmations() {
</div>
</div>
<div className="flex gap-2 justify-end">
- <Button variant="default" size="tiny">
- Cancel
- </Button>
+ <Button size="tiny">Cancel</Button>
<Button variant="danger" size="tiny">
Delete project
</Button>
diff --git a/apps/design-system/registry/default/example/data-table-demo.tsx b/apps/design-system/registry/default/example/data-table-demo.tsx
index a2eaa1b817d..5a63833a529 100644
--- a/apps/design-system/registry/default/example/data-table-demo.tsx
+++ b/apps/design-system/registry/default/example/data-table-demo.tsx
@@ -139,7 +139,7 @@ export const columns: ColumnDef<Payment>[] = [
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" className="px-1.5" icon={<MoreVertical />} />
+ <Button className="px-1.5" icon={<MoreVertical />} />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="max-w-48">
<DropdownMenuItem onClick={() => navigator.clipboard.writeText(payment.id)}>
@@ -200,7 +200,7 @@ export default function DataTableDemo() {
/>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" className="ml-auto" size="tiny" iconRight={<ChevronDown />}>
+ <Button className="ml-auto" size="tiny" iconRight={<ChevronDown />}>
Columns
</Button>
</DropdownMenuTrigger>
@@ -303,19 +303,13 @@ export default function DataTableDemo() {
</div>
<div className="space-x-2">
<Button
- variant="default"
size="tiny"
onClick={() => table.previousPage()}
disabled={!table.getCanPreviousPage()}
>
Previous
</Button>
- <Button
- variant="default"
- size="tiny"
- onClick={() => table.nextPage()}
- disabled={!table.getCanNextPage()}
- >
+ <Button size="tiny" onClick={() => table.nextPage()} disabled={!table.getCanNextPage()}>
Next
</Button>
</div>
diff --git a/apps/design-system/registry/default/example/dialog-centered-off.tsx b/apps/design-system/registry/default/example/dialog-centered-off.tsx
index efaa47eea70..791841651a8 100644
--- a/apps/design-system/registry/default/example/dialog-centered-off.tsx
+++ b/apps/design-system/registry/default/example/dialog-centered-off.tsx
@@ -17,7 +17,7 @@ export default function DialogDemo() {
return (
<Dialog>
<DialogTrigger asChild>
- <Button variant="default">Edit profile</Button>
+ <Button>Edit profile</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-[425px]" centered={false}>
<DialogHeader>
diff --git a/apps/design-system/registry/default/example/dialog-close-button.tsx b/apps/design-system/registry/default/example/dialog-close-button.tsx
index da8b2ab7e78..b61cdafab48 100644
--- a/apps/design-system/registry/default/example/dialog-close-button.tsx
+++ b/apps/design-system/registry/default/example/dialog-close-button.tsx
@@ -19,7 +19,7 @@ export default function DialogCloseButton() {
return (
<Dialog>
<DialogTrigger asChild>
- <Button variant="default">Share</Button>
+ <Button>Share</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-md">
<DialogHeader>
@@ -43,9 +43,7 @@ export default function DialogCloseButton() {
</DialogSection>
<DialogFooter className="sm:justify-start">
<DialogClose asChild>
- <Button variant="default" type="button">
- Custom Close Button
- </Button>
+ <Button type="button">Custom Close Button</Button>
</DialogClose>
</DialogFooter>
</DialogContent>
diff --git a/apps/design-system/registry/default/example/dialog-demo.tsx b/apps/design-system/registry/default/example/dialog-demo.tsx
index 9a06b6661fb..eddf38c08b7 100644
--- a/apps/design-system/registry/default/example/dialog-demo.tsx
+++ b/apps/design-system/registry/default/example/dialog-demo.tsx
@@ -17,7 +17,7 @@ export default function DialogDemo() {
return (
<Dialog>
<DialogTrigger asChild>
- <Button variant="default">Show Dialog</Button>
+ <Button>Show Dialog</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
diff --git a/apps/design-system/registry/default/example/drawer-demo.tsx b/apps/design-system/registry/default/example/drawer-demo.tsx
index 86cb0d8696b..f68c58951d4 100644
--- a/apps/design-system/registry/default/example/drawer-demo.tsx
+++ b/apps/design-system/registry/default/example/drawer-demo.tsx
@@ -67,9 +67,7 @@ export default function DrawerDemo() {
return (
<Drawer>
<DrawerTrigger asChild>
- <Button variant="default" size="small">
- Open Drawer
- </Button>
+ <Button size="small">Open Drawer</Button>
</DrawerTrigger>
<DrawerContent>
<div className="mx-auto w-full max-w-sm">
diff --git a/apps/design-system/registry/default/example/empty-state-missing-route.tsx b/apps/design-system/registry/default/example/empty-state-missing-route.tsx
index 179294876f9..78e030c09b0 100644
--- a/apps/design-system/registry/default/example/empty-state-missing-route.tsx
+++ b/apps/design-system/registry/default/example/empty-state-missing-route.tsx
@@ -13,7 +13,7 @@ export default function EmptyStateMissingRoute() {
title="Unable to find bucket"
description={`${bucketId ? `The bucket “${bucketId}”` : 'This bucket'} doesn’t seem to exist.`}
>
- <Button asChild variant="default" className="mt-2">
+ <Button asChild className="mt-2">
<Link
href="/"
onClick={(e) => {
diff --git a/apps/design-system/registry/default/example/empty-state-presentational-buttons.tsx b/apps/design-system/registry/default/example/empty-state-presentational-buttons.tsx
index 9a2196a4669..7892f734ad3 100644
--- a/apps/design-system/registry/default/example/empty-state-presentational-buttons.tsx
+++ b/apps/design-system/registry/default/example/empty-state-presentational-buttons.tsx
@@ -29,7 +29,7 @@ export default function EmptyStatePresentationalIcon() {
title="Add a provider"
description="Use third-party authentication systems to access your project."
>
- <Button size="tiny" variant="default" icon={<Plus size={14} />}>
+ <Button size="tiny" icon={<Plus size={14} />}>
Add provider
</Button>
</EmptyStatePresentational>
diff --git a/apps/design-system/registry/default/example/field-demo.tsx b/apps/design-system/registry/default/example/field-demo.tsx
index b14770153c8..37aefcd23db 100644
--- a/apps/design-system/registry/default/example/field-demo.tsx
+++ b/apps/design-system/registry/default/example/field-demo.tsx
@@ -116,9 +116,7 @@ export default function FieldDemo() {
<Button variant="primary" type="submit">
Submit
</Button>
- <Button type="button" variant="default">
- Cancel
- </Button>
+ <Button type="button">Cancel</Button>
</Field>
</FieldGroup>
</form>
diff --git a/apps/design-system/registry/default/example/field-responsive.tsx b/apps/design-system/registry/default/example/field-responsive.tsx
index 82eee0cb3b2..4b4b3c2a439 100644
--- a/apps/design-system/registry/default/example/field-responsive.tsx
+++ b/apps/design-system/registry/default/example/field-responsive.tsx
@@ -48,9 +48,7 @@ export default function FieldResponsive() {
<Button variant="primary" type="submit">
Submit
</Button>
- <Button type="button" variant="default">
- Cancel
- </Button>
+ <Button type="button">Cancel</Button>
</Field>
</FieldGroup>
</FieldSet>
diff --git a/apps/design-system/registry/default/example/filter-bar-demo.tsx b/apps/design-system/registry/default/example/filter-bar-demo.tsx
index 4bc48b1bfec..456f71a7945 100644
--- a/apps/design-system/registry/default/example/filter-bar-demo.tsx
+++ b/apps/design-system/registry/default/example/filter-bar-demo.tsx
@@ -25,9 +25,7 @@ function CustomDatePicker({ onChange, onCancel, search }: CustomOptionProps) {
className="w-full"
/>
<div className="flex justify-end gap-2 py-3 px-4 border-t">
- <Button variant="default" onClick={onCancel}>
- Cancel
- </Button>
+ <Button onClick={onCancel}>Cancel</Button>
<Button
variant="primary"
onClick={() =>
diff --git a/apps/design-system/registry/default/example/form-patterns-pagelayout.tsx b/apps/design-system/registry/default/example/form-patterns-pagelayout.tsx
index c228ab15c82..254ace4a715 100644
--- a/apps/design-system/registry/default/example/form-patterns-pagelayout.tsx
+++ b/apps/design-system/registry/default/example/form-patterns-pagelayout.tsx
@@ -340,7 +340,6 @@ export default function FormPatternsPageLayout() {
</Button>
<div className="flex gap-2 items-center">
<Button
- variant="default"
size="tiny"
icon={<Upload size={14} />}
onClick={() => uploadButtonRef.current?.click()}
@@ -349,7 +348,6 @@ export default function FormPatternsPageLayout() {
</Button>
{logoUrl && (
<Button
- variant="default"
size="tiny"
icon={<Trash size={12} />}
onClick={() => {
@@ -454,7 +452,6 @@ export default function FormPatternsPageLayout() {
{file.name}
</span>
<Button
- variant="default"
size="tiny"
icon={<Trash size={12} />}
onClick={() => {
@@ -760,24 +757,17 @@ export default function FormPatternsPageLayout() {
>
<div className="flex gap-2 items-center justify-end">
<Button
- variant="default"
icon={<ExternalLink size={14} />}
onClick={() => console.log('Action performed')}
>
View documentation
</Button>
- <Button variant="default" onClick={() => console.log('Reset action')}>
- Reset API key
- </Button>
+ <Button onClick={() => console.log('Reset action')}>Reset API key</Button>
</div>
</FormItemLayout>
</CardContent>
<CardFooter className="justify-end space-x-2">
- {form.formState.isDirty && (
- <Button variant="default" onClick={() => form.reset()}>
- Cancel
- </Button>
- )}
+ {form.formState.isDirty && <Button onClick={() => form.reset()}>Cancel</Button>}
<Button variant="primary" type="submit" disabled={!form.formState.isDirty}>
Save changes
</Button>
diff --git a/apps/design-system/registry/default/example/form-patterns-sidepanel.tsx b/apps/design-system/registry/default/example/form-patterns-sidepanel.tsx
index 090dce8da98..bcdd5452b22 100644
--- a/apps/design-system/registry/default/example/form-patterns-sidepanel.tsx
+++ b/apps/design-system/registry/default/example/form-patterns-sidepanel.tsx
@@ -338,7 +338,6 @@ export default function FormPatternsSidePanel() {
</Button>
{logoUrl && (
<Button
- variant="default"
size="tiny"
icon={<Trash size={12} />}
onClick={() => {
@@ -445,7 +444,6 @@ export default function FormPatternsSidePanel() {
{file.name}
</span>
<Button
- variant="default"
size="tiny"
icon={<Trash size={12} />}
onClick={() => {
@@ -772,15 +770,12 @@ export default function FormPatternsSidePanel() {
>
<div className="col-span-6 flex gap-2 items-center">
<Button
- variant="default"
icon={<ExternalLink size={14} />}
onClick={() => console.log('Action performed')}
>
View documentation
</Button>
- <Button variant="default" onClick={() => console.log('Reset action')}>
- Reset API key
- </Button>
+ <Button onClick={() => console.log('Reset action')}>Reset API key</Button>
</div>
</FormItemLayout>
</SheetSection>
@@ -788,7 +783,6 @@ export default function FormPatternsSidePanel() {
</Form>
<SheetFooter>
<Button
- variant="default"
onClick={() => {
form.reset()
setOpen(false)
diff --git a/apps/design-system/registry/default/example/inner-side-menu-empty.tsx b/apps/design-system/registry/default/example/inner-side-menu-empty.tsx
index 0dfb4c6d029..9021cef549a 100644
--- a/apps/design-system/registry/default/example/inner-side-menu-empty.tsx
+++ b/apps/design-system/registry/default/example/inner-side-menu-empty.tsx
@@ -33,11 +33,7 @@ export default function InnerSideMenuEmpty() {
title="No functions found"
description="Create your first serverless function to get started."
illustration={<div className="text-4xl">🚀</div>}
- actions={
- <Button variant="default" onClick={() => setHasItems(true)}>
- Create Function
- </Button>
- }
+ actions={<Button onClick={() => setHasItems(true)}>Create Function</Button>}
/>
</InnerSideMenuCollapsibleContent>
</InnerSideMenuCollapsible>
@@ -61,11 +57,7 @@ export default function InnerSideMenuEmpty() {
/>
</figure>
}
- actions={
- <Button variant="default" onClick={() => setHasItems(true)}>
- Create Function
- </Button>
- }
+ actions={<Button onClick={() => setHasItems(true)}>Create Function</Button>}
/>
</InnerSideMenuCollapsibleContent>
</InnerSideMenuCollapsible>
diff --git a/apps/design-system/registry/default/example/keyboard-shortcut-demo.tsx b/apps/design-system/registry/default/example/keyboard-shortcut-demo.tsx
index 022667bee56..27b6763968d 100644
--- a/apps/design-system/registry/default/example/keyboard-shortcut-demo.tsx
+++ b/apps/design-system/registry/default/example/keyboard-shortcut-demo.tsx
@@ -11,10 +11,7 @@ export default function KeyboardShortcutDemo() {
<div className="flex w-full max-w-2xl flex-col gap-6">
<div className="flex flex-wrap gap-3">
<Button iconRight={<KeyboardShortcut keys={['Meta', 'S']} variant="inline" />}>Save</Button>
- <Button
- variant="default"
- iconRight={<KeyboardShortcut keys={['Meta', 'Enter']} variant="inline" />}
- >
+ <Button iconRight={<KeyboardShortcut keys={['Meta', 'Enter']} variant="inline" />}>
Run query
</Button>
</div>
diff --git a/apps/design-system/registry/default/example/keyboard-shortcut-inline.tsx b/apps/design-system/registry/default/example/keyboard-shortcut-inline.tsx
index 22713eafc1e..e105df21cda 100644
--- a/apps/design-system/registry/default/example/keyboard-shortcut-inline.tsx
+++ b/apps/design-system/registry/default/example/keyboard-shortcut-inline.tsx
@@ -5,10 +5,7 @@ export default function KeyboardShortcutInline() {
<div className="flex w-full max-w-xl flex-col gap-4">
<div className="flex flex-wrap gap-3">
<Button iconRight={<KeyboardShortcut keys={['Meta', 'S']} variant="inline" />}>Save</Button>
- <Button
- variant="default"
- iconRight={<KeyboardShortcut keys={['Meta', 'Enter']} variant="inline" />}
- >
+ <Button iconRight={<KeyboardShortcut keys={['Meta', 'Enter']} variant="inline" />}>
Apply
</Button>
</div>
diff --git a/apps/design-system/registry/default/example/multi-select-badge-limit.tsx b/apps/design-system/registry/default/example/multi-select-badge-limit.tsx
index 9ae4e0d6070..41110e14a05 100644
--- a/apps/design-system/registry/default/example/multi-select-badge-limit.tsx
+++ b/apps/design-system/registry/default/example/multi-select-badge-limit.tsx
@@ -16,18 +16,13 @@ export default function MultiSelectDemo() {
return (
<div className="flex flex-col items-center gap-4">
<div className="flex items-center gap-2">
- <Button
- size="tiny"
- variant="default"
- onClick={() => setLimit(limit - 1)}
- disabled={limit < 1}
- >
+ <Button size="tiny" onClick={() => setLimit(limit - 1)} disabled={limit < 1}>
<Minus size={12} />
</Button>
<span className="text-sm text-foreground/90 peer-checked:line-through font-semibold hover:cursor-pointer">
Limit: {limit}
</span>
- <Button size="tiny" variant="default" onClick={() => setLimit(limit + 1)}>
+ <Button size="tiny" onClick={() => setLimit(limit + 1)}>
<Plus size={12} />
</Button>
</div>
diff --git a/apps/design-system/registry/default/example/page-header-demo.tsx b/apps/design-system/registry/default/example/page-header-demo.tsx
index 87fc94bcbb8..ccbd20a1d51 100644
--- a/apps/design-system/registry/default/example/page-header-demo.tsx
+++ b/apps/design-system/registry/default/example/page-header-demo.tsx
@@ -27,9 +27,7 @@ export default function PageHeaderDemo() {
</PageHeaderDescription>
</PageHeaderSummary>
<PageHeaderAside>
- <Button variant="default" size="small">
- Secondary
- </Button>
+ <Button size="small">Secondary</Button>
<Button variant="primary" size="small">
Deploy Function
</Button>
diff --git a/apps/design-system/registry/default/example/page-layout-auth-emails.tsx b/apps/design-system/registry/default/example/page-layout-auth-emails.tsx
index 85109da874d..80edcdca5ba 100644
--- a/apps/design-system/registry/default/example/page-layout-auth-emails.tsx
+++ b/apps/design-system/registry/default/example/page-layout-auth-emails.tsx
@@ -197,7 +197,7 @@ function TemplatesPage({ onNavigateToSmtp }: { onNavigateToSmtp: () => void }) {
layout="horizontal"
className="mb-4"
actions={
- <Button variant="default" size="tiny" onClick={onNavigateToSmtp}>
+ <Button size="tiny" onClick={onNavigateToSmtp}>
Set up SMTP
</Button>
}
@@ -283,9 +283,7 @@ function TemplatesPage({ onNavigateToSmtp }: { onNavigateToSmtp: () => void }) {
})}
<CardFooter className="justify-end space-x-2">
{notificationsForm.formState.isDirty && (
- <Button variant="default" onClick={() => notificationsForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => notificationsForm.reset()}>Cancel</Button>
)}
<Button
variant="primary"
@@ -495,11 +493,7 @@ function SmtpPage() {
)}
<CardFooter className="justify-end space-x-2">
- {form.formState.isDirty && (
- <Button variant="default" onClick={() => form.reset()}>
- Cancel
- </Button>
- )}
+ {form.formState.isDirty && <Button onClick={() => form.reset()}>Cancel</Button>}
<Button variant="primary" type="submit" disabled={!form.formState.isDirty}>
Save changes
</Button>
diff --git a/apps/design-system/registry/default/example/page-layout-detail.tsx b/apps/design-system/registry/default/example/page-layout-detail.tsx
index da13e6047dc..3042126a162 100644
--- a/apps/design-system/registry/default/example/page-layout-detail.tsx
+++ b/apps/design-system/registry/default/example/page-layout-detail.tsx
@@ -82,9 +82,7 @@ export default function PageLayoutDetail() {
<p className="text-sm">March 15, 2024</p>
</div>
<div className="pt-2">
- <Button variant="default" size="small">
- Change Plan
- </Button>
+ <Button size="small">Change Plan</Button>
</div>
</div>
</CardContent>
@@ -114,9 +112,7 @@ export default function PageLayoutDetail() {
<p className="text-sm">$234.50</p>
</div>
<div className="pt-2">
- <Button variant="default" size="small">
- Configure Limits
- </Button>
+ <Button size="small">Configure Limits</Button>
</div>
</div>
</CardContent>
@@ -146,9 +142,7 @@ export default function PageLayoutDetail() {
<p className="text-sm">12/2025</p>
</div>
<div className="pt-2">
- <Button variant="default" size="small">
- Update Payment Method
- </Button>
+ <Button size="small">Update Payment Method</Button>
</div>
</div>
</CardContent>
diff --git a/apps/design-system/registry/default/example/page-layout-edge-function.tsx b/apps/design-system/registry/default/example/page-layout-edge-function.tsx
index a3b250d71e0..8531092c35e 100644
--- a/apps/design-system/registry/default/example/page-layout-edge-function.tsx
+++ b/apps/design-system/registry/default/example/page-layout-edge-function.tsx
@@ -234,9 +234,7 @@ export default function PageLayoutEdgeFunction() {
<PageBreadcrumbs
actions={
<PageBreadcrumbsActions>
- <Button variant="default" size="tiny">
- Test
- </Button>
+ <Button size="tiny">Test</Button>
<Button variant="primary" size="tiny">
Deploy
</Button>
@@ -426,7 +424,7 @@ function OverviewPage() {
<PageSectionTitle>Errors since last deploy</PageSectionTitle>
</PageSectionSummary>
<PageSectionAside>
- <Button variant="default" size="tiny" icon={<ExternalLink size={14} />}>
+ <Button size="tiny" icon={<ExternalLink size={14} />}>
View logs
</Button>
</PageSectionAside>
@@ -704,7 +702,7 @@ function CodePage() {
<h3 className="text-sm font-normal font-mono uppercase text-lighter tracking-wide">
Files
</h3>
- <Button size="tiny" variant="default" icon={<Plus size={14} />} onClick={addNewFile}>
+ <Button size="tiny" icon={<Plus size={14} />} onClick={addNewFile}>
Add File
</Button>
</div>
diff --git a/apps/design-system/registry/default/example/page-layout-full-width.tsx b/apps/design-system/registry/default/example/page-layout-full-width.tsx
index bc917a05cea..5ef64401c62 100644
--- a/apps/design-system/registry/default/example/page-layout-full-width.tsx
+++ b/apps/design-system/registry/default/example/page-layout-full-width.tsx
@@ -20,9 +20,7 @@ export default function PageLayoutFullWidth() {
<PageBreadcrumbs
actions={
<PageBreadcrumbsActions>
- <Button variant="default" size="tiny">
- Docs
- </Button>
+ <Button size="tiny">Docs</Button>
</PageBreadcrumbsActions>
}
>
diff --git a/apps/design-system/registry/default/example/page-layout-logs-content.tsx b/apps/design-system/registry/default/example/page-layout-logs-content.tsx
index 8879095879c..d842f6ef8fe 100644
--- a/apps/design-system/registry/default/example/page-layout-logs-content.tsx
+++ b/apps/design-system/registry/default/example/page-layout-logs-content.tsx
@@ -118,12 +118,8 @@ export function PageLayoutLogsContent() {
/>
</div>
<div className="flex shrink-0 items-center gap-2">
- <Button variant="default" size="tiny">
- Live
- </Button>
- <Button variant="default" size="tiny">
- Refresh
- </Button>
+ <Button size="tiny">Live</Button>
+ <Button size="tiny">Refresh</Button>
</div>
</div>
diff --git a/apps/design-system/registry/default/example/page-layout-settings.tsx b/apps/design-system/registry/default/example/page-layout-settings.tsx
index 85fb5a8d518..fe44d53ea7c 100644
--- a/apps/design-system/registry/default/example/page-layout-settings.tsx
+++ b/apps/design-system/registry/default/example/page-layout-settings.tsx
@@ -161,9 +161,7 @@ export default function PageLayoutSettings() {
</CardContent>
<CardFooter className="justify-end space-x-2">
{refreshTokenForm.formState.isDirty && (
- <Button variant="default" onClick={() => refreshTokenForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => refreshTokenForm.reset()}>Cancel</Button>
)}
<Button
variant="primary"
@@ -266,9 +264,7 @@ export default function PageLayoutSettings() {
<CardFooter className="justify-end space-x-2">
{userSessionsForm.formState.isDirty && (
- <Button variant="default" onClick={() => userSessionsForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => userSessionsForm.reset()}>Cancel</Button>
)}
<Button
variant="primary"
diff --git a/apps/design-system/registry/default/example/page-section-demo.tsx b/apps/design-system/registry/default/example/page-section-demo.tsx
index f5061c80af7..6852e92f779 100644
--- a/apps/design-system/registry/default/example/page-section-demo.tsx
+++ b/apps/design-system/registry/default/example/page-section-demo.tsx
@@ -21,9 +21,7 @@ export default function PageSectionDemo() {
</PageSectionDescription>
</PageSectionSummary>
<PageSectionAside>
- <Button variant="default" size="small">
- Action
- </Button>
+ <Button size="small">Action</Button>
</PageSectionAside>
</PageSectionMeta>
<PageSectionContent>
diff --git a/apps/design-system/registry/default/example/page-section-with-aside.tsx b/apps/design-system/registry/default/example/page-section-with-aside.tsx
index bd6ae3f60e7..e0d91236bb4 100644
--- a/apps/design-system/registry/default/example/page-section-with-aside.tsx
+++ b/apps/design-system/registry/default/example/page-section-with-aside.tsx
@@ -21,9 +21,7 @@ export default function PageSectionWithAside() {
</PageSectionDescription>
</PageSectionSummary>
<PageSectionAside>
- <Button variant="default" size="small">
- Secondary
- </Button>
+ <Button size="small">Secondary</Button>
<Button variant="primary" size="small">
Primary Action
</Button>
diff --git a/apps/design-system/registry/default/example/sheet-confirm-on-close-demo.tsx b/apps/design-system/registry/default/example/sheet-confirm-on-close-demo.tsx
index 02992722d69..63d5a00a564 100644
--- a/apps/design-system/registry/default/example/sheet-confirm-on-close-demo.tsx
+++ b/apps/design-system/registry/default/example/sheet-confirm-on-close-demo.tsx
@@ -168,9 +168,7 @@ export default function SheetConfirmOnCloseDemo() {
return (
<>
- <Button variant="default" onClick={openSheet}>
- Open endpoint sheet
- </Button>
+ <Button onClick={openSheet}>Open endpoint sheet</Button>
<Sheet open={open} onOpenChange={handleOpenChange}>
<SheetContent className="flex flex-col gap-0">
@@ -210,9 +208,7 @@ export default function SheetConfirmOnCloseDemo() {
</SheetSection>
<Separator />
<SheetFooter>
- <Button variant="default" onClick={confirmOnClose}>
- Cancel
- </Button>
+ <Button onClick={confirmOnClose}>Cancel</Button>
<Button variant="primary" onClick={saveChanges} disabled={!isDirty}>
Save changes
</Button>
diff --git a/apps/design-system/registry/default/example/sonner-demo.tsx b/apps/design-system/registry/default/example/sonner-demo.tsx
index 60df9fe7902..80fb5316663 100644
--- a/apps/design-system/registry/default/example/sonner-demo.tsx
+++ b/apps/design-system/registry/default/example/sonner-demo.tsx
@@ -4,7 +4,6 @@ import { Button } from 'ui'
export default function SonnerDemo() {
return (
<Button
- variant="default"
onClick={() =>
toast('Event has been created', {
description: 'Sunday, December 03, 2023 at 9:00 AM',
diff --git a/apps/design-system/registry/default/example/sonner-types.tsx b/apps/design-system/registry/default/example/sonner-types.tsx
index 90720d275b9..ae3225b0221 100644
--- a/apps/design-system/registry/default/example/sonner-types.tsx
+++ b/apps/design-system/registry/default/example/sonner-types.tsx
@@ -7,11 +7,8 @@ export default function SonnerDemo() {
return (
<div className="flex gap-1">
- <Button variant="default" onClick={() => toast('Event has been created')}>
- Default
- </Button>
+ <Button onClick={() => toast('Event has been created')}>Default</Button>
<Button
- variant="default"
onClick={() =>
toast.message('Event has been created', {
description: 'Monday, January 3rd at 6:00pm',
@@ -21,7 +18,6 @@ export default function SonnerDemo() {
description
</Button>
<Button
- variant="default"
onClick={() =>
toast.success('Event has been created', {
description: 'Sunday, December 03, 2023 at 9:00 AM',
@@ -30,13 +26,8 @@ export default function SonnerDemo() {
>
Success
</Button>
- <Button variant="default" onClick={() => toast.success('Event has been created')}>
- Show Toast
- </Button>
- <Button
- variant="default"
- onClick={() => toast.info('Be at the area 10 minutes before the event time')}
- >
+ <Button onClick={() => toast.success('Event has been created')}>Show Toast</Button>
+ <Button onClick={() => toast.info('Be at the area 10 minutes before the event time')}>
Info
</Button>
<Button
@@ -61,11 +52,8 @@ export default function SonnerDemo() {
>
Action
</Button>
- <Button variant="default" onClick={() => toast.loading('Event has been created')}>
- Loading
- </Button>
+ <Button onClick={() => toast.loading('Event has been created')}>Loading</Button>
<Button
- variant="default"
onClick={() =>
toast.promise(promise, {
loading: 'Loading...',
@@ -80,12 +68,11 @@ export default function SonnerDemo() {
Promise
</Button>
<Button
- variant="default"
onClick={() =>
toast(
<>
<div>A custom toast with default styling</div>
- <Button variant="default">Hello world</Button>
+ <Button>Hello world</Button>
</>
)
}
diff --git a/apps/design-system/registry/default/example/sonner-upload.tsx b/apps/design-system/registry/default/example/sonner-upload.tsx
index 6ccffee9a3b..8999fb811d2 100644
--- a/apps/design-system/registry/default/example/sonner-upload.tsx
+++ b/apps/design-system/registry/default/example/sonner-upload.tsx
@@ -60,7 +60,6 @@ export default function SonnerUpload() {
return (
<div className="flex flex-col gap-3">
<Button
- variant="default"
onClick={async () => {
// random id
const toastId = Math.random()
diff --git a/apps/design-system/registry/default/example/table-actions.tsx b/apps/design-system/registry/default/example/table-actions.tsx
index 679cfb7cb7d..6cd37c74cfc 100644
--- a/apps/design-system/registry/default/example/table-actions.tsx
+++ b/apps/design-system/registry/default/example/table-actions.tsx
@@ -54,13 +54,12 @@ export default function TableActions() {
<TableCell>{user.name}</TableCell>
<TableCell className="text-foreground-lighter">{user.email}</TableCell>
<TableCell className="flex items-center gap-x-2">
- <Button variant="default" size="tiny" className="hit-area-2">
+ <Button size="tiny" className="hit-area-2">
Inspect
</Button>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
icon={<EllipsisVertical />}
aria-label="More actions"
className="w-7 hit-area-2"
diff --git a/apps/design-system/registry/default/example/table-cross-link.tsx b/apps/design-system/registry/default/example/table-cross-link.tsx
index 211641d80bc..1a47ce0be0b 100644
--- a/apps/design-system/registry/default/example/table-cross-link.tsx
+++ b/apps/design-system/registry/default/example/table-cross-link.tsx
@@ -84,13 +84,12 @@ export default function TableCrossLink() {
</Link>
</TableCell>
<TableCell className="flex items-center gap-x-2">
- <Button variant="default" size="tiny" icon={<Edit2 />} className="hit-area-2">
+ <Button size="tiny" icon={<Edit2 />} className="hit-area-2">
Edit
</Button>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
icon={<EllipsisVertical />}
aria-label="More actions"
className="w-7 hit-area-2"
diff --git a/apps/design-system/registry/default/example/table-row-link-actions.tsx b/apps/design-system/registry/default/example/table-row-link-actions.tsx
index 5e366aec446..8504c009db8 100644
--- a/apps/design-system/registry/default/example/table-row-link-actions.tsx
+++ b/apps/design-system/registry/default/example/table-row-link-actions.tsx
@@ -103,7 +103,6 @@ export default function TableRowLinkActions() {
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
icon={<EllipsisVertical />}
aria-label="More actions"
className="w-7 hit-area-2"
diff --git a/apps/docs/app/not-found.tsx b/apps/docs/app/not-found.tsx
index 0df7cfa32b2..a11489a5bce 100644
--- a/apps/docs/app/not-found.tsx
+++ b/apps/docs/app/not-found.tsx
@@ -17,7 +17,7 @@ export default function NotFound() {
</p>
<div className="flex flex-wrap gap-4 pt-4">
<SearchButton />
- <Button variant="default" size="small" className="p-4" asChild>
+ <Button size="small" className="p-4" asChild>
<Link href="/" className="no-underline">
Return to homepage
</Link>
diff --git a/apps/docs/components/Feedback/FeedbackModal.tsx b/apps/docs/components/Feedback/FeedbackModal.tsx
index 9b5f65a3268..c5b63904ecd 100644
--- a/apps/docs/components/Feedback/FeedbackModal.tsx
+++ b/apps/docs/components/Feedback/FeedbackModal.tsx
@@ -106,7 +106,7 @@ function FeedbackModal({ visible, page, onCancel, onSubmit }: FeedbackModalProps
</Form>
<DialogFooter>
<div className="flex items-center justify-end gap-2">
- <Button type="reset" variant="default" onClick={handleCancel} disabled={isSubmitting}>
+ <Button type="reset" onClick={handleCancel} disabled={isSubmitting}>
Cancel
</Button>
<Button
diff --git a/apps/docs/components/Navigation/NavigationMenu/GlobalMobileMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/GlobalMobileMenu.tsx
index fb3cecc29cf..06acb65ce57 100644
--- a/apps/docs/components/Navigation/NavigationMenu/GlobalMobileMenu.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/GlobalMobileMenu.tsx
@@ -164,7 +164,7 @@ const GlobalMobileMenu = ({ open, setOpen }: Props) => {
</Button>
) : (
<>
- <Button block size="medium" variant="default" asChild>
+ <Button block size="medium" asChild>
<Link href="https://supabase.com/dashboard/sign-in">Sign in</Link>
</Button>
<Button variant="primary" block size="medium" asChild>
diff --git a/apps/docs/features/ui/McpConfigPanel.tsx b/apps/docs/features/ui/McpConfigPanel.tsx
index 9a8ae8cdf8b..ab9ed13aa82 100644
--- a/apps/docs/features/ui/McpConfigPanel.tsx
+++ b/apps/docs/features/ui/McpConfigPanel.tsx
@@ -106,7 +106,7 @@ function ProjectSelector({
</span>
{!isUserLoading && !isLoggedIn ? (
- <Button size="small" variant="default" className="gap-0 rounded-l-none" asChild>
+ <Button size="small" className="gap-0 rounded-l-none" asChild>
<Link href="https://supabase.com/dashboard" rel="noreferrer noopener" target="_blank">
<div className="flex items-center gap-2">Log in to choose a project</div>
</Link>
@@ -115,7 +115,6 @@ function ProjectSelector({
<PopoverTrigger asChild disabled={isUserLoading || isLoading || isError}>
<Button
size="small"
- variant="default"
className="gap-0 rounded-l-none"
iconRight={
<ChevronDown
@@ -216,7 +215,6 @@ function PlatformSelector({
<PopoverTrigger asChild>
<Button
size="small"
- variant="default"
className="gap-0 rounded-l-none"
iconRight={
<ChevronDown
diff --git a/apps/learn/components/next-up.tsx b/apps/learn/components/next-up.tsx
index cb48761dc0a..a2406d4b88f 100644
--- a/apps/learn/components/next-up.tsx
+++ b/apps/learn/components/next-up.tsx
@@ -23,7 +23,6 @@ export function NextUp({ title, description, href, chapterNumber }: NextUpProps)
<div className="mt-2">
<Link href={href}>
<Button
- variant="default"
iconRight={<ArrowRight className="h-4 w-4" />}
className="flex items-center gap-2"
>
diff --git a/apps/lite-studio/app/routes/projects.$ref.tsx b/apps/lite-studio/app/routes/projects.$ref.tsx
index 5a6ace7ad70..67915a9a670 100644
--- a/apps/lite-studio/app/routes/projects.$ref.tsx
+++ b/apps/lite-studio/app/routes/projects.$ref.tsx
@@ -76,8 +76,8 @@ export default function ProjectPage() {
<Separator />
<div className="flex flex-wrap gap-3">
<Button variant="primary">New Table</Button>
- <Button variant="default">SQL Editor</Button>
- <Button variant="default">View Logs</Button>
+ <Button>SQL Editor</Button>
+ <Button>View Logs</Button>
<Button
variant="outline"
loading={loading}
@@ -169,7 +169,7 @@ export default function ProjectPage() {
<div className="flex gap-3">
<Button variant="primary">Save Changes</Button>
- <Button variant="default">Cancel</Button>
+ <Button>Cancel</Button>
</div>
</Card>
</TabsContent>
diff --git a/apps/studio/components/grid/components/editor/DateTimeEditor.tsx b/apps/studio/components/grid/components/editor/DateTimeEditor.tsx
index ba286d13537..db04d1bda00 100644
--- a/apps/studio/components/grid/components/editor/DateTimeEditor.tsx
+++ b/apps/studio/components/grid/components/editor/DateTimeEditor.tsx
@@ -144,11 +144,7 @@ function BaseEditor<TRow, TSummaryRow = unknown>({
<div className="flex">
{isNullable ? (
<>
- <Button
- variant="default"
- className="rounded-r-none"
- onClick={() => saveChanges(null)}
- >
+ <Button className="rounded-r-none" onClick={() => saveChanges(null)}>
Set NULL
</Button>
<DropdownMenu>
@@ -157,7 +153,6 @@ function BaseEditor<TRow, TSummaryRow = unknown>({
<DropdownMenuTrigger asChild>
<Button
aria-label="Date options"
- variant="default"
icon={<ChevronDown />}
className="px-1 rounded-l-none border-l-0"
/>
@@ -171,9 +166,7 @@ function BaseEditor<TRow, TSummaryRow = unknown>({
</DropdownMenu>
</>
) : (
- <Button variant="default" onClick={setToNow}>
- Set to NOW
- </Button>
+ <Button onClick={setToNow}>Set to NOW</Button>
)}
</div>
</div>
diff --git a/apps/studio/components/grid/components/editor/TextEditor.tsx b/apps/studio/components/grid/components/editor/TextEditor.tsx
index c96c96dcf64..e89d59de7c2 100644
--- a/apps/studio/components/grid/components/editor/TextEditor.tsx
+++ b/apps/studio/components/grid/components/editor/TextEditor.tsx
@@ -178,7 +178,6 @@ export const TextEditor = <TRow, TSummaryRow = unknown>({
<Tooltip>
<TooltipTrigger asChild>
<Button
- variant="default"
className="px-1"
onClick={() => onSelectExpand()}
icon={<Maximize size={12} strokeWidth={2} />}
@@ -190,7 +189,6 @@ export const TextEditor = <TRow, TSummaryRow = unknown>({
{isNullable && (
<Button
size="tiny"
- variant="default"
type="button"
onClick={() => {
// Skip confirmation when queue mode is enabled - changes can be reviewed/cancelled
diff --git a/apps/studio/components/grid/components/editor/TruncatedWarningOverlay.tsx b/apps/studio/components/grid/components/editor/TruncatedWarningOverlay.tsx
index 5be0d578bad..89a2390710e 100644
--- a/apps/studio/components/grid/components/editor/TruncatedWarningOverlay.tsx
+++ b/apps/studio/components/grid/components/editor/TruncatedWarningOverlay.tsx
@@ -22,7 +22,7 @@ export const TruncatedWarningOverlay = ({
You may try to render the entire value, but your browser may run into performance issues
</p>
</div>
- <Button variant="default" loading={isLoading} onClick={loadFullValue}>
+ <Button loading={isLoading} onClick={loadFullValue}>
Load full value
</Button>
</div>
diff --git a/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx b/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
index 11c1c61a308..13fc85c673e 100644
--- a/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
+++ b/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
@@ -84,7 +84,6 @@ export const ForeignKeyFormatter = (props: Props) => {
<Popover>
<PopoverTrigger asChild>
<ButtonTooltip
- variant="default"
className="w-6 h-6"
aria-label="View referencing record"
icon={<ArrowRight />}
diff --git a/apps/studio/components/grid/components/formatter/ReferenceRecordPeek.tsx b/apps/studio/components/grid/components/formatter/ReferenceRecordPeek.tsx
index f72d3ce51b5..4d0d9674416 100644
--- a/apps/studio/components/grid/components/formatter/ReferenceRecordPeek.tsx
+++ b/apps/studio/components/grid/components/formatter/ReferenceRecordPeek.tsx
@@ -164,7 +164,7 @@ export const ReferenceRecordPeek = ({ table, column, value }: ReferenceRecordPee
id={String(table.id)}
filters={[{ column, operator: '=', value: String(value) }]}
>
- <Button variant="default">Open table</Button>
+ <Button>Open table</Button>
</EditorTablePageLink>
</div>
</>
diff --git a/apps/studio/components/grid/components/grid/Grid.tsx b/apps/studio/components/grid/components/grid/Grid.tsx
index 37253f80afd..a5118a712b7 100644
--- a/apps/studio/components/grid/components/grid/Grid.tsx
+++ b/apps/studio/components/grid/components/grid/Grid.tsx
@@ -300,11 +300,7 @@ export const Grid = memo(
<div className="flex flex-col items-center justify-center">
<p className="text-sm text-light">This page does not have any data</p>
<div className="flex items-center space-x-2 mt-4">
- <Button
- variant="default"
- className="pointer-events-auto"
- onClick={() => snap.setPage(1)}
- >
+ <Button className="pointer-events-auto" onClick={() => snap.setPage(1)}>
Head back to first page
</Button>
</div>
@@ -327,7 +323,6 @@ export const Grid = memo(
) : canImportData ? (
<div className="flex flex-col items-center gap-4 mt-4">
<Button
- variant="default"
className="pointer-events-auto"
onClick={() => {
tableEditorSnap.onImportData()
@@ -348,11 +343,7 @@ export const Grid = memo(
The filters applied have returned no results from this table
</p>
<div className="flex items-center space-x-2 mt-4">
- <Button
- variant="default"
- className="pointer-events-auto"
- onClick={() => removeAllFilters()}
- >
+ <Button className="pointer-events-auto" onClick={() => removeAllFilters()}>
Remove all filters
</Button>
</div>
diff --git a/apps/studio/components/grid/components/grid/GridError.tsx b/apps/studio/components/grid/components/grid/GridError.tsx
index 3af62b209bb..44612826a8f 100644
--- a/apps/studio/components/grid/components/grid/GridError.tsx
+++ b/apps/studio/components/grid/components/grid/GridError.tsx
@@ -134,9 +134,7 @@ const FilterError = ({ removeAllFilters }: { removeAllFilters: () => void }) =>
One or more of your filters may have a value or operator that doesn't match the column's
data type. Try updating or removing the filter.
</p>
- <Button variant="default" onClick={removeAllFilters}>
- Remove filters
- </Button>
+ <Button onClick={removeAllFilters}>Remove filters</Button>
</Admonition>
)
}
@@ -167,9 +165,7 @@ const InvalidOrderingOperatorError = ({ error }: { error: ResponseError }) => {
Error: <code className="text-code-inline">{error.message}</code>
</p>
- <Button variant="default" onClick={() => onApplySorts([])}>
- Remove sorts
- </Button>
+ <Button onClick={() => onApplySorts([])}>Remove sorts</Button>
</Admonition>
)
}
diff --git a/apps/studio/components/grid/components/header/ExportDialog.tsx b/apps/studio/components/grid/components/header/ExportDialog.tsx
index 3f881e5fa2d..c4bdb275962 100644
--- a/apps/studio/components/grid/components/header/ExportDialog.tsx
+++ b/apps/studio/components/grid/components/header/ExportDialog.tsx
@@ -148,9 +148,7 @@ pg_dump -h ${db_host} -p ${db_port} -d ${db_name} -U ${db_user} --table="${table
)}
</DialogSection>
<DialogFooter>
- <Button variant="default" onClick={() => onOpenChange(false)}>
- Close
- </Button>
+ <Button onClick={() => onOpenChange(false)}>Close</Button>
</DialogFooter>
</DialogContent>
</Dialog>
diff --git a/apps/studio/components/grid/components/header/Header.tsx b/apps/studio/components/grid/components/header/Header.tsx
index 88e4e0ff15b..d927ec09ce7 100644
--- a/apps/studio/components/grid/components/header/Header.tsx
+++ b/apps/studio/components/grid/components/header/Header.tsx
@@ -351,12 +351,7 @@ const RowHeader = ({ rows: visibleRows, tableQueriesEnabled = true }: RowHeaderP
{!snap.allRowsSelected ? (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button
- variant="default"
- size="tiny"
- iconRight={<ChevronDown />}
- loading={isCopying}
- >
+ <Button size="tiny" iconRight={<ChevronDown />} loading={isCopying}>
Copy
</Button>
</DropdownMenuTrigger>
@@ -369,7 +364,6 @@ const RowHeader = ({ rows: visibleRows, tableQueriesEnabled = true }: RowHeaderP
) : (
<ButtonTooltip
disabled
- variant="default"
tooltip={{
content: {
side: 'bottom',
@@ -384,12 +378,7 @@ const RowHeader = ({ rows: visibleRows, tableQueriesEnabled = true }: RowHeaderP
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button
- variant="default"
- size="tiny"
- iconRight={<ChevronDown />}
- loading={isExporting}
- >
+ <Button size="tiny" iconRight={<ChevronDown />} loading={isExporting}>
Export
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/grid/components/header/filter/FilterPopoverNew.tsx b/apps/studio/components/grid/components/header/filter/FilterPopoverNew.tsx
index dc8a5e96c39..ac9a2f1f244 100644
--- a/apps/studio/components/grid/components/header/filter/FilterPopoverNew.tsx
+++ b/apps/studio/components/grid/components/header/filter/FilterPopoverNew.tsx
@@ -77,9 +77,7 @@ function DatePickerOption({ onChange, onCancel, search }: CustomOptionProps) {
className="w-full"
/>
<div className="flex justify-end gap-2 py-3 px-4 border-t">
- <Button variant="default" onClick={onCancel}>
- Cancel
- </Button>
+ <Button onClick={onCancel}>Cancel</Button>
<Button variant="primary" onClick={() => onChange(date ? format(date, 'yyyy-MM-dd') : '')}>
Apply
</Button>
diff --git a/apps/studio/components/grid/components/header/filter/FilterPopoverPrimitive.tsx b/apps/studio/components/grid/components/header/filter/FilterPopoverPrimitive.tsx
index d0b5f646f43..bcea5f7c105 100644
--- a/apps/studio/components/grid/components/header/filter/FilterPopoverPrimitive.tsx
+++ b/apps/studio/components/grid/components/header/filter/FilterPopoverPrimitive.tsx
@@ -115,7 +115,6 @@ export const FilterPopoverPrimitive = ({
</Button>
<Button
disabled={isEqual(localFilters, filters)}
- variant="default"
onClick={() => onSelectApplyFilters()}
>
Apply filter
diff --git a/apps/studio/components/interfaces/APIKeys/CreatePublishableAPIKeyDialog.tsx b/apps/studio/components/interfaces/APIKeys/CreatePublishableAPIKeyDialog.tsx
index e74e72e2dd7..12ec00d3f4e 100644
--- a/apps/studio/components/interfaces/APIKeys/CreatePublishableAPIKeyDialog.tsx
+++ b/apps/studio/components/interfaces/APIKeys/CreatePublishableAPIKeyDialog.tsx
@@ -86,7 +86,7 @@ export const CreatePublishableAPIKeyDialog = () => {
side="bottom"
tooltipOpen={visible === 'publishable' ? false : undefined}
>
- <Button variant="default" icon={<Plus />} onClick={openDialog}>
+ <Button icon={<Plus />} onClick={openDialog}>
New publishable key
</Button>
</Shortcut>
diff --git a/apps/studio/components/interfaces/APIKeys/CreateSecretAPIKeyDialog.tsx b/apps/studio/components/interfaces/APIKeys/CreateSecretAPIKeyDialog.tsx
index 6c2d48a1a45..57a57d64f8f 100644
--- a/apps/studio/components/interfaces/APIKeys/CreateSecretAPIKeyDialog.tsx
+++ b/apps/studio/components/interfaces/APIKeys/CreateSecretAPIKeyDialog.tsx
@@ -92,7 +92,7 @@ export const CreateSecretAPIKeyDialog = () => {
side="bottom"
tooltipOpen={visible === 'secret' ? false : undefined}
>
- <Button variant="default" className="mt-2" icon={<Plus />} onClick={openDialog}>
+ <Button className="mt-2" icon={<Plus />} onClick={openDialog}>
New secret key
</Button>
</Shortcut>
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenList.tsx b/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenList.tsx
index b95ba903350..5e0e91c9a4e 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenList.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenList.tsx
@@ -150,12 +150,7 @@ export const AccessTokenList = ({
<div className="flex items-center justify-end gap-x-2">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button
- variant="default"
- aria-label="More options"
- className="w-7"
- icon={<MoreVertical />}
- />
+ <Button aria-label="More options" className="w-7" icon={<MoreVertical />} />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-40">
{x.kind === 'scoped' && (
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenDialog.tsx b/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenDialog.tsx
index 55061284d9b..3d499146e2a 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenDialog.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenDialog.tsx
@@ -154,7 +154,7 @@ export const NewTokenDialog = ({
be very careful when using this API.
</p>
<div className="mt-4">
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<a href="https://api.supabase.com/api/v0" target="_blank" rel="noreferrer">
Experimental API documentation
</a>
@@ -235,7 +235,6 @@ export const NewTokenDialog = ({
</DialogSection>
<DialogFooter>
<Button
- variant="default"
disabled={isPending}
onClick={() => {
form.reset()
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/MigrationAdmonition.tsx b/apps/studio/components/interfaces/Account/AccessTokens/MigrationAdmonition.tsx
index cdf1f0d1cbf..20b49f02a64 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/MigrationAdmonition.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/MigrationAdmonition.tsx
@@ -22,7 +22,7 @@ export const MigrationAdmonition = () => {
actions={
<>
{/* Awaiting correct documentation link */}
- <Button asChild variant="default" size="tiny">
+ <Button asChild size="tiny">
<Link href={`${DOCS_URL}/guides/api`} target="_blank" rel="noreferrer">
Learn more
</Link>
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx
index b7d9df68fed..23d908e7e6b 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx
@@ -232,12 +232,12 @@ export const NewScopedTokenForm = forwardRef<
)}
<div className="flex items-center gap-2">
{step === 'review' && (
- <Button variant="default" disabled={isPending} onClick={() => setStep('form')}>
+ <Button disabled={isPending} onClick={() => setStep('form')}>
Back
</Button>
)}
<SheetClose asChild disabled={isPending}>
- <Button variant="default">Cancel</Button>
+ <Button>Cancel</Button>
</SheetClose>
{step === 'form' && isClassicMode && (
<Button variant="primary" type="submit" form={FORM_ID} loading={isPending}>
diff --git a/apps/studio/components/interfaces/Account/AuditLogs.tsx b/apps/studio/components/interfaces/Account/AuditLogs.tsx
index 0471351a4df..354d510f330 100644
--- a/apps/studio/components/interfaces/Account/AuditLogs.tsx
+++ b/apps/studio/components/interfaces/Account/AuditLogs.tsx
@@ -157,7 +157,6 @@ export const AuditLogs = () => {
)}
</div>
<Button
- variant="default"
disabled={isLoading || isRefetching}
icon={<RefreshCw className={isRefetching ? 'animate-spin' : ''} />}
onClick={() => refetch()}
@@ -284,7 +283,7 @@ export const AuditLogs = () => {
<TimestampInfo className="text-sm" utcTimestamp={isoTimestamp} />
</Table.td>
<Table.td align="right">
- <Button variant="default">View details</Button>
+ <Button>View details</Button>
</Table.td>
</Table.tr>
)
diff --git a/apps/studio/components/interfaces/Account/Preferences/AccountConnections.tsx b/apps/studio/components/interfaces/Account/Preferences/AccountConnections.tsx
index 8d4a578b9a4..5e4ab17529a 100644
--- a/apps/studio/components/interfaces/Account/Preferences/AccountConnections.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/AccountConnections.tsx
@@ -111,7 +111,7 @@ export const AccountConnections = () => {
{isConnected ? (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button iconRight={<ChevronDown size={14} />} variant="default">
+ <Button iconRight={<ChevronDown size={14} />}>
<span>Manage</span>
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Account/Preferences/AccountIdentities.tsx b/apps/studio/components/interfaces/Account/Preferences/AccountIdentities.tsx
index 9e74deca4fd..10ea57dd5c7 100644
--- a/apps/studio/components/interfaces/Account/Preferences/AccountIdentities.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/AccountIdentities.tsx
@@ -182,7 +182,7 @@ export const AccountIdentities = () => {
</div>
<div className="flex items-center gap-x-1">
{provider === 'email' && (
- <Button asChild variant="default">
+ <Button asChild>
<Link href="/reset-password?type=change">Change password</Link>
</Button>
)}
@@ -225,7 +225,6 @@ export const AccountIdentities = () => {
</div>
</div>
<Button
- variant="default"
loading={linkingProviderId === provider.id}
disabled={!!linkingProviderId}
onClick={() => onLinkExternalProvider(provider)}
diff --git a/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx b/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx
index 153ceb3c6db..dc42964599c 100644
--- a/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx
@@ -56,9 +56,7 @@ export const AddPasswordRow = ({ email }: { email: string }) => {
<p className="text-sm text-foreground-lighter">{email}</p>
</div>
</div>
- <Button variant="default" onClick={() => setIsDialogOpen(true)}>
- Add password
- </Button>
+ <Button onClick={() => setIsDialogOpen(true)}>Add password</Button>
</CardContent>
<Dialog open={isDialogOpen} onOpenChange={setIsDialogOpen}>
@@ -121,7 +119,6 @@ const AddPasswordForm = ({ email, onClose }: { email: string; onClose: () => voi
<Button
icon={passwordHidden ? <Eye /> : <EyeOff />}
aria-label={passwordHidden ? 'Show password' : 'Hide Password'}
- variant="default"
className="w-7"
onClick={() => setPasswordHidden((prev) => !prev)}
/>
@@ -137,7 +134,7 @@ const AddPasswordForm = ({ email, onClose }: { email: string; onClose: () => voi
</DialogSection>
<DialogFooter>
- <Button variant="default" disabled={isPending} onClick={onClose}>
+ <Button disabled={isPending} onClick={onClose}>
Cancel
</Button>
<Button variant="primary" type="submit" loading={isPending} disabled={isPending}>
diff --git a/apps/studio/components/interfaces/Account/Preferences/ChangeEmailAddress.tsx b/apps/studio/components/interfaces/Account/Preferences/ChangeEmailAddress.tsx
index 16681fa879b..3dfd98e0473 100644
--- a/apps/studio/components/interfaces/Account/Preferences/ChangeEmailAddress.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/ChangeEmailAddress.tsx
@@ -113,7 +113,7 @@ export const ChangeEmailAddressForm = ({ onClose }: { onClose: () => void }) =>
</DialogSection>
<DialogFooter>
- <Button variant="default" disabled={isPending} onClick={onClose}>
+ <Button disabled={isPending} onClick={onClose}>
Cancel
</Button>
<Button variant="primary" type="submit" loading={isPending} disabled={isPending}>
diff --git a/apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsx b/apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsx
index f0a960730ed..dc909425e0e 100644
--- a/apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsx
@@ -192,11 +192,7 @@ export const ProfileInformation = () => {
/>
</CardContent>
<CardFooter className="justify-end space-x-2">
- {form.formState.isDirty && (
- <Button variant="default" onClick={() => form.reset()}>
- Cancel
- </Button>
- )}
+ {form.formState.isDirty && <Button onClick={() => form.reset()}>Cancel</Button>}
<Button
variant="primary"
type="submit"
diff --git a/apps/studio/components/interfaces/Account/TOTPFactors/index.tsx b/apps/studio/components/interfaces/Account/TOTPFactors/index.tsx
index d8952f9625b..83023b5c6f1 100644
--- a/apps/studio/components/interfaces/Account/TOTPFactors/index.tsx
+++ b/apps/studio/components/interfaces/Account/TOTPFactors/index.tsx
@@ -58,7 +58,7 @@ export const TOTPFactors = () => {
title="Avoid being locked out"
description="Add a backup authenticator app now. Losing access to your only app will permanently lock you out of your account."
actions={
- <Button variant="default" icon={<Plus />} onClick={handleAddNewApp}>
+ <Button icon={<Plus />} onClick={handleAddNewApp}>
Add another app
</Button>
}
@@ -90,11 +90,7 @@ export const TOTPFactors = () => {
Added on {dayjs(factor.created_at).format(DATETIME_FORMAT)}
</p>
</div>
- <Button
- size="tiny"
- variant="default"
- onClick={() => setFactorToBeDeleted(factor.id)}
- >
+ <Button size="tiny" onClick={() => setFactorToBeDeleted(factor.id)}>
Delete{' '}
</Button>
</CardContent>
diff --git a/apps/studio/components/interfaces/Advisors/AdvisorRuleItem.tsx b/apps/studio/components/interfaces/Advisors/AdvisorRuleItem.tsx
index 06341d945d4..65da814b118 100644
--- a/apps/studio/components/interfaces/Advisors/AdvisorRuleItem.tsx
+++ b/apps/studio/components/interfaces/Advisors/AdvisorRuleItem.tsx
@@ -123,7 +123,6 @@ export const AdvisorRuleItem = ({ lint }: AdvisorRuleItemProps) => {
<div className="flex items-center gap-x-2">
<DocsButton href={lint.docsLink} />
<Button
- variant="default"
onClick={(e) => {
e.stopPropagation()
setOpen(true)
@@ -187,7 +186,6 @@ export const AdvisorRuleItem = ({ lint }: AdvisorRuleItemProps) => {
tooltip={{ content: { side: 'bottom', text: 'Edit rule' } }}
/> */}
<ButtonTooltip
- variant="default"
icon={<Trash />}
className="w-7"
onClick={() => setSelectedRuleToDelete(rule.id)}
diff --git a/apps/studio/components/interfaces/Advisors/CreateRuleSheet.tsx b/apps/studio/components/interfaces/Advisors/CreateRuleSheet.tsx
index bc1aa0bbbb2..ef3f22df4a2 100644
--- a/apps/studio/components/interfaces/Advisors/CreateRuleSheet.tsx
+++ b/apps/studio/components/interfaces/Advisors/CreateRuleSheet.tsx
@@ -237,7 +237,7 @@ export const CreateRuleSheet = ({ lint, open, onOpenChange }: CreateRuleSheetPro
</Form>
</SheetSection>
<SheetFooter>
- <Button disabled={isCreating} variant="default" onClick={() => onOpenChange(false)}>
+ <Button disabled={isCreating} onClick={() => onOpenChange(false)}>
Cancel
</Button>
<Button variant="primary" form={formId} type="submit" loading={isCreating}>
diff --git a/apps/studio/components/interfaces/Advisors/DisableRuleModal.tsx b/apps/studio/components/interfaces/Advisors/DisableRuleModal.tsx
index f65e2143b26..031a22e29ec 100644
--- a/apps/studio/components/interfaces/Advisors/DisableRuleModal.tsx
+++ b/apps/studio/components/interfaces/Advisors/DisableRuleModal.tsx
@@ -63,7 +63,7 @@ export const DisableRuleModal = ({ lint }: DisableRuleModalProps) => {
return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>
- <Button variant="default">Disable rule</Button>
+ <Button>Disable rule</Button>
</DialogTrigger>
<DialogContent size="small">
<DialogHeader>
@@ -77,7 +77,7 @@ export const DisableRuleModal = ({ lint }: DisableRuleModalProps) => {
</p>
</DialogSection>
<DialogFooter>
- <Button disabled={isCreating} variant="default" onClick={() => setOpen(false)}>
+ <Button disabled={isCreating} onClick={() => setOpen(false)}>
Cancel
</Button>
<Button loading={isCreating} variant="primary" onClick={onCreateRule}>
diff --git a/apps/studio/components/interfaces/Advisors/EnableRuleModal.tsx b/apps/studio/components/interfaces/Advisors/EnableRuleModal.tsx
index 85553b1bb60..d0b88813faa 100644
--- a/apps/studio/components/interfaces/Advisors/EnableRuleModal.tsx
+++ b/apps/studio/components/interfaces/Advisors/EnableRuleModal.tsx
@@ -42,7 +42,7 @@ export const EnableRuleModal = ({ lint, rule }: EnableRuleModalProps) => {
return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>
- <Button variant="default">Enable rule</Button>
+ <Button>Enable rule</Button>
</DialogTrigger>
<DialogContent size="small">
<DialogHeader>
@@ -56,7 +56,7 @@ export const EnableRuleModal = ({ lint, rule }: EnableRuleModalProps) => {
</p>
</DialogSection>
<DialogFooter>
- <Button disabled={isDeleting} variant="default" onClick={() => setOpen(false)}>
+ <Button disabled={isDeleting} onClick={() => setOpen(false)}>
Cancel
</Button>
<Button loading={isDeleting} variant="primary" onClick={onDeleteRule}>
diff --git a/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Error.tsx b/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Error.tsx
index 7aa0935ad0c..f1580a07d7c 100644
--- a/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Error.tsx
+++ b/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Error.tsx
@@ -25,7 +25,7 @@ export function ApiAuthorizationErrorScreen({
)
}
/>
- <Button variant="default" block asChild>
+ <Button block asChild>
<Link href="/">Back to dashboard</Link>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Form.tsx b/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Form.tsx
index faa3b358aaa..83bb084ac5b 100644
--- a/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Form.tsx
+++ b/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Form.tsx
@@ -219,7 +219,7 @@ function OrganizationsEmptyState({ authId }: OrganizationsEmptyStateProps): Reac
title="No organizations found"
description="Create an organization before authorizing this request."
actions={[
- <Button asChild key="new-org" variant="default">
+ <Button asChild key="new-org">
<Link href={`/new?returnTo=${encodeURIComponent(returnTo)}`}>Create an organization</Link>
</Button>,
]}
diff --git a/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Invalid.tsx b/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Invalid.tsx
index 5759641e559..802f57d1f97 100644
--- a/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Invalid.tsx
+++ b/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Invalid.tsx
@@ -28,7 +28,7 @@ export function ApiAuthorizationInvalidScreen({
isPlural ? 's' : ''
}: ${missingParameters.join(', ')}.`}
/>
- <Button variant="default" block asChild>
+ <Button block asChild>
<Link href="/">Back to dashboard</Link>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx
index 21ed56045ee..f28d68d1a8b 100644
--- a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx
+++ b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx
@@ -217,7 +217,7 @@ export const FeaturePreviewModal = () => {
<p>{selectedFeature?.name}</p>
<div className="flex items-center gap-x-2">
{selectedFeature?.discussionsUrl !== undefined && (
- <Button asChild variant="default" icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
<Link
href={selectedFeature.discussionsUrl}
target="_blank"
@@ -229,7 +229,6 @@ export const FeaturePreviewModal = () => {
)}
{isSelectedFeatureEnabled && (
<ButtonTooltip
- variant="default"
disabled={!canDisableSelectedFeature}
onClick={() => toggleFeature()}
tooltip={{
@@ -248,9 +247,7 @@ export const FeaturePreviewModal = () => {
{!isSelectedFeatureEnabled && (
<Tooltip>
<TooltipTrigger asChild>
- <Button variant="default" onClick={() => toggleFeature()}>
- Enable feature
- </Button>
+ <Button onClick={() => toggleFeature()}>Enable feature</Button>
</TooltipTrigger>
<TooltipContent side="bottom" className="max-w-64 text-center">
{hasRoute
@@ -275,7 +272,7 @@ export const FeaturePreviewModal = () => {
Have an idea for the dashboard? Let us know via GitHub Discussions!
</p>
</div>
- <Button asChild variant="default" icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
<Link
href="https://github.com/orgs/supabase/discussions/categories/feature-requests"
target="_blank"
diff --git a/apps/studio/components/interfaces/Auth/AuditLogsForm.tsx b/apps/studio/components/interfaces/Auth/AuditLogsForm.tsx
index d56eee4efd6..418e95a14cc 100644
--- a/apps/studio/components/interfaces/Auth/AuditLogsForm.tsx
+++ b/apps/studio/components/interfaces/Auth/AuditLogsForm.tsx
@@ -187,11 +187,7 @@ export const AuditLogsForm = () => {
</CardContent>
<CardFooter className="justify-end space-x-2">
- {isDirty && (
- <Button variant="default" onClick={() => form.reset()}>
- Cancel
- </Button>
- )}
+ {isDirty && <Button onClick={() => form.reset()}>Cancel</Button>}
<Button
variant="primary"
type="submit"
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/AuthAlert.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/AuthAlert.tsx
index cd1f1969b35..7ee0935c7a9 100644
--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/AuthAlert.tsx
+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/AuthAlert.tsx
@@ -46,7 +46,7 @@ export const AuthAlert = ({
</AlertTitle>
<AlertDescription className="flex flex-col gap-y-3">
<p>The SMS hook will be used in place of the SMS provider configured</p>
- <Button asChild variant="default" className="w-min" icon={<ExternalLink />}>
+ <Button asChild className="w-min" icon={<ExternalLink />}>
<Link href={`/project/${ref}/auth/hooks`}>View auth hooks</Link>
</Button>
</AlertDescription>
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
index 8f480f2d05d..21068fbb666 100644
--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
@@ -291,7 +291,7 @@ const FormField = ({
{description ? <Markdown content={description} /> : null}
{properties.link && (
<span>
- <Button asChild variant="default" size="tiny" icon={<ExternalLink />}>
+ <Button asChild size="tiny" icon={<ExternalLink />}>
<a href={properties.link} target="_blank" rel="noreferrer noopener">
Documentation
</a>
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
index 91405e99adf..d4dfb13d85b 100644
--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
@@ -279,7 +279,6 @@ export const ProviderForm = ({ config, provider, isActive }: ProviderFormProps)
<DocsButton href={provider.link} />
<div className="flex items-center gap-x-3">
<Button
- variant="default"
type="reset"
onClick={() => {
setOpen(false)
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/index.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/index.tsx
index 4950b329c37..dbc4b4829df 100644
--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/index.tsx
+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/index.tsx
@@ -59,7 +59,7 @@ export const AuthProvidersForm = () => {
set to more than an hour. It is recommended to set this value to less than an
hour.
</p>
- <Button asChild variant="default" className="w-min" icon={<ExternalLink />}>
+ <Button asChild className="w-min" icon={<ExternalLink />}>
<Link href={`${DOCS_URL}/guides/platform/going-into-prod#security`}>
View security recommendations
</Link>
diff --git a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm.tsx b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm.tsx
index 4f81a929d47..333674fa48b 100644
--- a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm.tsx
+++ b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm.tsx
@@ -280,12 +280,7 @@ export const BasicAuthSettingsForm = () => {
</Link>{' '}
to ensure that access to your data is restricted where required.
</p>
- <Button
- asChild
- variant="default"
- className="w-min"
- icon={<ExternalLink />}
- >
+ <Button asChild className="w-min" icon={<ExternalLink />}>
<Link href={`${DOCS_URL}/guides/auth/auth-anonymous#access-control`}>
View access control docs
</Link>
@@ -334,11 +329,7 @@ export const BasicAuthSettingsForm = () => {
/>
</CardContent>
<CardFooter className="justify-end space-x-2">
- {isDirty && (
- <Button variant="default" onClick={() => form.reset()}>
- Cancel
- </Button>
- )}
+ {isDirty && <Button onClick={() => form.reset()}>Cancel</Button>}
<Button
variant="primary"
type="submit"
diff --git a/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx b/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx
index 874978b9967..3aef6d786fb 100644
--- a/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx
+++ b/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx
@@ -511,9 +511,7 @@ export const CreateOrUpdateCustomProviderSheet = ({
</form>
</Form>
<SheetFooter>
- <Button variant="default" onClick={confirmOnClose}>
- Cancel
- </Button>
+ <Button onClick={confirmOnClose}>Cancel</Button>
<Button variant="primary" type="submit" form={FORM_ID} loading={isCreating || isUpdating}>
{isEditMode ? 'Update provider' : 'Create and enable provider'}
</Button>
diff --git a/apps/studio/components/interfaces/Auth/CustomAuthProviders/CustomAuthProvidersList.tsx b/apps/studio/components/interfaces/Auth/CustomAuthProviders/CustomAuthProvidersList.tsx
index ade0cd694ac..b0c99c06408 100644
--- a/apps/studio/components/interfaces/Auth/CustomAuthProviders/CustomAuthProvidersList.tsx
+++ b/apps/studio/components/interfaces/Auth/CustomAuthProviders/CustomAuthProvidersList.tsx
@@ -340,13 +340,7 @@ export const CustomAuthProvidersList = () => {
onSaveFilters={setFilteredEnabledStatuses}
/>
{hasActiveFilters && (
- <Button
- variant="default"
- size="tiny"
- className="px-1"
- icon={<X />}
- onClick={handleResetFilters}
- />
+ <Button size="tiny" className="px-1" icon={<X />} onClick={handleResetFilters} />
)}
</div>
<div className="flex items-center gap-x-2">
@@ -478,7 +472,7 @@ export const CustomAuthProvidersList = () => {
<div className="absolute top-0 right-0 left-0 bottom-0 flex items-center justify-center border-l @[944px]:border-l-0">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" className="px-1" icon={<MoreVertical />} />
+ <Button className="px-1" icon={<MoreVertical />} />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-48">
<DropdownMenuItem
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/CustomEmailTemplateRestrictionAdmonition.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/CustomEmailTemplateRestrictionAdmonition.tsx
index f6322debb67..a3fdd26cc33 100644
--- a/apps/studio/components/interfaces/Auth/EmailTemplates/CustomEmailTemplateRestrictionAdmonition.tsx
+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/CustomEmailTemplateRestrictionAdmonition.tsx
@@ -27,7 +27,6 @@ export const CustomEmailTemplateRestrictionAdmonition = () => {
<div className="flex w-full @lg:w-auto">
<Button
asChild
- variant="default"
className="flex-1 rounded-r-none px-3 @lg:flex-none hover:z-10 focus-visible:z-10 focus-visible:rounded-r-sm"
>
<Link href={`/project/${projectRef}/auth/smtp`}>Set up SMTP</Link>
@@ -35,7 +34,6 @@ export const CustomEmailTemplateRestrictionAdmonition = () => {
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
aria-label="More email template editing options"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
icon={<ChevronDown />}
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx
index ca2ce5edff4..045b40efa79 100644
--- a/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx
+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx
@@ -173,7 +173,7 @@ export const EmailTemplates = () => {
}
layout="horizontal"
actions={
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${projectRef}/auth/smtp`}>Set up SMTP</Link>
</Button>
}
@@ -276,9 +276,7 @@ export const EmailTemplates = () => {
)}
<CardFooter className="justify-end space-x-2">
{notificationsForm.formState.isDirty && (
- <Button variant="default" onClick={() => notificationsForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => notificationsForm.reset()}>Cancel</Button>
)}
<Button
variant="primary"
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/ResetTemplateDialog.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/ResetTemplateDialog.tsx
index e613873104b..a82e493a6f1 100644
--- a/apps/studio/components/interfaces/Auth/EmailTemplates/ResetTemplateDialog.tsx
+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/ResetTemplateDialog.tsx
@@ -78,7 +78,7 @@ export const ResetTemplateDialog = ({
}}
>
<AlertDialogTrigger asChild>
- <Button variant="default" type="button" disabled={!canUpdateConfig}>
+ <Button type="button" disabled={!canUpdateConfig}>
Reset template
</Button>
</AlertDialogTrigger>
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/SendEmailHookActiveAdmonition.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/SendEmailHookActiveAdmonition.tsx
index 4f733d0fe59..a111f17c07f 100644
--- a/apps/studio/components/interfaces/Auth/EmailTemplates/SendEmailHookActiveAdmonition.tsx
+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/SendEmailHookActiveAdmonition.tsx
@@ -29,7 +29,7 @@ export const SendEmailHookActiveAdmonition = () => {
</>
}
actions={
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${projectRef}/auth/hooks?hook=send-email`}>Manage hook</Link>
</Button>
}
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx
index a8a2da6979f..ab117cd05ba 100644
--- a/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx
+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx
@@ -451,7 +451,6 @@ export const TemplateEditor = ({ template, isReadOnly = false }: TemplateEditorP
<div className="ml-auto flex flex-row gap-2">
{hasChanges && (
<Button
- variant="default"
type="button"
onClick={() => {
form.reset(INITIAL_VALUES)
diff --git a/apps/studio/components/interfaces/Auth/Hooks/CreateHookSheet.tsx b/apps/studio/components/interfaces/Auth/Hooks/CreateHookSheet.tsx
index 726e8781754..b3b596fc20c 100644
--- a/apps/studio/components/interfaces/Auth/Hooks/CreateHookSheet.tsx
+++ b/apps/studio/components/interfaces/Auth/Hooks/CreateHookSheet.tsx
@@ -525,7 +525,6 @@ revoke execute on function ${ident(schema)}.${ident(functionName)} from authenti
<div className="flex flex-row">
<Input {...field} className="rounded-r-none border-r-0" />
<Button
- variant="default"
className="rounded-l-none text-xs h-auto"
onClick={() => {
const authHookSecret = generateAuthHookSecret()
@@ -555,7 +554,7 @@ revoke execute on function ${ident(schema)}.${ident(functionName)} from authenti
</div>
)}
- <Button disabled={isUpdatingAuthHooks} variant="default" onClick={confirmOnClose}>
+ <Button disabled={isUpdatingAuthHooks} onClick={confirmOnClose}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Auth/Hooks/HookCard.tsx b/apps/studio/components/interfaces/Auth/Hooks/HookCard.tsx
index 94d6571a109..0eea9bc7835 100644
--- a/apps/studio/components/interfaces/Auth/Hooks/HookCard.tsx
+++ b/apps/studio/components/interfaces/Auth/Hooks/HookCard.tsx
@@ -130,7 +130,6 @@ export const HookCard = ({ hook, onSelectEdit, onSelectDelete }: HookCardProps)
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
className="px-1"
icon={<MoreVertical />}
aria-label={`Open actions for ${hook.title}`}
diff --git a/apps/studio/components/interfaces/Auth/MfaAuthSettingsForm/MfaAuthSettingsForm.tsx b/apps/studio/components/interfaces/Auth/MfaAuthSettingsForm/MfaAuthSettingsForm.tsx
index c4cf9697141..c2ca04921d5 100644
--- a/apps/studio/components/interfaces/Auth/MfaAuthSettingsForm/MfaAuthSettingsForm.tsx
+++ b/apps/studio/components/interfaces/Auth/MfaAuthSettingsForm/MfaAuthSettingsForm.tsx
@@ -421,9 +421,7 @@ export const MfaAuthSettingsForm = () => {
<CardFooter className="justify-end space-x-2">
{totpForm.formState.isDirty && (
- <Button variant="default" onClick={() => totpForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => totpForm.reset()}>Cancel</Button>
)}
<Button
variant="primary"
@@ -568,9 +566,7 @@ export const MfaAuthSettingsForm = () => {
<CardFooter className="justify-end space-x-2">
{phoneForm.formState.isDirty && (
- <Button variant="default" onClick={() => phoneForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => phoneForm.reset()}>Cancel</Button>
)}
<Button
variant={promptProPlanUpgrade ? 'default' : 'primary'}
@@ -657,9 +653,7 @@ export const MfaAuthSettingsForm = () => {
)}
<CardFooter className="justify-end space-x-2">
{securityForm.formState.isDirty && (
- <Button variant="default" onClick={() => securityForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => securityForm.reset()}>Cancel</Button>
)}
<Button
variant="primary"
diff --git a/apps/studio/components/interfaces/Auth/OAuthApps/CreateOrUpdateOAuthAppSheet.tsx b/apps/studio/components/interfaces/Auth/OAuthApps/CreateOrUpdateOAuthAppSheet.tsx
index 716622816d9..048d30834a5 100644
--- a/apps/studio/components/interfaces/Auth/OAuthApps/CreateOrUpdateOAuthAppSheet.tsx
+++ b/apps/studio/components/interfaces/Auth/OAuthApps/CreateOrUpdateOAuthAppSheet.tsx
@@ -329,7 +329,6 @@ export const CreateOrUpdateOAuthAppSheet = ({
/>
{projectRef ? (
<Button
- variant="default"
size="tiny"
icon={<Storage strokeWidth={1.5} />}
className="absolute right-1 top-1/2 h-6 w-6 -translate-y-1/2 justify-center overflow-hidden px-1 transition-all duration-150 group-hover:w-36 group-focus-within:w-36 [&_span]:hidden group-hover:[&_span]:block group-focus-within:[&_span]:block"
@@ -343,7 +342,6 @@ export const CreateOrUpdateOAuthAppSheet = ({
</div>
{field.value ? (
<Button
- variant="default"
size="tiny"
icon={<Trash2 size={12} />}
onClick={handleRemoveLogo}
@@ -408,7 +406,6 @@ export const CreateOrUpdateOAuthAppSheet = ({
/>
<Button
- variant="default"
onClick={handleRegenerateSecret}
className="w-min"
disabled={isRegenerating}
@@ -515,7 +512,7 @@ export const CreateOrUpdateOAuthAppSheet = ({
</Form>
</SheetSection>
<SheetFooter>
- <Button variant="default" disabled={isCreating || isUpdating} onClick={onClose}>
+ <Button disabled={isCreating || isUpdating} onClick={onClose}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
index 506b8007cf7..88699627728 100644
--- a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
+++ b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
@@ -241,7 +241,7 @@ export const OAuthAppsList = () => {
title="OAuth Server is disabled"
description="Enable OAuth Server to make your project act as an identity provider for third-party applications."
actions={
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${projectRef}/auth/oauth-server`}>OAuth Server Settings</Link>
</Button>
}
@@ -287,13 +287,7 @@ export const OAuthAppsList = () => {
onSaveFilters={setFilteredClientTypes}
/>
{hasActiveFilters && (
- <Button
- variant="default"
- size="tiny"
- className="px-1"
- icon={<X />}
- onClick={handleResetFilters}
- />
+ <Button size="tiny" className="px-1" icon={<X />} onClick={handleResetFilters} />
)}
</div>
<div className="flex items-center gap-x-2">
@@ -413,7 +407,7 @@ export const OAuthAppsList = () => {
<div className="absolute top-0 right-0 left-0 bottom-0 flex items-center justify-center border-l @[944px]:border-l-0">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" className="px-1" icon={<MoreVertical />} />
+ <Button className="px-1" icon={<MoreVertical />} />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-48">
<DropdownMenuItem
diff --git a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthServerSettingsForm.tsx b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthServerSettingsForm.tsx
index e296531688d..16e6609b680 100644
--- a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthServerSettingsForm.tsx
+++ b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthServerSettingsForm.tsx
@@ -353,7 +353,7 @@ export const OAuthServerSettingsForm = () => {
)}
<CardFooter className="justify-end space-x-2">
- <Button variant="default" onClick={() => form.reset()} disabled={isPending}>
+ <Button onClick={() => form.reset()} disabled={isPending}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx b/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx
index ec3c456d73d..402ccbe6c11 100644
--- a/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx
+++ b/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx
@@ -146,7 +146,6 @@ export const OverviewLearnMore = () => {
<Button
key={action.label}
className="inline-flex"
- variant="default"
icon={action.icon}
asChild
>
@@ -160,7 +159,6 @@ export const OverviewLearnMore = () => {
<Button
key={action.label}
onClick={action.onClick}
- variant="default"
className="inline-flex"
icon={action.icon}
>
diff --git a/apps/studio/components/interfaces/Auth/Passkeys/PasskeysSettingsForm.tsx b/apps/studio/components/interfaces/Auth/Passkeys/PasskeysSettingsForm.tsx
index dc6976ef429..57c0b36910f 100644
--- a/apps/studio/components/interfaces/Auth/Passkeys/PasskeysSettingsForm.tsx
+++ b/apps/studio/components/interfaces/Auth/Passkeys/PasskeysSettingsForm.tsx
@@ -298,7 +298,6 @@ export const PasskeysSettingsForm = () => {
<CardFooter className="justify-end space-x-2">
<Button
- variant="default"
onClick={() => form.reset(buildPasskeysFormValues(authConfig, project))}
disabled={isPending}
>
diff --git a/apps/studio/components/interfaces/Auth/PerformanceSettingsForm.tsx b/apps/studio/components/interfaces/Auth/PerformanceSettingsForm.tsx
index cf8bf6df0a2..37878d70cf8 100644
--- a/apps/studio/components/interfaces/Auth/PerformanceSettingsForm.tsx
+++ b/apps/studio/components/interfaces/Auth/PerformanceSettingsForm.tsx
@@ -267,9 +267,7 @@ export const PerformanceSettingsForm = () => {
<CardFooter className="justify-end space-x-2">
{requestDurationForm.formState.isDirty && (
- <Button variant="default" onClick={() => requestDurationForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => requestDurationForm.reset()}>Cancel</Button>
)}
<Button
variant={promptUpgrade ? 'default' : 'primary'}
@@ -411,9 +409,7 @@ export const PerformanceSettingsForm = () => {
<CardFooter className="justify-end space-x-2">
{databaseForm.formState.isDirty && (
- <Button variant="default" onClick={() => databaseForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => databaseForm.reset()}>Cancel</Button>
)}
<Button
variant={promptUpgrade ? 'default' : 'primary'}
diff --git a/apps/studio/components/interfaces/Auth/ProtectionAuthSettingsForm/ProtectionAuthSettingsForm.tsx b/apps/studio/components/interfaces/Auth/ProtectionAuthSettingsForm/ProtectionAuthSettingsForm.tsx
index e7f87c98a56..9ecf4b68a64 100644
--- a/apps/studio/components/interfaces/Auth/ProtectionAuthSettingsForm/ProtectionAuthSettingsForm.tsx
+++ b/apps/studio/components/interfaces/Auth/ProtectionAuthSettingsForm/ProtectionAuthSettingsForm.tsx
@@ -284,7 +284,7 @@ export const ProtectionAuthSettingsForm = () => {
{field.value ? 'Enabled' : 'Disabled'}
</Badge>
<Link href={`/project/${projectRef}/auth/providers?provider=Email`}>
- <Button variant="default">Configure in email provider</Button>
+ <Button>Configure in email provider</Button>
</Link>
</div>
</FormItemLayout>
@@ -293,11 +293,7 @@ export const ProtectionAuthSettingsForm = () => {
</CardContent>
<CardFooter className="justify-end space-x-2">
- {isDirty && (
- <Button variant="default" onClick={() => protectionForm.reset()}>
- Cancel
- </Button>
- )}
+ {isDirty && <Button onClick={() => protectionForm.reset()}>Cancel</Button>}
<Button
variant="primary"
type="submit"
diff --git a/apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx b/apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx
index f1933722516..4679d8b0e20 100644
--- a/apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx
+++ b/apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx
@@ -270,7 +270,7 @@ export const RateLimits = () => {
Enable email-based logins to update this rate limit
</p>
<div className="mt-3">
- <Button asChild variant="default" size="tiny">
+ <Button asChild size="tiny">
<Link href={`/project/${projectRef}/auth/providers`}>
View auth providers
</Link>
@@ -289,12 +289,12 @@ export const RateLimits = () => {
your email rate limit
</p>
<div className="mt-3 flex gap-2">
- <Button asChild variant="default" size="tiny">
+ <Button asChild size="tiny">
<Link href={`/project/${projectRef}/auth/smtp`}>
View SMTP settings
</Link>
</Button>
- <Button asChild variant="default" size="tiny">
+ <Button asChild size="tiny">
<Link href={`/project/${projectRef}/auth/hooks`}>
View hooks
</Link>
@@ -345,7 +345,7 @@ export const RateLimits = () => {
Enable phone-based logins to update this rate limit
</p>
<div className="mt-3">
- <Button asChild variant="default" size="tiny">
+ <Button asChild size="tiny">
<Link href={`/project/${projectRef}/auth/providers`}>
View auth providers
</Link>
@@ -488,7 +488,7 @@ export const RateLimits = () => {
control this rate limit.
</p>
<div className="mt-3">
- <Button asChild variant="default" size="tiny">
+ <Button asChild size="tiny">
<Link href={`/project/${projectRef}/auth/providers`}>
View auth settings
</Link>
@@ -583,7 +583,7 @@ export const RateLimits = () => {
control this rate limit.
</p>
<div className="mt-3">
- <Button asChild variant="default" size="tiny">
+ <Button asChild size="tiny">
<Link href={`/project/${projectRef}/auth/providers`}>
View Auth provider settings
</Link>
@@ -599,9 +599,7 @@ export const RateLimits = () => {
<CardFooter className="justify-end space-x-2">
{rateLimitForm.formState.isDirty && (
- <Button variant="default" onClick={() => rateLimitForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => rateLimitForm.reset()}>Cancel</Button>
)}
<Button
variant="primary"
@@ -664,9 +662,7 @@ export const RateLimits = () => {
</CardContent>
<CardFooter className="justify-end space-x-2">
{ipForwardingForm.formState.isDirty && (
- <Button variant="default" onClick={() => ipForwardingForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => ipForwardingForm.reset()}>Cancel</Button>
)}
<Button
variant="primary"
diff --git a/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx b/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
index c7ba9e0c434..91d0fe80697 100644
--- a/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
+++ b/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
@@ -68,11 +68,8 @@ export const RedirectUrlList = ({
<ValueContainer className="py-3 flex items-center justify-end">
{selectedUrls.length > 0 ? (
<div className="flex items-center gap-x-2">
- <Button variant="default" onClick={() => onSelectClearSelection()}>
- Clear selection
- </Button>
+ <Button onClick={() => onSelectClearSelection()}>Clear selection</Button>
<ButtonTooltip
- variant="default"
disabled={!canUpdateConfig}
tooltip={{
content: {
diff --git a/apps/studio/components/interfaces/Auth/SessionsAuthSettingsForm/SessionsAuthSettingsForm.tsx b/apps/studio/components/interfaces/Auth/SessionsAuthSettingsForm/SessionsAuthSettingsForm.tsx
index a312551064b..e0c84aa5ff8 100644
--- a/apps/studio/components/interfaces/Auth/SessionsAuthSettingsForm/SessionsAuthSettingsForm.tsx
+++ b/apps/studio/components/interfaces/Auth/SessionsAuthSettingsForm/SessionsAuthSettingsForm.tsx
@@ -364,9 +364,7 @@ export const SessionsAuthSettingsForm = () => {
<CardFooter className="justify-end space-x-2">
{userSessionsForm.formState.isDirty && (
- <Button variant="default" onClick={() => userSessionsForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => userSessionsForm.reset()}>Cancel</Button>
)}
<Button
variant={promptProPlanUpgrade ? 'default' : 'primary'}
@@ -429,9 +427,7 @@ export const SessionsAuthSettingsForm = () => {
</CardContent>
<CardFooter className="justify-end space-x-2">
{accessTokenForm.formState.isDirty && (
- <Button variant="default" onClick={() => accessTokenForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => accessTokenForm.reset()}>Cancel</Button>
)}
<Button
variant="primary"
@@ -515,9 +511,7 @@ export const SessionsAuthSettingsForm = () => {
</CardContent>
<CardFooter className="justify-end space-x-2">
{refreshTokenForm.formState.isDirty && (
- <Button variant="default" onClick={() => refreshTokenForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => refreshTokenForm.reset()}>Cancel</Button>
)}
<Button
variant="primary"
diff --git a/apps/studio/components/interfaces/Auth/SiteUrl/SiteUrl.tsx b/apps/studio/components/interfaces/Auth/SiteUrl/SiteUrl.tsx
index b4c0d5d6298..13bcdf74ec3 100644
--- a/apps/studio/components/interfaces/Auth/SiteUrl/SiteUrl.tsx
+++ b/apps/studio/components/interfaces/Auth/SiteUrl/SiteUrl.tsx
@@ -125,11 +125,7 @@ const SiteUrl = () => {
</CardContent>
<CardFooter className="justify-end space-x-2">
- {isDirty && (
- <Button variant="default" onClick={() => siteUrlForm.reset()}>
- Cancel
- </Button>
- )}
+ {isDirty && <Button onClick={() => siteUrlForm.reset()}>Cancel</Button>}
<Button
variant="primary"
type="submit"
diff --git a/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx b/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx
index bf02a2f7d03..4984ad5ea8a 100644
--- a/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx
+++ b/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx
@@ -509,7 +509,6 @@ export const SmtpForm = () => {
<div className="flex items-center gap-x-2">
{isDirty && (
<Button
- variant="default"
onClick={() => {
form.reset()
}}
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAuth0Dialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAuth0Dialog.tsx
index 763ba9f203d..177058784fb 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAuth0Dialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAuth0Dialog.tsx
@@ -132,7 +132,6 @@ export const CreateAuth0IntegrationDialog = ({
<FormItemLayout label="Auth0 domain name">
<div className="flex flex-row">
<Button
- variant="default"
size="small"
className="px-2 text-foreground-light rounded-r-none"
onClick={() => form.setFocus('auth0DomainName')}
@@ -143,7 +142,6 @@ export const CreateAuth0IntegrationDialog = ({
<Input className="border-l-0 rounded-none border-r-0 z-50" {...field} />
</FormControl>
<Button
- variant="default"
size="small"
className="px-2 text-foreground-light rounded-l-none"
onClick={() => form.setFocus('auth0DomainName')}
@@ -166,7 +164,7 @@ export const CreateAuth0IntegrationDialog = ({
</div>
)}
- <Button disabled={isPending} variant="default" onClick={() => onClose()}>
+ <Button disabled={isPending} onClick={() => onClose()}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAwsCognitoAuthDialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAwsCognitoAuthDialog.tsx
index 0f31fe44525..f3031ec7631 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAwsCognitoAuthDialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAwsCognitoAuthDialog.tsx
@@ -144,7 +144,6 @@ export const CreateAwsCognitoAuthIntegrationDialog = ({
<FormItemLayout label="Amazon Cognito User Pool ID">
<div className="flex flex-row">
<Button
- variant="default"
size="small"
className="px-2 text-foreground-light rounded-r-none"
onClick={() => form.setFocus('awsCognitoUserPoolId')}
@@ -179,7 +178,7 @@ export const CreateAwsCognitoAuthIntegrationDialog = ({
</div>
)}
- <Button disabled={isPending} variant="default" onClick={() => onClose()}>
+ <Button disabled={isPending} onClick={() => onClose()}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateClerkAuthDialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateClerkAuthDialog.tsx
index 110f923b6ed..190f06f71d4 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateClerkAuthDialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateClerkAuthDialog.tsx
@@ -136,7 +136,7 @@ export const CreateClerkAuthIntegrationDialog = ({
</Form>
</DialogSection>
<DialogFooter>
- <Button disabled={isPending} variant="default" onClick={() => onClose()}>
+ <Button disabled={isPending} onClick={() => onClose()}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateFirebaseAuthDialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateFirebaseAuthDialog.tsx
index c748bf16686..87ef8a68873 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateFirebaseAuthDialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateFirebaseAuthDialog.tsx
@@ -151,7 +151,7 @@ export const CreateFirebaseAuthIntegrationDialog = ({
</div>
)}
- <Button disabled={isPending} variant="default" onClick={() => onClose()}>
+ <Button disabled={isPending} onClick={() => onClose()}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateWorkOSDialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateWorkOSDialog.tsx
index 20c51e4bb98..018123e4b25 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateWorkOSDialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateWorkOSDialog.tsx
@@ -160,7 +160,7 @@ export const CreateWorkOSIntegrationDialog = ({
</div>
)}
- <Button disabled={isPending} variant="default" onClick={() => onClose()}>
+ <Button disabled={isPending} onClick={() => onClose()}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Auth/Users/BanUserModal.tsx b/apps/studio/components/interfaces/Auth/Users/BanUserModal.tsx
index ddc0b42d28a..541fe10f10a 100644
--- a/apps/studio/components/interfaces/Auth/Users/BanUserModal.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/BanUserModal.tsx
@@ -146,7 +146,7 @@ export const BanUserModal = ({ visible, user, onClose }: BanUserModalProps) => {
</div>
</DialogSection>
<DialogFooter>
- <Button variant="default" disabled={isBanningUser} onClick={() => onClose()}>
+ <Button disabled={isBanningUser} onClick={() => onClose()}>
Cancel
</Button>
<Button variant="warning" type="submit" loading={isBanningUser}>
diff --git a/apps/studio/components/interfaces/Auth/Users/InviteUserModal.tsx b/apps/studio/components/interfaces/Auth/Users/InviteUserModal.tsx
index 76f85b9f6df..a41303ad5b8 100644
--- a/apps/studio/components/interfaces/Auth/Users/InviteUserModal.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/InviteUserModal.tsx
@@ -91,9 +91,7 @@ const InviteUserModal = ({ visible, setVisible }: InviteUserModalProps) => {
</DialogSection>
<DialogFooter>
- <Button variant="default" onClick={handleToggle}>
- Cancel
- </Button>
+ <Button onClick={handleToggle}>Cancel</Button>
<Button
variant="primary"
form={formId}
diff --git a/apps/studio/components/interfaces/Auth/Users/SortDropdown.tsx b/apps/studio/components/interfaces/Auth/Users/SortDropdown.tsx
index 12614f426e6..216cf0232c6 100644
--- a/apps/studio/components/interfaces/Auth/Users/SortDropdown.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/SortDropdown.tsx
@@ -63,10 +63,7 @@ export const SortDropdown = ({
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button
- variant="default"
- icon={sortOrder === 'desc' ? <ArrowDownWideNarrow /> : <ArrowDownNarrowWide />}
- >
+ <Button icon={sortOrder === 'desc' ? <ArrowDownWideNarrow /> : <ArrowDownNarrowWide />}>
Sorted by {sortColumn === 'id' ? 'user ID' : sortColumn.replaceAll('_', ' ')}
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Auth/Users/UserLogs.tsx b/apps/studio/components/interfaces/Auth/Users/UserLogs.tsx
index 574f355de8e..fcfeba45cd8 100644
--- a/apps/studio/components/interfaces/Auth/Users/UserLogs.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UserLogs.tsx
@@ -63,7 +63,7 @@ export const UserLogs = ({ user }: UserLogsProps) => {
</p>
</div>
- <Button asChild variant="default" className="w-min">
+ <Button asChild className="w-min">
<Link
href={`/project/${ref}/logs/explorer?q=${encodeURIComponent(API_LOGS_QUERY(user.id ?? ''))}`}
>
@@ -109,7 +109,6 @@ export const UserLogs = ({ user }: UserLogsProps) => {
</Button>
</div>
<Button
- variant="default"
loading={isLoadingAuthLogs}
disabled={isLoadingAuthLogs}
icon={<RefreshCw />}
diff --git a/apps/studio/components/interfaces/Auth/Users/UserOverview.tsx b/apps/studio/components/interfaces/Auth/Users/UserOverview.tsx
index 1a4da14e9e0..59a1ebf0f8e 100644
--- a/apps/studio/components/interfaces/Auth/Users/UserOverview.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UserOverview.tsx
@@ -263,7 +263,7 @@ export const UserOverview = ({ user, onDeleteSuccess }: UserOverviewProps) => {
{providerName === 'SAML' ? 'SSO' : 'OAuth'}
</p>
{authenticationSignInProviders && (
- <Button asChild variant="default" className="mt-2">
+ <Button asChild className="mt-2">
<Link
href={`/project/${projectRef}/auth/providers?provider=${provider.name === 'SAML' ? 'SAML 2.0' : provider.name}`}
>
diff --git a/apps/studio/components/interfaces/Auth/Users/UsersV2.tsx b/apps/studio/components/interfaces/Auth/Users/UsersV2.tsx
index 55387ef9ade..ed8828dd3c7 100644
--- a/apps/studio/components/interfaces/Auth/Users/UsersV2.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UsersV2.tsx
@@ -551,7 +551,6 @@ export const UsersV2 = () => {
icon={<WandSparklesIcon />}
onClick={() => setShowCreateIndexesModal(true)}
loading={isUpdatingAuthConfig}
- variant="default"
>
Upgrade search
</Button>
@@ -584,11 +583,10 @@ export const UsersV2 = () => {
<div className="bg-surface-200 py-3 px-4 md:px-6 flex flex-col lg:flex-row lg:items-start justify-between gap-2">
{selectedUsers.size > 0 ? (
<div className="flex items-center gap-x-2">
- <Button variant="default" icon={<Trash />} onClick={() => setShowDeleteModal(true)}>
+ <Button icon={<Trash />} onClick={() => setShowDeleteModal(true)}>
Delete {selectedUsers.size} users
</Button>
<ButtonTooltip
- variant="default"
icon={<X />}
className="px-1.5"
onClick={() => setSelectedUsers(new Set([]))}
@@ -757,7 +755,6 @@ export const UsersV2 = () => {
<ButtonTooltip
size="tiny"
icon={<RefreshCw />}
- variant="default"
className="w-7"
loading={isRefetching && !isFetchingNextPage}
onClick={handleRefresh}
diff --git a/apps/studio/components/interfaces/Billing/Payment/AddPaymentMethodForm.tsx b/apps/studio/components/interfaces/Billing/Payment/AddPaymentMethodForm.tsx
index f859194cca2..d992bdb5868 100644
--- a/apps/studio/components/interfaces/Billing/Payment/AddPaymentMethodForm.tsx
+++ b/apps/studio/components/interfaces/Billing/Payment/AddPaymentMethodForm.tsx
@@ -235,14 +235,7 @@ const AddPaymentMethodForm = ({ onCancel, onConfirm }: AddPaymentMethodFormProps
</div>
</DialogSection>
<DialogFooter>
- <Button
- type="button"
- size="small"
- variant="default"
- onClick={onCancel}
- block
- disabled={isSaving}
- >
+ <Button type="button" size="small" onClick={onCancel} block disabled={isSaving}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/NewPaymentMethodElement.tsx b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/NewPaymentMethodElement.tsx
index 2aac6747753..50fbdf685ea 100644
--- a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/NewPaymentMethodElement.tsx
+++ b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/NewPaymentMethodElement.tsx
@@ -399,7 +399,6 @@ export const NewPaymentMethodElement = forwardRef(
<PopoverTrigger asChild>
<FormControl>
<Button
- variant="default"
role="combobox"
size="medium"
aria-expanded={showTaxIDsPopover}
diff --git a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/PaymentMethods.tsx b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/PaymentMethods.tsx
index 09ef0267878..ab387911a30 100644
--- a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/PaymentMethods.tsx
+++ b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/PaymentMethods.tsx
@@ -116,7 +116,6 @@ const PaymentMethods = () => {
<Button
asChild
key="stripe-projects-billing-docs"
- variant="default"
iconRight={<ExternalLink size={14} />}
>
<a
@@ -128,7 +127,7 @@ const PaymentMethods = () => {
</a>
</Button>
) : (
- <Button asChild key="payment-method-support" variant="default">
+ <Button asChild key="payment-method-support">
<SupportLink
queryParams={{
category: SupportCategories.BILLING,
@@ -154,7 +153,6 @@ const PaymentMethods = () => {
<div />
)}
<Button
- variant="default"
icon={<Plus />}
disabled={!canUpdatePaymentMethods}
onClick={() => setShowAddPaymentMethodModal(true)}
diff --git a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/StripePaymentConnection.tsx b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/StripePaymentConnection.tsx
index e4eb1b951f5..155d751b605 100644
--- a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/StripePaymentConnection.tsx
+++ b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/StripePaymentConnection.tsx
@@ -75,7 +75,7 @@ export function StripePaymentConnection({
</p>
)}
</div>
- <Button asChild variant="default" iconRight={<ExternalLink size={14} />}>
+ <Button asChild iconRight={<ExternalLink size={14} />}>
<a
href={`${STRIPE_PROJECTS_DOCS_URL}#manage-billing`}
target="_blank"
diff --git a/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx b/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx
index 0b1e7890e51..28f61b8745c 100644
--- a/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx
@@ -96,7 +96,6 @@ export const BranchRow = ({
{branch.git_branch && isGithubConnected && (
<ButtonTooltip
asChild
- variant="default"
className="px-1.5"
tooltip={{ content: { side: 'bottom', text: 'View branch on GitHub' } }}
>
diff --git a/apps/studio/components/interfaces/BranchManagement/ConnectToGitHub.tsx b/apps/studio/components/interfaces/BranchManagement/ConnectToGitHub.tsx
index d4256ee9e34..832cc59de31 100644
--- a/apps/studio/components/interfaces/BranchManagement/ConnectToGitHub.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/ConnectToGitHub.tsx
@@ -48,7 +48,7 @@ export const ConnectToGitHub = () => {
Keep this preview branch in sync with a chosen GitHub branch
</p>
</div>
- <Button variant="default" icon={<Github />} onClick={onClick}>
+ <Button icon={<Github />} onClick={onClick}>
{showAuthorizeCta ? 'Authorize' : 'Configure'}
</Button>
</div>
diff --git a/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx b/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
index d282a1e5eeb..8c437d60bef 100644
--- a/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
@@ -611,11 +611,7 @@ export const CreateBranchModal = () => {
</DialogSection>
<DialogFooter className="justify-end gap-2" padding="medium">
- <Button
- variant="default"
- disabled={isCreatingBranch}
- onClick={() => setShowCreateBranchModal(false)}
- >
+ <Button disabled={isCreatingBranch} onClick={() => setShowCreateBranchModal(false)}>
Cancel
</Button>
<ButtonTooltip
diff --git a/apps/studio/components/interfaces/BranchManagement/DatabaseDiffPanel.tsx b/apps/studio/components/interfaces/BranchManagement/DatabaseDiffPanel.tsx
index 3bf143f73c4..abcea9f4be7 100644
--- a/apps/studio/components/interfaces/BranchManagement/DatabaseDiffPanel.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/DatabaseDiffPanel.tsx
@@ -76,7 +76,6 @@ export const DatabaseDiffPanel = ({
</Link>
</CardTitle>
<Button
- variant="default"
size="tiny"
icon={<Download strokeWidth={1.5} size={14} className="text-foreground-light" />}
className="mt-0"
diff --git a/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx b/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx
index 7093a37fc52..eba2470dd65 100644
--- a/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx
@@ -311,7 +311,7 @@ export const EditBranchModal = ({ branch, visible, onClose }: EditBranchModalPro
</DialogSection>
<DialogFooter padding="medium">
- <Button disabled={isUpdating} variant="default" onClick={onClose}>
+ <Button disabled={isUpdating} onClick={onClose}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/BranchManagement/OutOfDateNotice.tsx b/apps/studio/components/interfaces/BranchManagement/OutOfDateNotice.tsx
index 493ae385d39..6662ea8253e 100644
--- a/apps/studio/components/interfaces/BranchManagement/OutOfDateNotice.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/OutOfDateNotice.tsx
@@ -92,7 +92,6 @@ export const OutOfDateNotice = ({
<AlertDialog open={isDialogOpen} onOpenChange={setIsDialogOpen}>
<AlertDialogTrigger asChild>
<Button
- variant="default"
loading={isPushing}
icon={<GitBranchIcon size={16} strokeWidth={1.5} />}
className="shrink-0"
@@ -120,7 +119,6 @@ export const OutOfDateNotice = ({
</AlertDialog>
) : (
<Button
- variant="default"
loading={isPushing}
onClick={() => handleUpdate()}
icon={<GitBranchIcon size={16} strokeWidth={1.5} />}
diff --git a/apps/studio/components/interfaces/BranchManagement/ReviewWithAI.tsx b/apps/studio/components/interfaces/BranchManagement/ReviewWithAI.tsx
index 5bd3321ebe9..84e424d73a7 100644
--- a/apps/studio/components/interfaces/BranchManagement/ReviewWithAI.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/ReviewWithAI.tsx
@@ -110,7 +110,6 @@ export const ReviewWithAI = ({
return (
<ButtonTooltip
- variant="default"
disabled={disabled || !currentBranch || !mainBranch}
className="px-1"
onClick={handleReviewWithAssistant}
diff --git a/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx b/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx
index 50118d69a6d..f15eea56966 100644
--- a/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx
@@ -70,7 +70,6 @@ export const WorkflowLogs = ({ branch }: WorkflowLogsProps) => {
<Dialog open={isOpen} onOpenChange={setIsOpen}>
<DialogTrigger asChild>
<Button
- variant="default"
icon={
showStatusIcon ? (
<StatusIcon variant={isUnhealthy ? 'destructive' : 'default'} hideBackground />
diff --git a/apps/studio/components/interfaces/Branching/MergeRequest.tsx b/apps/studio/components/interfaces/Branching/MergeRequest.tsx
index a1c1e2ae36b..d9ab6c604b5 100644
--- a/apps/studio/components/interfaces/Branching/MergeRequest.tsx
+++ b/apps/studio/components/interfaces/Branching/MergeRequest.tsx
@@ -212,12 +212,7 @@ export const MergeActions = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button
- variant="default"
- loading={isUpdating}
- className="px-1.5"
- icon={<MoreVertical />}
- />
+ <Button loading={isUpdating} className="px-1.5" icon={<MoreVertical />} />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-52">
<DropdownMenuItem
diff --git a/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceDetail.tsx b/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceDetail.tsx
index c43e275e63b..de4af2b45f3 100644
--- a/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceDetail.tsx
+++ b/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceDetail.tsx
@@ -78,7 +78,7 @@ export const ComputeInstanceDetail = () => {
<p className="text-sm text-foreground-light">
Instance "{instanceName}" does not exist in this project
</p>
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${projectRef}/compute`}>Back to {PRODUCT_NAME}</Link>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceLogsTab.tsx b/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceLogsTab.tsx
index 6698f9a2a87..1e97ee1b8c0 100644
--- a/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceLogsTab.tsx
+++ b/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceLogsTab.tsx
@@ -89,12 +89,7 @@ export const ComputeInstanceLogsTab = ({ instanceName, stream }: ComputeInstance
</InputGroupAddon>
</InputGroup>
</div>
- <Button
- variant="default"
- icon={<RefreshCw />}
- loading={isFetching}
- onClick={() => refetch()}
- >
+ <Button icon={<RefreshCw />} loading={isFetching} onClick={() => refetch()}>
Refresh
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Compute/ComputeList.tsx b/apps/studio/components/interfaces/Compute/ComputeList.tsx
index a6b9b2f86c3..a30978575ac 100644
--- a/apps/studio/components/interfaces/Compute/ComputeList.tsx
+++ b/apps/studio/components/interfaces/Compute/ComputeList.tsx
@@ -136,7 +136,7 @@ export const ComputeList = ({
</Select>
<div className="flex items-center gap-3 md:ml-auto">
- <Button variant="default" icon={<RefreshCw />} loading={isRefreshing} onClick={onRefresh}>
+ <Button icon={<RefreshCw />} loading={isRefreshing} onClick={onRefresh}>
Refresh
</Button>
<Button variant="primary" icon={<Terminal />} onClick={onDeploy}>
@@ -214,7 +214,6 @@ export const ComputeList = ({
<ButtonTooltip
icon={<ChevronLeft />}
aria-label="Previous page"
- variant="default"
size="tiny"
disabled={currentPage === 1}
onClick={() => setPage(currentPage - 1)}
@@ -231,7 +230,6 @@ export const ComputeList = ({
<ButtonTooltip
icon={<ChevronRight />}
aria-label="Next page"
- variant="default"
size="tiny"
disabled={currentPage >= totalPages}
onClick={() => setPage(currentPage + 1)}
diff --git a/apps/studio/components/interfaces/Compute/DeployComputeInstanceDialog.tsx b/apps/studio/components/interfaces/Compute/DeployComputeInstanceDialog.tsx
index a2a74fc8e35..1b59049452f 100644
--- a/apps/studio/components/interfaces/Compute/DeployComputeInstanceDialog.tsx
+++ b/apps/studio/components/interfaces/Compute/DeployComputeInstanceDialog.tsx
@@ -233,9 +233,7 @@ export const DeployComputeInstanceDialog = ({
</DialogSection>
<DialogFooter>
- <Button variant="default" onClick={() => onOpenChange(false)}>
- Cancel
- </Button>
+ <Button onClick={() => onOpenChange(false)}>Cancel</Button>
</DialogFooter>
</DialogContent>
</Dialog>
diff --git a/apps/studio/components/interfaces/ConfigDrift/ConfigurationDriftPage.tsx b/apps/studio/components/interfaces/ConfigDrift/ConfigurationDriftPage.tsx
index 435a18cdfb5..88d111ef4a0 100644
--- a/apps/studio/components/interfaces/ConfigDrift/ConfigurationDriftPage.tsx
+++ b/apps/studio/components/interfaces/ConfigDrift/ConfigurationDriftPage.tsx
@@ -148,7 +148,6 @@ function ConfigurationDriftItem({ row }: { row: ConfigurationDriftRow }) {
<Button
asChild
type="button"
- variant="default"
size="tiny"
className="w-full shrink-0 sm:w-auto"
icon={<ArrowRight className="h-3.5 w-3.5" />}
@@ -285,7 +284,7 @@ export function ConfigurationDriftPage() {
description="Refresh to compare the supported settings with the selected GitHub branch again."
error={error}
additionalActions={
- <Button variant="default" size="small" loading={isFetching} onClick={() => refetch()}>
+ <Button size="small" loading={isFetching} onClick={() => refetch()}>
Refresh
</Button>
}
diff --git a/apps/studio/components/interfaces/ConnectSheet/ConnectStepsSection.tsx b/apps/studio/components/interfaces/ConnectSheet/ConnectStepsSection.tsx
index 3ebdce75e04..c1dfb5acc5f 100644
--- a/apps/studio/components/interfaces/ConnectSheet/ConnectStepsSection.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/ConnectStepsSection.tsx
@@ -274,7 +274,7 @@ export function ConnectStepsSection({ steps, state, projectKeys }: ConnectStepsS
title="Database access requires the Data API"
description="Client library database queries will not work until the Data API is enabled."
actions={[
- <Button asChild key="enable" variant="default">
+ <Button asChild key="enable">
<Link href={`/project/${ref}/integrations/data_api`}>Enable Data API</Link>
</Button>,
]}
@@ -295,7 +295,7 @@ export function ConnectStepsSection({ steps, state, projectKeys }: ConnectStepsS
</>
}
actions={
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${ref}/settings/addons?panel=ipv4`}>Enable IPv4 add-on</Link>
</Button>
}
diff --git a/apps/studio/components/interfaces/ConnectSheet/CopyPromptAdmonition.tsx b/apps/studio/components/interfaces/ConnectSheet/CopyPromptAdmonition.tsx
index 4a522e3b6f1..e29ea2f0c23 100644
--- a/apps/studio/components/interfaces/ConnectSheet/CopyPromptAdmonition.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/CopyPromptAdmonition.tsx
@@ -136,7 +136,6 @@ export function CopyPromptButton({ stepsContainerRef, customPrompt }: CopyPrompt
return (
<ButtonTooltip
- variant="default"
icon={showCopied ? <Check strokeWidth={2} className="text-brand" /> : <Copy />}
onClick={() => {
const textToCopy = customPrompt ?? buildConnectPrompt(stepsContainerRef.current)
diff --git a/apps/studio/components/interfaces/ConnectSheet/WarehouseModePanel/WarehouseConnectionDetails.tsx b/apps/studio/components/interfaces/ConnectSheet/WarehouseModePanel/WarehouseConnectionDetails.tsx
index b17e2ecddb3..3c5e756ff88 100644
--- a/apps/studio/components/interfaces/ConnectSheet/WarehouseModePanel/WarehouseConnectionDetails.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/WarehouseModePanel/WarehouseConnectionDetails.tsx
@@ -143,13 +143,7 @@ export const WarehouseConnectionDetails = ({ onEditTables }: WarehouseConnection
<span className="text-sm text-foreground-light">
Same password as your primary database.
</span>
- <Button
- asChild
- variant="default"
- size="tiny"
- icon={<KeyRound size={14} />}
- className="ml-auto"
- >
+ <Button asChild size="tiny" icon={<KeyRound size={14} />} className="ml-auto">
<Link href={`/project/${projectRef}/settings/database`}>Reset database password</Link>
</Button>
</div>
@@ -193,7 +187,6 @@ export const WarehouseConnectionDetails = ({ onEditTables }: WarehouseConnection
Enable catalog access to attach this project's Warehouse directly from DuckDB.
</p>
<Button
- variant="default"
className="ml-auto shrink-0"
loading={catalogMutation.isPending}
onClick={() => catalogMutation.mutate({ projectRef, body: { enabled: true } })}
diff --git a/apps/studio/components/interfaces/ConnectSheet/WarehouseModePanel/WarehouseModePanel.tsx b/apps/studio/components/interfaces/ConnectSheet/WarehouseModePanel/WarehouseModePanel.tsx
index 25c3eab8f4b..b1ae5ddc98d 100644
--- a/apps/studio/components/interfaces/ConnectSheet/WarehouseModePanel/WarehouseModePanel.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/WarehouseModePanel/WarehouseModePanel.tsx
@@ -105,11 +105,7 @@ export const WarehouseModePanel = () => {
}}
additionalActions={
retryTargets.length > 0 ? (
- <Button
- variant="default"
- loading={setupMutation.isPending}
- onClick={() => handleSetup(retryTargets)}
- >
+ <Button loading={setupMutation.isPending} onClick={() => handleSetup(retryTargets)}>
Retry
</Button>
) : undefined
diff --git a/apps/studio/components/interfaces/ConnectSheet/WarehouseModePanel/WarehouseSchemaTablePicker.tsx b/apps/studio/components/interfaces/ConnectSheet/WarehouseModePanel/WarehouseSchemaTablePicker.tsx
index 38bbafab68d..1b0fc5d2fb5 100644
--- a/apps/studio/components/interfaces/ConnectSheet/WarehouseModePanel/WarehouseSchemaTablePicker.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/WarehouseModePanel/WarehouseSchemaTablePicker.tsx
@@ -244,7 +244,7 @@ export const WarehouseSchemaTablePicker = ({
</span>
<div className="flex items-center gap-2">
{isEditing && (
- <Button variant="default" icon={<ArrowLeft size={14} />} onClick={onBack}>
+ <Button icon={<ArrowLeft size={14} />} onClick={onBack}>
Back
</Button>
)}
diff --git a/apps/studio/components/interfaces/ConnectSheet/content/server/common/SecretRow.tsx b/apps/studio/components/interfaces/ConnectSheet/content/server/common/SecretRow.tsx
index 62101a6f9a7..a2f36cf34cb 100644
--- a/apps/studio/components/interfaces/ConnectSheet/content/server/common/SecretRow.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/content/server/common/SecretRow.tsx
@@ -39,7 +39,6 @@ export function SecretEnvRow({ secret }: SecretEnvRowProps) {
<Tooltip>
<TooltipTrigger asChild>
<Button
- variant="default"
size="tiny"
className={cn('px-1.5', isDisabled && 'opacity-50')}
aria-label={secret.isRevealed ? 'Hide secret key' : 'Reveal secret key'}
diff --git a/apps/studio/components/interfaces/ConnectSheet/content/steps/direct-connection/IPv4StatusPanel.tsx b/apps/studio/components/interfaces/ConnectSheet/content/steps/direct-connection/IPv4StatusPanel.tsx
index 023a04ff1e8..669b048adad 100644
--- a/apps/studio/components/interfaces/ConnectSheet/content/steps/direct-connection/IPv4StatusPanel.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/content/steps/direct-connection/IPv4StatusPanel.tsx
@@ -105,7 +105,7 @@ export function IPv4StatusPanel({ method, ipv4Status, projectRef }: IPv4StatusPa
{links.length > 0 && (
<div className="flex items-center gap-x-2 mt-2">
{links.map((link) => (
- <Button key={link.text} asChild variant="default" size="tiny">
+ <Button key={link.text} asChild size="tiny">
<Link href={link.url} className="text-xs text-light hover:text-foreground">
{link.text}
</Link>
@@ -123,7 +123,6 @@ export function IPv4StatusPanel({ method, ipv4Status, projectRef }: IPv4StatusPa
className="group/collapse w-full justify-start rounded-t-none !last:rounded-b group-data-open:rounded-b-none border-muted"
>
<Button
- variant="default"
size="tiny"
className="text-foreground-lighter bg-dash-sidebar!"
icon={
diff --git a/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx b/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx
index b5a7c913c16..91adf38c2d2 100644
--- a/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx
@@ -61,7 +61,6 @@ export const BackupItem = ({
return (
<div className="flex space-x-4">
<ButtonTooltip
- variant="default"
disabled={!isHealthy || !canTriggerScheduledBackups || isHighAvailability}
onClick={onSelectBackup}
tooltip={{
@@ -76,7 +75,6 @@ export const BackupItem = ({
{!backup.isPhysicalBackup && (
<ButtonTooltip
- variant="default"
icon={<Download />}
loading={isDownloading}
disabled={!canTriggerScheduledBackups || isDownloading}
diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/PITRForm.tsx b/apps/studio/components/interfaces/Database/Backups/PITR/PITRForm.tsx
index fe4b5335070..7a55dd2552c 100644
--- a/apps/studio/components/interfaces/Database/Backups/PITR/PITRForm.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/PITR/PITRForm.tsx
@@ -108,7 +108,6 @@ export function PITRForm({
footer={
<div className="flex items-center justify-end gap-3 p-6">
<ButtonTooltip
- variant="default"
disabled={disabled || !selectedDate || !isWithinRange}
onClick={handleSubmit}
tooltip={{
diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx b/apps/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx
index a0c585ec19d..c31c5fa9dac 100644
--- a/apps/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx
@@ -30,7 +30,6 @@ export const PITRNotice = () => {
<ButtonTooltip
asChild
disabled={!canUpdateSubscription}
- variant="default"
tooltip={{
content: {
side: 'bottom',
diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx b/apps/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
index 13533dd1844..2721d07f7f0 100644
--- a/apps/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
@@ -100,7 +100,7 @@ export const PITRSelection = () => {
settings prior to starting a PITR restore.
</AlertDescription>
<div className="flex items-center gap-x-2 mt-2">
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${ref}/database/replication`}>Manage read replicas</Link>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx
index 12dfd152aad..c68bdb20ef1 100644
--- a/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx
+++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx
@@ -191,12 +191,7 @@ const CreateEnumeratedTypeSidePanel = ({
You will need to delete and recreate the enumerated type with the updated values
instead.
</p>
- <Button
- asChild
- variant="default"
- icon={<ExternalLink strokeWidth={1.5} />}
- className="mt-2"
- >
+ <Button asChild icon={<ExternalLink strokeWidth={1.5} />} className="mt-2">
<Link
href="https://www.postgresql.org/message-id/21012.1459434338%40sss.pgh.pa.us"
target="_blank"
@@ -228,15 +223,11 @@ const CreateEnumeratedTypeSidePanel = ({
</DndContext>
</div>
- <Button
- variant="default"
- icon={<Plus strokeWidth={1.5} />}
- onClick={() => append({ value: '' })}
- >
+ <Button icon={<Plus strokeWidth={1.5} />} onClick={() => append({ value: '' })}>
Add value
</Button>
- <Button ref={submitRef} type="submit" variant="default" className="hidden">
+ <Button ref={submitRef} type="submit" className="hidden">
Update
</Button>
</form>
diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/EditEnumeratedTypeSidePanel.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/EditEnumeratedTypeSidePanel.tsx
index a77c22ddb72..dfb3f2a0843 100644
--- a/apps/studio/components/interfaces/Database/EnumeratedTypes/EditEnumeratedTypeSidePanel.tsx
+++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/EditEnumeratedTypeSidePanel.tsx
@@ -226,12 +226,7 @@ const EditEnumeratedTypeSidePanel = ({
You will need to delete and recreate the enumerated type with the updated values
instead.
</p>
- <Button
- asChild
- variant="default"
- icon={<ExternalLink strokeWidth={1.5} />}
- className="mt-2"
- >
+ <Button asChild icon={<ExternalLink strokeWidth={1.5} />} className="mt-2">
<Link
href="https://www.postgresql.org/message-id/21012.1459434338%40sss.pgh.pa.us"
target="_blank"
@@ -264,14 +259,13 @@ const EditEnumeratedTypeSidePanel = ({
</div>
<Button
- variant="default"
icon={<Plus strokeWidth={1.5} />}
onClick={() => append({ isNew: true, originalValue: '', updatedValue: '' })}
>
Add value
</Button>
- <Button ref={submitRef} type="submit" variant="default" className="hidden">
+ <Button ref={submitRef} type="submit" className="hidden">
Update
</Button>
</form>
diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx
index ab4f843df76..f4a5dbdead1 100644
--- a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx
+++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx
@@ -72,7 +72,6 @@ const EnumeratedTypeValueRow = <TFieldValues extends FieldValues>({
<Tooltip>
<TooltipTrigger asChild>
<Button
- variant="default"
size="small"
disabled={isDisabled}
icon={<Trash strokeWidth={1.5} size={16} />}
diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx
index 0113fd47257..b0054b670d9 100644
--- a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx
+++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx
@@ -242,7 +242,6 @@ export const EnumeratedTypes = () => {
<TooltipTrigger asChild>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
className="px-1"
icon={<MoreVertical />}
aria-label={`${type.name} actions`}
diff --git a/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx b/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx
index a0d99194436..c114c804d11 100644
--- a/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx
+++ b/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx
@@ -254,7 +254,7 @@ export const EnableExtensionModal = ({
</DialogSection>
<DialogFooter>
- <Button variant="default" disabled={isEnabling} onClick={() => onCancel()}>
+ <Button disabled={isEnabling} onClick={() => onCancel()}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Database/Extensions/ExtensionRow.tsx b/apps/studio/components/interfaces/Database/Extensions/ExtensionRow.tsx
index f8df8b39561..efef982bf33 100644
--- a/apps/studio/components/interfaces/Database/Extensions/ExtensionRow.tsx
+++ b/apps/studio/components/interfaces/Database/Extensions/ExtensionRow.tsx
@@ -122,7 +122,7 @@ export const ExtensionRow = ({ extension }: ExtensionRowProps) => {
<TableCell>
<div className="flex gap-2 items-center">
{extensionMeta?.github_url && (
- <Button asChild variant="default" icon={<Github />} className="rounded-full">
+ <Button asChild icon={<Github />} className="rounded-full">
<a
target="_blank"
rel="noreferrer"
@@ -134,7 +134,7 @@ export const ExtensionRow = ({ extension }: ExtensionRowProps) => {
</Button>
)}
{docsUrl !== undefined && (
- <Button asChild variant="default" icon={<Book />} className="rounded-full">
+ <Button asChild icon={<Book />} className="rounded-full">
<a
target="_blank"
rel="noreferrer"
diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
index 38f12a81492..14d1c72a62c 100644
--- a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
@@ -451,7 +451,7 @@ export const CreateFunction = ({
</form>
</Form>
<SheetFooter>
- <Button disabled={isCreating || isUpdating} variant="default" onClick={confirmOnClose}>
+ <Button disabled={isCreating || isUpdating} onClick={confirmOnClose}>
Cancel
</Button>
<Button
@@ -543,7 +543,6 @@ const FormFieldArgs = ({ readonly }: FormFieldConfigParamsProps) => {
<Tooltip>
<TooltipTrigger asChild>
<Button
- variant="default"
icon={<Trash size={12} />}
onClick={() => remove(index)}
className="h-[34px] w-[34px]"
@@ -561,7 +560,6 @@ const FormFieldArgs = ({ readonly }: FormFieldConfigParamsProps) => {
{!readonly && (
<Button
- variant="default"
icon={<Plus size={12} />}
onClick={() => append({ name: '', type: 'integer' })}
disabled={readonly}
diff --git a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
index dd9e837282f..bbecee321e8 100644
--- a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
@@ -168,7 +168,6 @@ export const FunctionList = ({
<DropdownMenuTrigger asChild>
<Button
aria-label={`${x.name} actions`}
- variant="default"
className="px-1"
icon={<MoreVertical />}
/>
@@ -247,7 +246,6 @@ export const FunctionList = ({
) : (
<ButtonTooltip
disabled
- variant="default"
icon={<MoreVertical />}
className="px-1"
tooltip={{
diff --git a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
index d91bbab1f40..11621549b18 100644
--- a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
@@ -304,7 +304,6 @@ export const FunctionsList = () => {
<>
<CreateFunctionButton createFunction={createFunction} />
<ButtonTooltip
- variant="default"
disabled={!canCreateFunctions}
className="px-1 pointer-events-auto"
icon={<AiIconAnimation size={16} />}
diff --git a/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx b/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx
index aae54a2bf15..8a2f9e9d688 100644
--- a/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx
+++ b/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx
@@ -301,13 +301,7 @@ export const EditHookPanel = () => {
onCancel={confirmOnClose}
customFooter={
<div className="flex w-full justify-end space-x-3 border-t border-default px-3 py-4">
- <Button
- size="tiny"
- variant="default"
- type="button"
- onClick={confirmOnClose}
- disabled={isSubmitting}
- >
+ <Button size="tiny" type="button" onClick={confirmOnClose} disabled={isSubmitting}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx b/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
index 11cc3e43f7f..356b0fbd423 100644
--- a/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
+++ b/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
@@ -104,7 +104,6 @@ export const HookList = ({ schema, filterString }: HookListProps) => {
<TooltipTrigger asChild>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
className="px-1"
icon={<MoreVertical />}
aria-label={`${x.name} actions`}
@@ -139,7 +138,6 @@ export const HookList = ({ schema, filterString }: HookListProps) => {
) : (
<ButtonTooltip
disabled
- variant="default"
className="px-1"
icon={<MoreVertical />}
tooltip={{
diff --git a/apps/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx b/apps/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx
index 954f42ac690..7ba68763b37 100644
--- a/apps/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx
+++ b/apps/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx
@@ -210,7 +210,6 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp
<FormControl className="col-span-6">
<PopoverTrigger asChild>
<Button
- variant="default"
size={'medium'}
className={`w-full [&>span]:w-full text-left`}
iconRight={
@@ -306,7 +305,6 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp
disabled={isSelectEntityDisabled || isLoadingEntities}
>
<Button
- variant="default"
size="medium"
className={cn(
'w-full [&>span]:w-full text-left',
@@ -512,7 +510,7 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp
<SheetSection>
<div className="flex items-center justify-between">
<p className="text-sm">Preview of SQL statement</p>
- <Button asChild variant="default">
+ <Button asChild>
<Link
href={
project !== undefined
@@ -544,7 +542,6 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp
</Form>
<SheetFooter>
<Button
- variant="default"
disabled={isExecuting}
onClick={() => {
form.reset()
diff --git a/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx b/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx
index 86958d4846c..ca4e967ed42 100644
--- a/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx
+++ b/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx
@@ -263,7 +263,7 @@ export const Indexes = () => {
</TableCell>
<TableCell>
<div className="flex justify-end items-center space-x-2">
- <Button variant="default" onClick={() => setEditIndexId(index.name)}>
+ <Button onClick={() => setEditIndexId(index.name)}>
View definition
</Button>
{!isSchemaLocked && (
diff --git a/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx b/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx
index 7c29d537f9d..528ea2b7484 100644
--- a/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx
+++ b/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx
@@ -91,7 +91,7 @@ export const Migrations = () => {
</>
}
>
- <Button key="contact-support" asChild variant="default">
+ <Button key="contact-support" asChild>
<SupportLink
queryParams={{
projectRef: project?.ref,
@@ -176,10 +176,7 @@ export const Migrations = () => {
</Tooltip>
</TableCell>
<TableCell align="right">
- <Button
- variant="default"
- onClick={() => setSelectedMigration(migration)}
- >
+ <Button onClick={() => setSelectedMigration(migration)}>
View migration SQL
</Button>
</TableCell>
@@ -212,9 +209,7 @@ export const Migrations = () => {
onCancel={() => setSelectedMigration(undefined)}
customFooter={
<div className="flex items-center justify-end p-4 border-t border-overlay-border">
- <Button variant="default" onClick={() => setSelectedMigration(undefined)}>
- Close
- </Button>
+ <Button onClick={() => setSelectedMigration(undefined)}>Close</Button>
</div>
}
>
diff --git a/apps/studio/components/interfaces/Database/Policies/Policies.tsx b/apps/studio/components/interfaces/Database/Policies/Policies.tsx
index e260bd4382e..d948d4254d5 100644
--- a/apps/studio/components/interfaces/Database/Policies/Policies.tsx
+++ b/apps/studio/components/interfaces/Database/Policies/Policies.tsx
@@ -142,7 +142,7 @@ export const Policies = ({
RLS Policies control per-user access to table rows. Create a table in this schema first
before creating a policy.
</p>
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${ref}/editor`}>Create a table</Link>
</Button>
</CardContent>
diff --git a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx
index a590b3ad327..892522ff53d 100644
--- a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx
+++ b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx
@@ -157,7 +157,6 @@ export const PolicyDetailsV2 = ({
<Popover open={open} onOpenChange={setOpen} modal={false}>
<PopoverTrigger asChild>
<Button
- variant="default"
disabled={!canUpdatePolicies}
className="w-full [&>span]:w-full h-[38px] text-sm"
iconRight={
diff --git a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/index.tsx b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/index.tsx
index 8e5799848e6..667381d9114 100644
--- a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/index.tsx
+++ b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/index.tsx
@@ -536,11 +536,7 @@ export const PolicyEditorPanel = memo(function ({
<QueryError error={error} open={errorPanelOpen} setOpen={setErrorPanelOpen} />
)}
<SheetFooter className="flex items-center justify-end! px-5 py-4 w-full border-t">
- <Button
- variant="default"
- disabled={isExecuting || isUpdating}
- onClick={confirmOnClose}
- >
+ <Button disabled={isExecuting || isUpdating} onClick={confirmOnClose}>
Cancel
</Button>
diff --git a/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyRow.tsx b/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyRow.tsx
index f9b6338a511..c6018920cb8 100644
--- a/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyRow.tsx
+++ b/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyRow.tsx
@@ -125,7 +125,6 @@ export const PolicyRow = ({
<TooltipTrigger asChild>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
className="px-1.5"
icon={<MoreVertical />}
data-testid={`policy-${policy.name}-actions-button`}
diff --git a/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyTableRowHeader.tsx b/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyTableRowHeader.tsx
index 36ef1d8dc4d..f81e94c23d4 100644
--- a/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyTableRowHeader.tsx
+++ b/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyTableRowHeader.tsx
@@ -82,7 +82,6 @@ export const PolicyTableRowHeader = ({
<div className="flex flex-row justify-end gap-x-2">
{!isRealtimeMessagesTable && (
<ButtonTooltip
- variant="default"
disabled={!canToggleRLS}
onClick={() => onSelectToggleRLS(table)}
data-testid={`${table.name}-toggle-rls`}
@@ -99,7 +98,6 @@ export const PolicyTableRowHeader = ({
</ButtonTooltip>
)}
<ButtonTooltip
- variant="default"
disabled={!canToggleRLS || !canCreatePolicies}
onClick={() => onSelectCreatePolicy(table)}
data-testid={`${table.name}-create-policy`}
@@ -118,7 +116,6 @@ export const PolicyTableRowHeader = ({
</ButtonTooltip>
<ButtonTooltip
- variant="default"
className="px-1"
onClick={() => {
openSidebar(SIDEBAR_KEYS.AI_ASSISTANT)
diff --git a/apps/studio/components/interfaces/Database/Privileges/PrivilegesHead.tsx b/apps/studio/components/interfaces/Database/Privileges/PrivilegesHead.tsx
index 32b20038a7c..128cf8b8b2f 100644
--- a/apps/studio/components/interfaces/Database/Privileges/PrivilegesHead.tsx
+++ b/apps/studio/components/interfaces/Database/Privileges/PrivilegesHead.tsx
@@ -55,12 +55,7 @@ const PrivilegesHead = ({
</div>
<div className="flex items-center gap-2">
- <Button
- variant="default"
- size="tiny"
- onClick={resetChanges}
- disabled={!hasChanges || isApplyingChanges}
- >
+ <Button size="tiny" onClick={resetChanges} disabled={!hasChanges || isApplyingChanges}>
Reset
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Database/ProtectedSchemaWarning.tsx b/apps/studio/components/interfaces/Database/ProtectedSchemaWarning.tsx
index 1f8b0b7bfc6..a8ddb5f4bea 100644
--- a/apps/studio/components/interfaces/Database/ProtectedSchemaWarning.tsx
+++ b/apps/studio/components/interfaces/Database/ProtectedSchemaWarning.tsx
@@ -44,9 +44,7 @@ export const ProtectedSchemaDialog = ({ onClose }: { onClose: () => void }) => {
</DialogSection>
<DialogFooter>
<div className="flex items-center justify-end space-x-2">
- <Button variant="default" onClick={onClose}>
- Understood
- </Button>
+ <Button onClick={onClose}>Understood</Button>
</div>
</DialogFooter>
</>
@@ -100,7 +98,7 @@ export const ProtectedSchemaWarning = ({
showLearnMoreDialog && (
<Dialog open={showModal} onOpenChange={setShowModal}>
<DialogTrigger asChild>
- <Button variant="default" size="tiny" onClick={() => setShowModal(true)}>
+ <Button size="tiny" onClick={() => setShowModal(true)}>
Learn more
</Button>
</DialogTrigger>
diff --git a/apps/studio/components/interfaces/Database/Publications/PublicationsList.tsx b/apps/studio/components/interfaces/Database/Publications/PublicationsList.tsx
index 56e36575c72..d77d1170a75 100644
--- a/apps/studio/components/interfaces/Database/Publications/PublicationsList.tsx
+++ b/apps/studio/components/interfaces/Database/Publications/PublicationsList.tsx
@@ -218,11 +218,7 @@ export const PublicationsList = () => {
))}
<TableCell>
<div className="flex justify-end">
- <Button
- asChild
- variant="default"
- style={{ paddingTop: 3, paddingBottom: 3 }}
- >
+ <Button asChild style={{ paddingTop: 3, paddingBottom: 3 }}>
<Link href={`/project/${ref}/database/publications/${x.id}`}>
{x.tables === null
? 'All tables'
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/AnalyticsBucket/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/AnalyticsBucket/Fields.tsx
index 06943c0636f..5e70348f9eb 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/AnalyticsBucket/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/AnalyticsBucket/Fields.tsx
@@ -298,7 +298,6 @@ export const AnalyticsBucketFields = ({
field.value ? (
<div className="flex items-center justify-center">
<Button
- variant="default"
className="w-7"
icon={showCatalogToken ? <Eye /> : <EyeOff />}
onClick={() => setShowCatalogToken(!showCatalogToken)}
@@ -413,7 +412,6 @@ export const AnalyticsBucketFields = ({
/>
</FormControl>
<Button
- variant="default"
icon={showSecretAccessKey ? <Eye /> : <EyeOff />}
className="w-7 absolute right-1 top-[4px]"
onClick={() => setShowSecretAccessKey(!showSecretAccessKey)}
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/Fields.tsx
index bb4e4397d95..ccbfa0c9691 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/Fields.tsx
@@ -173,7 +173,6 @@ export const BigQueryFields = ({
/>
<Button
type="button"
- variant="default"
size="tiny"
icon={<Upload size={14} />}
onClick={() => serviceAccountFileInputRef.current?.click()}
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ClickHouse/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ClickHouse/Fields.tsx
index 429f092eb53..decfb4b2da5 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ClickHouse/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ClickHouse/Fields.tsx
@@ -89,7 +89,6 @@ export const ClickHouseFields = ({
actions={
<div className="flex items-center justify-center">
<Button
- variant="default"
className="w-7"
title={showPassword ? 'Hide password' : 'Show password'}
aria-label={showPassword ? 'Hide password' : 'Show password'}
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx
index 27fba86dc62..874d3679df9 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx
@@ -313,7 +313,6 @@ const DuckLakeSupabaseFields = ({ form }: { form: UseFormReturn<DestinationPanel
</div>
<Button
type="button"
- variant="default"
icon={<Plus />}
disabled={!ducklakeStorageProjectRef}
onClick={() => setShowNewBucketDialog(true)}
@@ -345,7 +344,6 @@ const DuckLakeSupabaseFields = ({ form }: { form: UseFormReturn<DestinationPanel
<DialogFooter>
<Button
type="button"
- variant="default"
disabled={isCreatingBucket}
onClick={() => setShowNewBucketDialog(false)}
>
@@ -413,7 +411,6 @@ const DuckLakeCustomFields = ({
actions={
<div className="flex items-center justify-center">
<Button
- variant="default"
className="w-7"
icon={showCatalogUrl ? <Eye /> : <EyeOff />}
onClick={() => setShowCatalogUrl(!showCatalogUrl)}
@@ -525,7 +522,6 @@ const DuckLakeCustomFields = ({
/>
</FormControl>
<Button
- variant="default"
icon={showSecretAccessKey ? <Eye /> : <EyeOff />}
className="w-7 absolute right-6 top-[4px]"
onClick={() => setShowSecretAccessKey(!showSecretAccessKey)}
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/NewPublicationPanel.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/NewPublicationPanel.tsx
index 93467642768..18fc7e0eff1 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/NewPublicationPanel.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/NewPublicationPanel.tsx
@@ -220,7 +220,7 @@ export const NewPublicationPanel = ({ visible, onClose }: NewPublicationPanelPro
</Form>
</SheetSection>
<SheetFooter>
- <Button variant="default" disabled={isCreatingPublication} onClick={confirmOnClose}>
+ <Button disabled={isCreatingPublication} onClick={confirmOnClose}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/PipelineCostDialog.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/PipelineCostDialog.tsx
index 199b1d6ee85..fca6fb30bb0 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/PipelineCostDialog.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/PipelineCostDialog.tsx
@@ -269,7 +269,7 @@ export const PipelineCostDialog = ({
)}
<DialogFooter>
- <Button variant="default" disabled={isConfirming} onClick={() => onOpenChange(false)}>
+ <Button disabled={isConfirming} onClick={() => onOpenChange(false)}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/Snowflake/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/Snowflake/Fields.tsx
index 40ddcf20bce..01eaabf454f 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/Snowflake/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/Snowflake/Fields.tsx
@@ -171,7 +171,6 @@ export const SnowflakeFields = ({
actions={
<div className="flex items-center justify-center">
<Button
- variant="default"
className="w-7"
title={showPrivateKeyPassphrase ? 'Hide passphrase' : 'Show passphrase'}
aria-label={
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/index.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/index.tsx
index 6fca11fb346..20904aa4eb9 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/index.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/index.tsx
@@ -531,7 +531,7 @@ export const DestinationForm = ({
)}
</AnimatePresence>
<div className="flex items-center gap-x-2">
- <Button disabled={isSaving} variant="default" onClick={onCancel}>
+ <Button disabled={isSaving} onClick={onCancel}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/ReadReplicasMovedCallout.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/ReadReplicasMovedCallout.tsx
index ff8a6ea561f..fdb46db5422 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/ReadReplicasMovedCallout.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/ReadReplicasMovedCallout.tsx
@@ -31,7 +31,7 @@ export const ReadReplicasMovedCallout = ({ className }: { className?: string })
description="Manage read replicas on the Infrastructure page, alongside compute and disk."
actions={
<>
- <Button asChild variant="default" size="tiny">
+ <Button asChild size="tiny">
<Link href={getInfrastructurePath(projectRef)}>Go to Infrastructure</Link>
</Button>
<ButtonTooltip
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationRow.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationRow.tsx
index 8b687950546..a8498f19a8e 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationRow.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationRow.tsx
@@ -222,7 +222,7 @@ export const DestinationRow = ({ destinationId }: DestinationRowProps) => {
</TooltipContent>
</Tooltip>
)}
- <Button asChild variant="default" className="relative">
+ <Button asChild className="relative">
<Link href={`/project/${projectRef}/database/replication/${pipeline?.id}`}>
View pipeline
</Link>
diff --git a/apps/studio/components/interfaces/Database/Replication/Destinations.tsx b/apps/studio/components/interfaces/Database/Replication/Destinations.tsx
index 44ebfb4f35b..a37139e5f1e 100644
--- a/apps/studio/components/interfaces/Database/Replication/Destinations.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/Destinations.tsx
@@ -208,12 +208,7 @@ export const Destinations = () => {
<div className="flex items-center gap-x-2">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button
- aria-label="More actions"
- variant="default"
- icon={<MoreVertical />}
- className="px-1"
- />
+ <Button aria-label="More actions" icon={<MoreVertical />} className="px-1" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-52">
<DropdownMenuItem asChild>
@@ -243,7 +238,7 @@ export const Destinations = () => {
</DropdownMenuContent>
</DropdownMenu>
- <Button asChild variant="default" icon={<MessageSquare />}>
+ <Button asChild icon={<MessageSquare />}>
<a href={PIPELINES_FEEDBACK_URL} target="_blank" rel="noreferrer noopener">
Leave feedback
</a>
@@ -326,7 +321,6 @@ export const Destinations = () => {
description="Connect an external destination for analytics workloads."
>
<Button
- variant="default"
icon={<Plus />}
disabled={!newDestinationDefaultType}
onClick={openDestinationPanel}
diff --git a/apps/studio/components/interfaces/Database/Replication/EnablePipelinesCallout.tsx b/apps/studio/components/interfaces/Database/Replication/EnablePipelinesCallout.tsx
index 0c0eb4151bd..24a87ffc1fe 100644
--- a/apps/studio/components/interfaces/Database/Replication/EnablePipelinesCallout.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/EnablePipelinesCallout.tsx
@@ -101,7 +101,7 @@ export const EnablePipelinesModal = ({
</Admonition>
</DialogSection>
<DialogFooter>
- <Button variant="default" disabled={creatingTenantSource} onClick={() => setOpen(false)}>
+ <Button disabled={creatingTenantSource} onClick={() => setOpen(false)}>
Cancel
</Button>
{hasAccess ? (
diff --git a/apps/studio/components/interfaces/Database/Replication/ErrorDetailsDialog.tsx b/apps/studio/components/interfaces/Database/Replication/ErrorDetailsDialog.tsx
index c27dc77afd2..22f6f7a2782 100644
--- a/apps/studio/components/interfaces/Database/Replication/ErrorDetailsDialog.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/ErrorDetailsDialog.tsx
@@ -60,7 +60,7 @@ export const ErrorDetailsDialog = ({
</DialogSection>
<DialogFooter>
<DialogClose>
- <Button variant="default">Close</Button>
+ <Button>Close</Button>
</DialogClose>
</DialogFooter>
</DialogContent>
diff --git a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/ReplicationPipelineStatus.tsx b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/ReplicationPipelineStatus.tsx
index 8d1b9ed8111..623e4abb98f 100644
--- a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/ReplicationPipelineStatus.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/ReplicationPipelineStatus.tsx
@@ -290,7 +290,7 @@ export const ReplicationPipelineStatus = () => {
</Button>
)}
- <Button asChild variant="default">
+ <Button asChild>
<Link href={logsUrl}>View logs</Link>
</Button>
@@ -418,7 +418,6 @@ export const ReplicationPipelineStatus = () => {
<div className="flex items-center">
<Button
size="tiny"
- variant="default"
className="rounded-r-none hover:z-10 focus-visible:z-10 focus-visible:rounded-r-sm"
icon={<RotateCcw />}
disabled={isAnyRestartInProgress || showDisabledState || isPipelineError}
@@ -433,7 +432,6 @@ export const ReplicationPipelineStatus = () => {
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
aria-label="More restart options"
icon={<ChevronDown />}
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
diff --git a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/TableReplicationRow.tsx b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/TableReplicationRow.tsx
index 68135368a2b..9f2de762d7e 100644
--- a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/TableReplicationRow.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/TableReplicationRow.tsx
@@ -102,7 +102,6 @@ export const TableReplicationRow = ({
<Tooltip>
<TooltipTrigger asChild>
<Button
- variant="default"
className="w-7"
icon={<RotateCcw />}
disabled={showDisabledState || isRestarting || isAnyRestartInProgress}
diff --git a/apps/studio/components/interfaces/Database/Replication/RowMenu.tsx b/apps/studio/components/interfaces/Database/Replication/RowMenu.tsx
index 51a5faa3a4e..cbd772be0be 100644
--- a/apps/studio/components/interfaces/Database/Replication/RowMenu.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/RowMenu.tsx
@@ -153,7 +153,7 @@ export const RowMenu = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<div className="relative">
- <Button variant="default" className="px-1.5" icon={<MoreVertical />} />
+ <Button className="px-1.5" icon={<MoreVertical />} />
{hasUpdate && (
<span className="absolute -top-0.5 -right-0.5 h-2 w-2 bg-brand rounded-full" />
)}
diff --git a/apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx b/apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx
index 8b2b38a8b7a..f12ea302edf 100644
--- a/apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx
+++ b/apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx
@@ -278,7 +278,7 @@ export const RestoreToNewProject = () => {
The new project {(restoringClone?.target_project as any)?.name || ''} is currently
being created. You'll be able to restore again once the project is ready.
</p>
- <Button asChild variant="default" className="mt-2">
+ <Button asChild className="mt-2">
<Link href={`/project/${restoringClone?.target_project?.ref ?? '_'}`}>
Go to new project
</Link>
diff --git a/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx b/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx
index 21937060ab0..9271591d769 100644
--- a/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx
+++ b/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx
@@ -162,7 +162,6 @@ export const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps
<TooltipTrigger asChild>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
className="px-1"
icon={<MoreVertical />}
aria-label={`${role.name} actions`}
@@ -223,7 +222,7 @@ export const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps
</div>
{!disabled && (
<div className="py-4 flex items-center space-x-2 justify-end">
- <Button variant="default" disabled={!isDirty || isUpdating} onClick={() => reset()}>
+ <Button disabled={!isDirty || isUpdating} onClick={() => reset()}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Database/Schemas/FindTableSelector.tsx b/apps/studio/components/interfaces/Database/Schemas/FindTableSelector.tsx
index d679fd2c895..d5c040e9f51 100644
--- a/apps/studio/components/interfaces/Database/Schemas/FindTableSelector.tsx
+++ b/apps/studio/components/interfaces/Database/Schemas/FindTableSelector.tsx
@@ -75,7 +75,6 @@ export const FindTableSelector = forwardRef<HTMLDivElement, FindTableSelectorPro
<PopoverTrigger asChild>
<Button
size={size}
- variant="default"
disabled={disabled}
data-testid="find-table-selector"
icon={<Search size={14} strokeWidth={1.5} className="text-foreground-muted" />}
@@ -120,7 +119,6 @@ export const FindTableSelector = forwardRef<HTMLDivElement, FindTableSelectorPro
<Button
block
size="tiny"
- variant="default"
loading={isFetchingNextPage}
onClick={() => fetchNextPage()}
>
diff --git a/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx b/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
index b3fd498eed9..5861a26455c 100644
--- a/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
+++ b/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
@@ -432,7 +432,6 @@ export const SchemaGraph = () => {
<div className="flex items-center gap-x-2">
<div className="flex items-center gap-0">
<ButtonTooltip
- variant="default"
className="rounded-r-none hover:z-10 focus-visible:z-10 focus-visible:rounded-r-sm"
icon={copied ? <Check data-testid="copy-sql-ready" /> : <Copy />}
onClick={copyAsSQL}
@@ -456,7 +455,6 @@ export const SchemaGraph = () => {
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
size="tiny"
aria-label="Export options"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
@@ -511,7 +509,7 @@ export const SchemaGraph = () => {
tooltipOpen={autoLayoutDialogOpen ? false : undefined}
>
<AlertDialogTrigger asChild>
- <Button variant="default">Auto layout</Button>
+ <Button>Auto layout</Button>
</AlertDialogTrigger>
</Shortcut>
<AlertDialogContent>
@@ -561,7 +559,7 @@ export const SchemaGraph = () => {
}
>
{canAddTables && (
- <Button asChild className="mt-2 w-min" variant="default" icon={<Plus />}>
+ <Button asChild className="mt-2 w-min" icon={<Plus />}>
<Link href={`/project/${ref}/editor?create=table`}>New table</Link>
</Button>
)}
@@ -607,7 +605,6 @@ export const SchemaGraph = () => {
{hasNextPage && (
<Panel position="bottom-center" className="mb-11!">
<Button
- variant="default"
size="tiny"
loading={isFetchingNextPage}
onClick={() => {
diff --git a/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx b/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx
index a3160dea5cf..f10afa33df2 100644
--- a/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx
+++ b/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx
@@ -159,7 +159,6 @@ export const ColumnList = ({
{!isSchemaLocked && isTableEntity && (
<ButtonTooltip
icon={<Plus />}
- variant="default"
disabled={!canUpdateColumns}
onClick={() => onAddColumn()}
tooltip={{
@@ -361,7 +360,6 @@ export const ColumnList = ({
{!isSchemaLocked && isTableEntity && (
<div className="flex justify-end gap-2">
<ButtonTooltip
- variant="default"
disabled={!canUpdateColumns}
onClick={() => onEditColumn(column)}
tooltip={{
@@ -383,7 +381,6 @@ export const ColumnList = ({
aria-label={`Delete ${column.name} column`}
// Tooltip repeats the label; the description would read the name twice
aria-describedby={undefined}
- variant="default"
className="px-1"
icon={<MoreVertical />}
/>
diff --git a/apps/studio/components/interfaces/Database/Tables/TableList.tsx b/apps/studio/components/interfaces/Database/Tables/TableList.tsx
index 7aac89c7051..c331237c22e 100644
--- a/apps/studio/components/interfaces/Database/Tables/TableList.tsx
+++ b/apps/studio/components/interfaces/Database/Tables/TableList.tsx
@@ -321,7 +321,6 @@ export const TableList = ({
</div>
<Button
size="tiny"
- variant="default"
onClick={() => setVisibleTypes([value])}
className="transition opacity-0 group-hover:opacity-100 h-auto px-1 py-0.5"
>
@@ -517,7 +516,7 @@ export const TableList = ({
</TableCell>
<TableCell>
<div className="flex justify-end gap-2">
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${ref}/database/tables/${x.id}`}>
View columns
</Link>
@@ -529,7 +528,6 @@ export const TableList = ({
<TooltipTrigger asChild>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
className="px-1"
icon={<MoreVertical />}
aria-label={`Table ${x.name} actions`}
diff --git a/apps/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx b/apps/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
index b14d67361bc..3ed36676340 100644
--- a/apps/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
@@ -78,7 +78,7 @@ const NoticeBox = () => {
title="Only functions that return a trigger will be displayed below"
description={`You can make functions by using the Database Functions`}
button={
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${ref}/database/functions`}>Go to Functions</Link>
</Button>
}
diff --git a/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggerList.tsx b/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggerList.tsx
index 6e8b1934254..9c74ec6f765 100644
--- a/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggerList.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggerList.tsx
@@ -166,12 +166,7 @@ export const EventTriggerList = ({
{canEditTrigger ? (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button
- aria-label="More options"
- variant="default"
- className="px-1"
- icon={<MoreVertical />}
- />
+ <Button aria-label="More options" className="px-1" icon={<MoreVertical />} />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-52">
<DropdownMenuItem className="space-x-2" onClick={() => onEditTrigger(trigger)}>
@@ -205,7 +200,6 @@ export const EventTriggerList = ({
) : (
<ButtonTooltip
disabled
- variant="default"
className="px-1"
icon={<MoreVertical />}
tooltip={{
diff --git a/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggersList.tsx b/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggersList.tsx
index 32b7c968848..c9ab412753f 100644
--- a/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggersList.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggersList.tsx
@@ -254,7 +254,6 @@ export const EventTriggersList = () => {
description="Event triggers run on database-level events like DDL commands."
>
<ButtonTooltip
- variant="default"
disabled={!canUpdateEventTriggers}
onClick={createEventTrigger}
tooltip={{
diff --git a/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx b/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx
index 6afc3865a07..e98c53c8690 100644
--- a/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx
@@ -456,10 +456,7 @@ export const TriggerSheet = ({
<span className="text-sm text-foreground">{function_name}</span>
</p>
</div>
- <Button
- variant="default"
- onClick={() => setShowFunctionSelector(true)}
- >
+ <Button onClick={() => setShowFunctionSelector(true)}>
Change function
</Button>
</div>
@@ -475,12 +472,7 @@ export const TriggerSheet = ({
</Form>
<SheetFooter className="shrink-0">
- <Button
- variant="default"
- type="reset"
- disabled={isCreating || isUpdating}
- onClick={confirmOnClose}
- >
+ <Button type="reset" disabled={isCreating || isUpdating} onClick={confirmOnClose}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Database/Triggers/TriggersList/CreateTriggerButtons.tsx b/apps/studio/components/interfaces/Database/Triggers/TriggersList/CreateTriggerButtons.tsx
index d7754c4eb92..cdbfbe4ea8a 100644
--- a/apps/studio/components/interfaces/Database/Triggers/TriggersList/CreateTriggerButtons.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/TriggersList/CreateTriggerButtons.tsx
@@ -50,7 +50,6 @@ export const CreateTriggerButtons = ({
{hasTables && (
<ButtonTooltip
- variant="default"
disabled={!hasTables || !canCreateTriggers}
className="px-1 pointer-events-auto"
icon={<AiIconAnimation size={16} />}
diff --git a/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx b/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
index e0a28f20185..6c4050d62af 100644
--- a/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
@@ -182,7 +182,6 @@ export const TriggerList = ({ editTrigger, duplicateTrigger, deleteTrigger }: Tr
<DropdownMenuTrigger asChild>
<Button
aria-label={`${x.function_name} actions`}
- variant="default"
className="px-1"
icon={<MoreVertical />}
/>
@@ -248,7 +247,6 @@ export const TriggerList = ({ editTrigger, duplicateTrigger, deleteTrigger }: Tr
) : (
<ButtonTooltip
disabled
- variant="default"
className="px-1"
icon={<MoreVertical />}
tooltip={{
diff --git a/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.sections.tsx b/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.sections.tsx
index 690635bb508..1dcdceda2f1 100644
--- a/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.sections.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.sections.tsx
@@ -272,7 +272,6 @@ export function AdvancedSection({
actions={
canUpdateDiskConfiguration ? (
<Button
- variant="default"
onClick={() => {
form.setValue('computeSize', 'ci_large', {
shouldDirty: true,
@@ -302,7 +301,6 @@ export function AdvancedSection({
actions={
!disableDiskSizeInput ? (
<Button
- variant="default"
onClick={() => {
form.setValue('totalSize', suggestedDiskSizeForCustomIops, {
shouldDirty: true,
diff --git a/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx b/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx
index 0d9be46fa80..04b0064ee49 100644
--- a/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx
@@ -587,12 +587,7 @@ export function DiskManagementForm({
beforePrice={totalBeforePrice}
afterPrice={totalAfterPrice}
/>
- <Button
- variant="default"
- onClick={() => form.reset()}
- disabled={!isDirty}
- size="medium"
- >
+ <Button onClick={() => form.reset()} disabled={!isDirty} size="medium">
Cancel
</Button>
<DiskManagementReviewAndSubmitDialog
diff --git a/apps/studio/components/interfaces/DiskManagement/DiskManagementPanelForm.tsx b/apps/studio/components/interfaces/DiskManagement/DiskManagementPanelForm.tsx
index 0874546d7ac..45c5b8b0c04 100644
--- a/apps/studio/components/interfaces/DiskManagement/DiskManagementPanelForm.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/DiskManagementPanelForm.tsx
@@ -33,7 +33,7 @@ export function DiskManagementPanelForm() {
title="Disk management has moved"
description="Disk configuration is now managed alongside project compute on the Infrastructure page."
actions={
- <Button variant="default" asChild>
+ <Button asChild>
<Link href={getInfrastructurePath(projectRef)}>Go to Infrastructure</Link>
</Button>
}
diff --git a/apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog/DiskManagementReviewAndSubmitDialog.tsx b/apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog/DiskManagementReviewAndSubmitDialog.tsx
index 86f302a3961..9504d551dae 100644
--- a/apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog/DiskManagementReviewAndSubmitDialog.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog/DiskManagementReviewAndSubmitDialog.tsx
@@ -283,7 +283,7 @@ export const DiskManagementReviewAndSubmitDialog = ({
)}
<DialogFooter className="px-5 py-4">
- <Button block size="large" variant="default" onClick={() => setIsDialogOpen(false)}>
+ <Button block size="large" onClick={() => setIsDialogOpen(false)}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/DiskManagement/fields/DiskSizeField.tsx b/apps/studio/components/interfaces/DiskManagement/fields/DiskSizeField.tsx
index 98018d5d9c7..ad2e4b2e68f 100644
--- a/apps/studio/components/interfaces/DiskManagement/fields/DiskSizeField.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/fields/DiskSizeField.tsx
@@ -95,7 +95,6 @@ export function DiskSizeField({ form, disableInput }: DiskSizeFieldProps) {
form={form}
actions={
<Button
- variant="default"
onClick={() => {
setValue('storageType', 'io2', { shouldDirty: true })
trigger('provisionedIOPS')
diff --git a/apps/studio/components/interfaces/DiskManagement/fields/IOPSField.tsx b/apps/studio/components/interfaces/DiskManagement/fields/IOPSField.tsx
index b315674dec3..2b987ceead4 100644
--- a/apps/studio/components/interfaces/DiskManagement/fields/IOPSField.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/fields/IOPSField.tsx
@@ -56,7 +56,6 @@ export function IOPSField({ form, disableInput }: IOPSFieldProps) {
form={form}
actions={
<Button
- variant="default"
onClick={() => {
setValue('computeSize', reccomendedComputeSize ?? 'ci_nano')
trigger('provisionedIOPS')
diff --git a/apps/studio/components/interfaces/Docs/Description.tsx b/apps/studio/components/interfaces/Docs/Description.tsx
index 1421ec19397..7bf0677eac7 100644
--- a/apps/studio/components/interfaces/Docs/Description.tsx
+++ b/apps/studio/components/interfaces/Docs/Description.tsx
@@ -99,7 +99,6 @@ const Description = ({ content, metadata, onChange = noop }: DescrptionProps) =>
} ${animateCss}`}
>
<Button
- variant="default"
disabled={!hasChanged}
onClick={() => {
setValue(contentText)
diff --git a/apps/studio/components/interfaces/Docs/GeneratingTypes.tsx b/apps/studio/components/interfaces/Docs/GeneratingTypes.tsx
index cba7c1f58de..ded66e268a5 100644
--- a/apps/studio/components/interfaces/Docs/GeneratingTypes.tsx
+++ b/apps/studio/components/interfaces/Docs/GeneratingTypes.tsx
@@ -74,7 +74,6 @@ export function GeneratingTypes({ selectedLang }: Props) {
<div className="flex flex-col items-center justify-center p-10">
{selectedLang === 'js' && (
<Button
- variant="default"
disabled={isGeneratingTypes}
loading={isGeneratingTypes}
icon={<Download strokeWidth={1.5} />}
diff --git a/apps/studio/components/interfaces/Docs/LangSelector.tsx b/apps/studio/components/interfaces/Docs/LangSelector.tsx
index 61aecee70d8..791ca779b2a 100644
--- a/apps/studio/components/interfaces/Docs/LangSelector.tsx
+++ b/apps/studio/components/interfaces/Docs/LangSelector.tsx
@@ -79,7 +79,7 @@ export const LangSelector = ({
apiKeys.length > 0 && (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" size="tiny" className="p-0 h-7 w-7">
+ <Button size="tiny" className="p-0 h-7 w-7">
{selectedApiKey.key === DEFAULT_KEY.key ? (
<EyeOff size={12} strokeWidth={1.5} />
) : (
diff --git a/apps/studio/components/interfaces/Docs/PublicSchemaNotEnabledAlert.tsx b/apps/studio/components/interfaces/Docs/PublicSchemaNotEnabledAlert.tsx
index 562d4e9c87b..2144df20a6d 100644
--- a/apps/studio/components/interfaces/Docs/PublicSchemaNotEnabledAlert.tsx
+++ b/apps/studio/components/interfaces/Docs/PublicSchemaNotEnabledAlert.tsx
@@ -13,7 +13,7 @@ const PublicSchemaNotEnabledAlert = () => {
You will not be able to query tables and views in the public schema via supabase-js or HTTP
clients. Configure this behavior in your project's Data API settings.
</p>
- <Button asChild variant="default" className="mt-1">
+ <Button asChild className="mt-1">
<Link
href={`/project/${projectRef}/settings/api#postgrest-config`}
className="no-underline!"
diff --git a/apps/studio/components/interfaces/EdgeFunctions/EdgeFunctionsSortDropdown.tsx b/apps/studio/components/interfaces/EdgeFunctions/EdgeFunctionsSortDropdown.tsx
index 096de0699b7..efc255dbad6 100644
--- a/apps/studio/components/interfaces/EdgeFunctions/EdgeFunctionsSortDropdown.tsx
+++ b/apps/studio/components/interfaces/EdgeFunctions/EdgeFunctionsSortDropdown.tsx
@@ -43,7 +43,6 @@ export const EdgeFunctionsSortDropdown = ({ value, onChange }: EdgeFunctionsSort
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
icon={
value.includes('desc') ? (
<ArrowDownWideNarrow size={14} />
diff --git a/apps/studio/components/interfaces/ErrorHandling/TroubleshootingSections.tsx b/apps/studio/components/interfaces/ErrorHandling/TroubleshootingSections.tsx
index bfe131c09b0..6ecd2bd8530 100644
--- a/apps/studio/components/interfaces/ErrorHandling/TroubleshootingSections.tsx
+++ b/apps/studio/components/interfaces/ErrorHandling/TroubleshootingSections.tsx
@@ -65,7 +65,7 @@ export function RestartDatabaseTroubleshootingSection({
<p className="text-sm text-foreground-light mb-3">
Restarting your project can help resolve timeout errors or stale connections.
</p>
- <Button variant="default" size="tiny" onClick={handleClick}>
+ <Button size="tiny" onClick={handleClick}>
Restart project
</Button>
</div>
@@ -109,7 +109,6 @@ export function TroubleshootingGuideSection({
{description && <p className="text-sm text-foreground-light mb-3">{description}</p>}
<Button
asChild
- variant="default"
size="tiny"
onClick={() =>
track('inline_error_troubleshooter_action_clicked', {
diff --git a/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.Header.tsx b/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.Header.tsx
index 7ce99765e42..f757842e264 100644
--- a/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.Header.tsx
+++ b/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.Header.tsx
@@ -133,7 +133,6 @@ export function ExplainHeader({ mode, onToggleMode, summary, id, rows }: Explain
/>
)}
<Button
- variant="default"
size="tiny"
icon={isVisual ? <Code size={14} /> : <Eye size={14} />}
onClick={onToggleMode}
diff --git a/apps/studio/components/interfaces/Explorer/ExplorerChatTab.tsx b/apps/studio/components/interfaces/Explorer/ExplorerChatTab.tsx
index 7ed5a1b5c80..a7e05b21fec 100644
--- a/apps/studio/components/interfaces/Explorer/ExplorerChatTab.tsx
+++ b/apps/studio/components/interfaces/Explorer/ExplorerChatTab.tsx
@@ -65,9 +65,7 @@ export const ExplorerChatTab = () => {
This chat may have been deleted or is no longer available.
</p>
</div>
- <Button variant="default" onClick={() => router.push(`/project/${ref}/explorer`)}>
- Back to Explorer
- </Button>
+ <Button onClick={() => router.push(`/project/${ref}/explorer`)}>Back to Explorer</Button>
</div>
)
}
diff --git a/apps/studio/components/interfaces/Explorer/ExplorerNotebookTab.tsx b/apps/studio/components/interfaces/Explorer/ExplorerNotebookTab.tsx
index dc715017a9f..1437c43c45c 100644
--- a/apps/studio/components/interfaces/Explorer/ExplorerNotebookTab.tsx
+++ b/apps/studio/components/interfaces/Explorer/ExplorerNotebookTab.tsx
@@ -473,12 +473,8 @@ export const ExplorerNotebookTab = () => {
contentClassName="[&>h3]:text-sm [&>p]:text-xs"
>
<div className="flex items-center gap-x-2">
- <Button variant="default" onClick={() => onSelectAddCell('query')}>
- Add query cell
- </Button>
- <Button variant="default" onClick={() => onSelectAddCell('markdown')}>
- Add markdown cell
- </Button>
+ <Button onClick={() => onSelectAddCell('query')}>Add query cell</Button>
+ <Button onClick={() => onSelectAddCell('markdown')}>Add markdown cell</Button>
</div>
</EmptyStatePresentational>
)}
diff --git a/apps/studio/components/interfaces/Explorer/QueryEditor/QueryResultError.tsx b/apps/studio/components/interfaces/Explorer/QueryEditor/QueryResultError.tsx
index ed45c4d2466..0ce4fc3af25 100644
--- a/apps/studio/components/interfaces/Explorer/QueryEditor/QueryResultError.tsx
+++ b/apps/studio/components/interfaces/Explorer/QueryEditor/QueryResultError.tsx
@@ -159,7 +159,6 @@ export const QueryResultError = ({
{readReplicaError && (
<Button
className="py-2"
- variant="default"
// [Joshen] TODO
onClick={() => {}}
>
diff --git a/apps/studio/components/interfaces/Explorer/QueryEditor/QueryRunButton.tsx b/apps/studio/components/interfaces/Explorer/QueryEditor/QueryRunButton.tsx
index 9a4fe033020..09656fae14a 100644
--- a/apps/studio/components/interfaces/Explorer/QueryEditor/QueryRunButton.tsx
+++ b/apps/studio/components/interfaces/Explorer/QueryEditor/QueryRunButton.tsx
@@ -29,7 +29,6 @@ export const QueryRunButton = ({
<div className="flex w-fit">
<ButtonTooltip
type="button"
- variant="default"
size="tiny"
loading={isExecuting}
disabled={disabled}
@@ -54,7 +53,6 @@ export const QueryRunButton = ({
<DropdownMenuTrigger asChild>
<Button
type="button"
- variant="default"
size="tiny"
disabled={disabled}
aria-label="More actions"
diff --git a/apps/studio/components/interfaces/Explorer/QueryEditor/index.tsx b/apps/studio/components/interfaces/Explorer/QueryEditor/index.tsx
index 90fe7685c2b..f4a4f56d764 100644
--- a/apps/studio/components/interfaces/Explorer/QueryEditor/index.tsx
+++ b/apps/studio/components/interfaces/Explorer/QueryEditor/index.tsx
@@ -511,7 +511,7 @@ export const QueryEditor = forwardRef<QueryEditorHandle, QueryEditorProps>(funct
)}
</div>
<div className="flex items-center gap-2">
- <Button variant="default" size="tiny" onClick={() => setPendingProposal(null)}>
+ <Button size="tiny" onClick={() => setPendingProposal(null)}>
Discard
</Button>
<Button variant="primary" size="tiny" onClick={acceptSqlProposal}>
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx
index 91b698429e3..204451e7b66 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx
@@ -215,9 +215,7 @@ export const EdgeFunctionDetails = () => {
<CardFooter className="flex justify-end space-x-2">
{form.formState.isDirty && (
- <Button variant="default" onClick={() => form.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => form.reset()}>Cancel</Button>
)}
<Button
variant="primary"
@@ -259,7 +257,6 @@ export const EdgeFunctionDetails = () => {
))}
{selectedTab === 'curl' && (
<Button
- variant="default"
className="ml-auto -translate-y-2 translate-x-3"
onClick={() => setShowKey(!showKey)}
>
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionRecentErrors.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionRecentErrors.tsx
index 9233c5e4edb..f5a52cd2a14 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionRecentErrors.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionRecentErrors.tsx
@@ -208,7 +208,6 @@ export const EdgeFunctionRecentErrors = ({
</PageSectionSummary>
<PageSectionAside>
<Button
- variant="default"
size="tiny"
icon={<ExternalLink size={14} />}
onClick={() =>
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionRecentInvocations.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionRecentInvocations.tsx
index df0ea659a7e..6c36f230420 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionRecentInvocations.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionRecentInvocations.tsx
@@ -40,7 +40,6 @@ export const EdgeFunctionRecentInvocations = ({
</p>
</div>
<Button
- variant="default"
loading={isLoading}
disabled={isLoading}
icon={<RefreshCw size={14} />}
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/AddNewSecretForm.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/AddNewSecretForm.tsx
index 9072c012a75..3e662b3fcdb 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/AddNewSecretForm.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/AddNewSecretForm.tsx
@@ -241,7 +241,6 @@ export const AddNewSecretForm = () => {
/>
</FormControl>
<Button
- variant="default"
className="w-[34px] h-[34px] shrink-0 p-0"
aria-label="Remove secret"
icon={<Trash size={12} />}
@@ -310,9 +309,7 @@ export const AddNewSecretForm = () => {
</p>
<div className="flex items-center space-x-2">
- <Button variant="default" onClick={handleAddAnotherSecret}>
- Add another
- </Button>
+ <Button onClick={handleAddAnotherSecret}>Add another</Button>
<Button variant="primary" type="submit" disabled={isCreating} loading={isCreating}>
{isCreating ? 'Saving...' : fields.length > 1 ? 'Bulk save' : 'Save'}
</Button>
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
index 8dd395def72..a6876c129ad 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
@@ -68,12 +68,7 @@ const EdgeFunctionSecret = ({ secret, onSelectEdit, onSelectDelete }: EdgeFuncti
<div className="flex items-center justify-end">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button
- aria-label="More options"
- variant="default"
- className="px-1"
- icon={<MoreVertical />}
- />
+ <Button aria-label="More options" className="px-1" icon={<MoreVertical />} />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-52">
<DropdownMenuItem asChild>
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EditSecretSheet.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EditSecretSheet.tsx
index d6a961d75da..9f0c65f26ae 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EditSecretSheet.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EditSecretSheet.tsx
@@ -162,7 +162,7 @@ export function EditSecretSheet({ secret, visible, onClose }: EditSecretSheetPro
</SheetSection>
<SheetFooter>
- <Button disabled={isUpdating} variant="default" onClick={confirmOnClose}>
+ <Button disabled={isUpdating} onClick={confirmOnClose}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Functions/FunctionsEmptyState.tsx b/apps/studio/components/interfaces/Functions/FunctionsEmptyState.tsx
index 412c4564812..b7d66890bcf 100644
--- a/apps/studio/components/interfaces/Functions/FunctionsEmptyState.tsx
+++ b/apps/studio/components/interfaces/Functions/FunctionsEmptyState.tsx
@@ -62,7 +62,6 @@ export const FunctionsEmptyState = () => {
Create and edit functions directly in the browser. Download to local at any time.
</p>
<Button
- variant="default"
onClick={() => {
router.push(`/project/${ref}/functions/new`)
track('edge_function_via_editor_button_clicked', {
@@ -85,7 +84,6 @@ export const FunctionsEmptyState = () => {
function.
</p>
<Button
- variant="default"
onClick={() => {
openSidebar(SIDEBAR_KEYS.AI_ASSISTANT)
aiSnap.newChat({
@@ -136,7 +134,6 @@ export const FunctionsEmptyState = () => {
</p>
<Button
- variant="default"
onClick={() => {
setCreateMethod('cli')
track('edge_function_via_cli_button_clicked', { origin: 'no_functions_block' })
diff --git a/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx b/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx
index 5cd3bd4b9d6..e57d4a7b9df 100644
--- a/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx
+++ b/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx
@@ -115,9 +115,7 @@ export const TerminalInstructions = forwardRef<
You can create a secure access token in your account section
</p>
</div>
- <Button variant="default" onClick={() => router.push('/account/tokens')}>
- Access tokens
- </Button>
+ <Button onClick={() => router.push('/account/tokens')}>Access tokens</Button>
</div>
) : (
<div className="py-4 space-y-3 border-t">
@@ -129,7 +127,7 @@ export const TerminalInstructions = forwardRef<
</div>
<div className="flex gap-2">
<DocsButton href={`${DOCS_URL}/guides/functions`} />
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<a
target="_blank"
rel="noreferrer"
diff --git a/apps/studio/components/interfaces/Home/ClientLibrary.tsx b/apps/studio/components/interfaces/Home/ClientLibrary.tsx
index b86e3627f9f..d14d8e9bccb 100644
--- a/apps/studio/components/interfaces/Home/ClientLibrary.tsx
+++ b/apps/studio/components/interfaces/Home/ClientLibrary.tsx
@@ -45,14 +45,12 @@ export const ClientLibrary = ({
<div className="flex gap-2">
{docsUrl && (
<a href={docsUrl} target="_blank" rel="noreferrer">
- <Button icon={<BookOpen />} variant="default">
- Docs
- </Button>
+ <Button icon={<BookOpen />}>Docs</Button>
</a>
)}
{gitUrl && (
<a href={gitUrl} target="_blank" rel="noreferrer">
- <Button icon={<Github />} variant="default">
+ <Button icon={<Github />}>
<span className="hidden md:inline">See</span> GitHub
</Button>
</a>
diff --git a/apps/studio/components/interfaces/Home/ProjectList/EmptyStates.tsx b/apps/studio/components/interfaces/Home/ProjectList/EmptyStates.tsx
index 7290e60e85e..50415b06234 100644
--- a/apps/studio/components/interfaces/Home/ProjectList/EmptyStates.tsx
+++ b/apps/studio/components/interfaces/Home/ProjectList/EmptyStates.tsx
@@ -84,7 +84,7 @@ export const NoProjectsState = ({ slug }: { slug: string }) => {
description="Launch a complete backend built on Postgres."
>
{projectCreationEnabled && (
- <Button size="tiny" variant="default" asChild icon={<Plus />}>
+ <Button size="tiny" asChild icon={<Plus />}>
<Link href={`/new/${slug}`}>New project</Link>
</Button>
)}
diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectTableRow.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectTableRow.tsx
index 967a4a252fb..42292b182c5 100644
--- a/apps/studio/components/interfaces/Home/ProjectList/ProjectTableRow.tsx
+++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectTableRow.tsx
@@ -181,7 +181,6 @@ export const ProjectTableRow = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
icon={<MoreVertical />}
aria-label={`Project ${name} actions`}
className="w-7"
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet/CreateCronJobSheet.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet/CreateCronJobSheet.tsx
index 1ff0eed0e06..b1677a32d23 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet/CreateCronJobSheet.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet/CreateCronJobSheet.tsx
@@ -405,7 +405,6 @@ export const CreateCronJobSheet = ({ open, selectedCronJob, onClose }: CreateCro
within your cron jobs
</span>
<ButtonTooltip
- variant="default"
className="w-min"
disabled={!canToggleExtensions}
onClick={() => setShowEnableExtensionModal(true)}
@@ -450,13 +449,7 @@ export const CreateCronJobSheet = ({ open, selectedCronJob, onClose }: CreateCro
</Form>
</div>
<SheetFooter>
- <Button
- size="tiny"
- variant="default"
- type="button"
- onClick={confirmOnClose}
- disabled={isLoading}
- >
+ <Button size="tiny" type="button" onClick={confirmOnClose} disabled={isLoading}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobTableCell.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobTableCell.tsx
index 7617544dfca..2594778990e 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobTableCell.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobTableCell.tsx
@@ -239,9 +239,7 @@ export const CronJobTableCell = ({
</p>
</DialogSection>
<DialogFooter>
- <Button variant="default" onClick={() => setShowToggleModal(false)}>
- Cancel
- </Button>
+ <Button onClick={() => setShowToggleModal(false)}>Cancel</Button>
<Button
variant={active ? 'warning' : 'primary'}
loading={isToggling}
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.CleanupNotice.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.CleanupNotice.tsx
index b32c636fbad..30dc7cdc25a 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.CleanupNotice.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.CleanupNotice.tsx
@@ -77,7 +77,7 @@ const CronJobRunDetailsOverflowDialog = ({
return (
<Dialog>
<DialogTrigger asChild>
- <Button variant="default">Learn more</Button>
+ <Button>Learn more</Button>
</DialogTrigger>
<DialogContent
aria-describedby={undefined}
@@ -156,11 +156,7 @@ const CronJobRunDetailsOverflowDialog = ({
</SelectContent>
</Select>
</div>
- <Button
- variant="default"
- disabled={isBusy}
- onClick={() => runBatchedDeletion(cleanupInterval)}
- >
+ <Button disabled={isBusy} onClick={() => runBatchedDeletion(cleanupInterval)}>
Delete rows now
</Button>
</div>
@@ -188,7 +184,6 @@ const CronJobRunDetailsOverflowDialog = ({
<Button
block
size="small"
- variant="default"
className="mt-1"
loading={isScheduling}
disabled={isScheduling}
@@ -262,7 +257,7 @@ const DeletionError = ({ error, onRetry }: DeletionErrorProps) => (
<XCircle size={16} />
<span className="text-sm">Deletion failed: {error}</span>
</div>
- <Button variant="default" size="small" onClick={onRetry}>
+ <Button size="small" onClick={onRetry}>
Retry
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.EnableCleanupButton.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.EnableCleanupButton.tsx
index 5951bdad8ee..a223af73fae 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.EnableCleanupButton.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.EnableCleanupButton.tsx
@@ -85,7 +85,7 @@ export const EnableCleanupButton = ({ onScheduled }: EnableCleanupButtonProps) =
}}
>
<DialogTrigger asChild>
- <Button variant="default">Enable cleanup</Button>
+ <Button>Enable cleanup</Button>
</DialogTrigger>
<DialogContent>
<DialogHeader>
@@ -131,7 +131,7 @@ export const EnableCleanupButton = ({ onScheduled }: EnableCleanupButtonProps) =
/>
</DialogSection>
<DialogFooter>
- <Button variant="default" disabled={isScheduling} onClick={() => setOpen(false)}>
+ <Button disabled={isScheduling} onClick={() => setOpen(false)}>
Cancel
</Button>
<Button variant="primary" loading={isScheduling} onClick={onConfirm}>
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx
index 45f10fe3656..6c6c6909a3c 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx
@@ -61,7 +61,7 @@ export const CronJobsTabHeader = ({
<div className="flex items-center gap-x-2">
<EnableCleanupButton onScheduled={onRefresh} />
- <Button variant="default" icon={<RefreshCw />} loading={isRefreshing} onClick={onRefresh}>
+ <Button icon={<RefreshCw />} loading={isRefreshing} onClick={onRefresh}>
Refresh
</Button>
<Button variant="primary" onClick={onCreateJob}>
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx
index 9448a54c801..cb66e22141f 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx
@@ -102,7 +102,7 @@ export const EdgeFunctionSection = ({ form }: HTTPRequestFieldsProps) => {
<div className="space-y-1">
<p className="text-sm text-foreground-light">Select which edge function to trigger</p>
{isLoading ? (
- <Button variant="default" className="justify-start" block size="small" loading>
+ <Button className="justify-start" block size="small" loading>
Loading edge functions...
</Button>
) : (
@@ -128,7 +128,6 @@ export const EdgeFunctionSection = ({ form }: HTTPRequestFieldsProps) => {
<PopoverTrigger asChild>
<FormControl>
<Button
- variant="default"
role="combobox"
aria-expanded={open}
aria-controls={listboxId}
diff --git a/apps/studio/components/interfaces/Integrations/DataApi/DocsMobileNav.tsx b/apps/studio/components/interfaces/Integrations/DataApi/DocsMobileNav.tsx
index e99b776d74a..31260a97b67 100644
--- a/apps/studio/components/interfaces/Integrations/DataApi/DocsMobileNav.tsx
+++ b/apps/studio/components/interfaces/Integrations/DataApi/DocsMobileNav.tsx
@@ -34,7 +34,7 @@ export const DocsMobileNav = ({
return (
<>
<div className="sticky top-0 z-10 flex lg:hidden items-center border-b bg-surface-100 px-4 py-3">
- <Button variant="default" icon={<Menu size={16} />} onClick={() => setOpen(true)}>
+ <Button icon={<Menu size={16} />} onClick={() => setOpen(true)}>
Menu
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Integrations/GraphQL/IntrospectionDisabledNotice.tsx b/apps/studio/components/interfaces/Integrations/GraphQL/IntrospectionDisabledNotice.tsx
index 224f4cdb711..9cb5b101ab5 100644
--- a/apps/studio/components/interfaces/Integrations/GraphQL/IntrospectionDisabledNotice.tsx
+++ b/apps/studio/components/interfaces/Integrations/GraphQL/IntrospectionDisabledNotice.tsx
@@ -45,7 +45,7 @@ export const IntrospectionDisabledNotice = ({
GraphQL introspection is disabled — docs explorer and autocomplete are unavailable.
</span>
<div className="flex items-center gap-1">
- <Button variant="default" size="tiny" onClick={() => setShowConfirm(true)}>
+ <Button size="tiny" onClick={() => setShowConfirm(true)}>
Enable introspection
</Button>
<Button
@@ -75,9 +75,7 @@ export const IntrospectionDisabledNotice = ({
.
</p>
<div className="mt-3">
- <Button variant="default" onClick={() => setShowConfirm(true)}>
- Enable introspection
- </Button>
+ <Button onClick={() => setShowConfirm(true)}>Enable introspection</Button>
</div>
</Admonition>
<Button
diff --git a/apps/studio/components/interfaces/Integrations/GraphQL/IntrospectionEnabledNotice.tsx b/apps/studio/components/interfaces/Integrations/GraphQL/IntrospectionEnabledNotice.tsx
index 4c8c87f2cab..3d50150124a 100644
--- a/apps/studio/components/interfaces/Integrations/GraphQL/IntrospectionEnabledNotice.tsx
+++ b/apps/studio/components/interfaces/Integrations/GraphQL/IntrospectionEnabledNotice.tsx
@@ -33,7 +33,7 @@ export const IntrospectionEnabledNotice = ({
GraphQL introspection is enabled for this project, so schemas are discoverable through the
API.
</span>
- <Button variant="default" size="tiny" onClick={() => setShowConfirm(true)}>
+ <Button size="tiny" onClick={() => setShowConfirm(true)}>
Disable introspection
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Integrations/Integration/ConnectedResourceGroupSection.tsx b/apps/studio/components/interfaces/Integrations/Integration/ConnectedResourceGroupSection.tsx
index 48047caf069..e629b9fad88 100644
--- a/apps/studio/components/interfaces/Integrations/Integration/ConnectedResourceGroupSection.tsx
+++ b/apps/studio/components/interfaces/Integrations/Integration/ConnectedResourceGroupSection.tsx
@@ -46,7 +46,7 @@ export const ResourceGroupSection = ({
{group.missing ? (
group.manageAction && (
<div className="max-w-2xl">
- <Button asChild variant="default" icon={<Settings />}>
+ <Button asChild icon={<Settings />}>
<Link href={group.manageAction.href}>{group.manageAction.label}</Link>
</Button>
</div>
@@ -69,12 +69,11 @@ export const ResourceGroupSection = ({
</div>
<div className="flex shrink-0 items-center gap-x-2">
{group.manageAction && (
- <Button asChild variant="default" icon={<Settings />}>
+ <Button asChild icon={<Settings />}>
<Link href={group.manageAction.href}>{group.manageAction.label}</Link>
</Button>
)}
<Button
- variant="default"
icon={<Trash2 className="text-foreground-light" />}
onClick={() => onRemove(item.resource)}
>
diff --git a/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallIntegrationSheet.tsx b/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallIntegrationSheet.tsx
index d1b987b4c51..70277d29185 100644
--- a/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallIntegrationSheet.tsx
+++ b/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallIntegrationSheet.tsx
@@ -261,9 +261,7 @@ export const InstallIntegrationSheet = ({ integration }: InstallIntegrationSheet
<SheetFooter>
<SheetClose asChild>
- <Button variant="default" disabled={isInstalling}>
- Cancel
- </Button>
+ <Button disabled={isInstalling}>Cancel</Button>
</SheetClose>
<Button
form={formId}
diff --git a/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallationSettings.tsx b/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallationSettings.tsx
index f74c1a5ea30..968f11a4fc6 100644
--- a/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallationSettings.tsx
+++ b/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallationSettings.tsx
@@ -64,7 +64,6 @@ export const InstallationSettings = <
<Button
asChild
key={action.label}
- variant="default"
icon={isExternal ? <ExternalLink /> : undefined}
>
<Link
diff --git a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFilterBar.tsx b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFilterBar.tsx
index 0ea9161959f..fb6b4a00bd8 100644
--- a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFilterBar.tsx
+++ b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFilterBar.tsx
@@ -97,7 +97,7 @@ export const MarketplaceFilterBar = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" iconRight={<ChevronDown />} className={triggerCls}>
+ <Button iconRight={<ChevronDown />} className={triggerCls}>
<span className="truncate">Category: {categoryLabel}</span>
</Button>
</DropdownMenuTrigger>
@@ -136,7 +136,7 @@ export const MarketplaceFilterBar = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" iconRight={<ChevronDown />} className={triggerCls}>
+ <Button iconRight={<ChevronDown />} className={triggerCls}>
<span className="truncate">Type: {typeLabel}</span>
</Button>
</DropdownMenuTrigger>
@@ -170,7 +170,7 @@ export const MarketplaceFilterBar = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" iconRight={<ChevronDown />} className={triggerCls}>
+ <Button iconRight={<ChevronDown />} className={triggerCls}>
<span className="truncate">Source: {sourceLabel}</span>
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceIndex.tsx b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceIndex.tsx
index eb08824ef1c..fee5fc9bae6 100644
--- a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceIndex.tsx
+++ b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceIndex.tsx
@@ -281,9 +281,7 @@ export const MarketplaceIndex = () => {
{filtered.length === 0 && (
<EmptyStatePresentational title="No results found">
- <Button variant="default" onClick={clearAll}>
- Clear filters
- </Button>
+ <Button onClick={clearAll}>Clear filters</Button>
</EmptyStatePresentational>
)}
diff --git a/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/CreateQueueSheet.tsx b/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/CreateQueueSheet.tsx
index e1178e09639..36f7ee807ee 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/CreateQueueSheet.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/CreateQueueSheet.tsx
@@ -133,13 +133,7 @@ export const CreateQueueSheet = ({ visible, onClose }: CreateQueueSheetProps) =>
</Form>
</div>
<SheetFooter>
- <Button
- size="tiny"
- variant="default"
- type="button"
- onClick={confirmOnClose}
- disabled={isPending}
- >
+ <Button size="tiny" type="button" onClick={confirmOnClose} disabled={isPending}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/PgPartmanCallout.tsx b/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/PgPartmanCallout.tsx
index 3d8db4d7475..14243875b9b 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/PgPartmanCallout.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/PgPartmanCallout.tsx
@@ -18,12 +18,7 @@ export function PgPartmanCallout() {
title="pg_partman is now available"
description="Unlock partitioned queues for automatic data retention, lower storage costs, and faster performance at scale."
>
- <Button
- variant="default"
- size="tiny"
- className="mt-2"
- onClick={() => setShowEnableModal(true)}
- >
+ <Button size="tiny" className="mt-2" onClick={() => setShowEnableModal(true)}>
Enable pg_partman
</Button>
</Admonition>
diff --git a/apps/studio/components/interfaces/Integrations/Queues/OverviewTab.tsx b/apps/studio/components/interfaces/Integrations/Queues/OverviewTab.tsx
index 27aa2fef5b2..f476d50317a 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/OverviewTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/OverviewTab.tsx
@@ -36,7 +36,7 @@ const QueuesContent = () => {
</p>
{isQueuesInstalled && (
- <Button asChild variant="default" className="mt-2">
+ <Button asChild className="mt-2">
<Link href={`/project/${ref}/integrations/queues/settings`}>Manage queues settings</Link>
</Button>
)}
diff --git a/apps/studio/components/interfaces/Integrations/Queues/QueueTab.tsx b/apps/studio/components/interfaces/Integrations/Queues/QueueTab.tsx
index eb86f3453ca..1df2b5482ff 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/QueueTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/QueueTab.tsx
@@ -138,7 +138,6 @@ export const QueueTab = () => {
{queuePolicies.length === 0 ? (
<ButtonTooltip
asChild
- variant="default"
className="group"
icon={<PlusCircle strokeWidth={1.5} className="text-foreground-muted" />}
tooltip={{
@@ -159,7 +158,6 @@ export const QueueTab = () => {
) : (
<Button
asChild
- variant="default"
className="group"
icon={
<div
@@ -210,7 +208,6 @@ export const QueueTab = () => {
</p>
<p>With RLS enabled, anonymous users will not have access to this queue.</p>
<Button
- variant="default"
className="w-min"
onClick={() => setRlsConfirmModalOpen(!rlsConfirmModalOpen)}
>
@@ -227,7 +224,6 @@ RLS for queues is only relevant if exposure through PostgREST has been enabled,
You may opt to manage your queues via any Supabase client libraries or PostgREST endpoints by enabling this in the [queues settings](/project/${project?.ref}/integrations/queues/settings).`}
/>
<Button
- variant="default"
className="w-min"
onClick={() => setRlsConfirmModalOpen(!rlsConfirmModalOpen)}
>
diff --git a/apps/studio/components/interfaces/Integrations/Queues/QueuesSettings.tsx b/apps/studio/components/interfaces/Integrations/Queues/QueuesSettings.tsx
index 05abb2f4947..f1a453c73ae 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/QueuesSettings.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/QueuesSettings.tsx
@@ -281,11 +281,7 @@ export const QueuesSettings = () => {
})}
</ul>
- <Button
- variant="default"
- className="mt-3"
- onClick={() => setRlsConfirmModalOpen(true)}
- >
+ <Button className="mt-3" onClick={() => setRlsConfirmModalOpen(true)}>
Enable RLS on{' '}
{tablesWithoutRLS.length === 1
? queueDisplayName(tablesWithoutRLS[0].name)
@@ -333,7 +329,6 @@ export const QueuesSettings = () => {
/>
<div className="flex items-center gap-x-2">
<Button
- variant="default"
disabled={Object.keys(formState.dirtyFields).length === 0 || isToggling}
onClick={() => form.reset({ enable: false })}
>
diff --git a/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx b/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx
index fd072777383..b69ba387818 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx
@@ -109,12 +109,7 @@ export const QueuesTab = () => {
/>
<div className="flex items-center gap-x-2">
- <Button
- variant="default"
- icon={<RefreshCw />}
- loading={isRefetching}
- onClick={() => refetch()}
- >
+ <Button icon={<RefreshCw />} loading={isRefetching} onClick={() => refetch()}>
Refresh
</Button>
<Button variant="primary" onClick={() => setCreateQueueSheetShown(true)}>
diff --git a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx
index 05cfc78cf37..de6d2b9fec7 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx
@@ -372,7 +372,7 @@ export const QueueSettings = ({}: QueueSettingsProps) => {
</Table>
</SheetSection>
<SheetFooter>
- <Button variant="default" disabled={isSaving} onClick={() => setOpen(false)}>
+ <Button disabled={isSaving} onClick={() => setOpen(false)}>
Cancel
</Button>
<Button variant="primary" loading={isSaving} onClick={onSaveConfiguration}>
diff --git a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/SendMessageModal.tsx b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/SendMessageModal.tsx
index 53a95fee327..f07434ef290 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/SendMessageModal.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/SendMessageModal.tsx
@@ -145,7 +145,7 @@ export const SendMessageModal = ({ visible, onClose }: SendMessageModalProps) =>
</Form>
</DialogSection>
<DialogFooter>
- <Button variant="default" onClick={onClose} disabled={isPending}>
+ <Button onClick={onClose} disabled={isPending}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Integrations/Vault/Secrets/AddNewSecretModal.tsx b/apps/studio/components/interfaces/Integrations/Vault/Secrets/AddNewSecretModal.tsx
index 5fb82298d32..11cf4054e4d 100644
--- a/apps/studio/components/interfaces/Integrations/Vault/Secrets/AddNewSecretModal.tsx
+++ b/apps/studio/components/interfaces/Integrations/Vault/Secrets/AddNewSecretModal.tsx
@@ -173,7 +173,7 @@ export const AddNewSecretModal = () => {
</Form>
</DialogSection>
<DialogFooter>
- <Button variant="default" disabled={isSubmitting} onClick={handleClose}>
+ <Button disabled={isSubmitting} onClick={handleClose}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Integrations/Vault/Secrets/EditSecretModal.tsx b/apps/studio/components/interfaces/Integrations/Vault/Secrets/EditSecretModal.tsx
index 31c05ad377f..bc2a767f072 100644
--- a/apps/studio/components/interfaces/Integrations/Vault/Secrets/EditSecretModal.tsx
+++ b/apps/studio/components/interfaces/Integrations/Vault/Secrets/EditSecretModal.tsx
@@ -197,7 +197,6 @@ export const EditSecretModal = () => {
/>
</FormControl>
<Button
- variant="default"
title={showSecretValue ? `Hide secret value` : `Show secret value`}
aria-label={showSecretValue ? `Hide secret value` : `Show secret value`}
className="absolute right-1 top-1 w-7"
@@ -213,7 +212,6 @@ export const EditSecretModal = () => {
</DialogSection>
<DialogFooter>
<Button
- variant="default"
disabled={isSubmitting}
onClick={() => {
form.reset()
diff --git a/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx b/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx
index c8032d15140..1520f7990f8 100644
--- a/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx
+++ b/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx
@@ -144,12 +144,7 @@ export const SecretsManagement = () => {
</div>
<div className="flex items-center gap-x-2">
- <Button
- variant="default"
- icon={<RefreshCw />}
- loading={isRefetching}
- onClick={() => refetch()}
- >
+ <Button icon={<RefreshCw />} loading={isRefetching} onClick={() => refetch()}>
Refresh
</Button>
<DocsButton href={`${DOCS_URL}/guides/database/vault`} />
diff --git a/apps/studio/components/interfaces/Integrations/Vercel/VercelIntegrationInterstitial.tsx b/apps/studio/components/interfaces/Integrations/Vercel/VercelIntegrationInterstitial.tsx
index 6b57a41255b..c45394b5428 100644
--- a/apps/studio/components/interfaces/Integrations/Vercel/VercelIntegrationInterstitial.tsx
+++ b/apps/studio/components/interfaces/Integrations/Vercel/VercelIntegrationInterstitial.tsx
@@ -89,7 +89,7 @@ export function VercelIntegrationInterstitialErrorState({
</>
}
/>
- <Button variant="default" block asChild>
+ <Button block asChild>
<Link href="/">Back to dashboard</Link>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationConnection.tsx b/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationConnection.tsx
index 1701fa0247c..251ca03bfc2 100644
--- a/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationConnection.tsx
+++ b/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationConnection.tsx
@@ -80,7 +80,6 @@ export const IntegrationConnectionItem = forwardRef<HTMLLIElement, IntegrationCo
<ButtonTooltip
disabled
iconRight={<ChevronDown size={14} />}
- variant="default"
tooltip={{
content: {
side: 'bottom',
@@ -97,7 +96,7 @@ export const IntegrationConnectionItem = forwardRef<HTMLLIElement, IntegrationCo
modal={false}
>
<DropdownMenuTrigger asChild>
- <Button iconRight={<ChevronDown size={14} />} variant="default">
+ <Button iconRight={<ChevronDown size={14} />}>
<span>Manage</span>
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationPanels.tsx b/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationPanels.tsx
index 79adf607456..25c218a2134 100644
--- a/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationPanels.tsx
+++ b/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationPanels.tsx
@@ -118,7 +118,7 @@ export const IntegrationInstallation = forwardRef<HTMLLIElement, IntegrationInst
</div>
</div>
- <Button asChild disabled={disabled} variant="default" iconRight={<ExternalLink />}>
+ <Button asChild disabled={disabled} iconRight={<ExternalLink />}>
{disabled ? (
<p>Manage</p>
) : (
@@ -260,7 +260,7 @@ export const IntegrationConnectionOption = forwardRef<HTMLLIElement, Integration
</span>
</div>
- <Button variant="default">Connect</Button>
+ <Button>Connect</Button>
</li>
)
}
@@ -315,7 +315,7 @@ export const EmptyIntegrationConnection = forwardRef<
)}
>
{href && !disabled ? (
- <Button icon={icon} asChild variant="default">
+ <Button icon={icon} asChild>
<Link href={href} target="_blank" rel="noreferrer">
{label}
</Link>
@@ -323,7 +323,6 @@ export const EmptyIntegrationConnection = forwardRef<
) : (
<ButtonTooltip
icon={icon}
- variant="default"
disabled={disabled}
onClick={onClick ? () => onClick() : undefined}
tooltip={{
diff --git a/apps/studio/components/interfaces/Integrations/VercelGithub/ProjectLinkerComponents.tsx b/apps/studio/components/interfaces/Integrations/VercelGithub/ProjectLinkerComponents.tsx
index b26abf0755f..9b14ec9442b 100644
--- a/apps/studio/components/interfaces/Integrations/VercelGithub/ProjectLinkerComponents.tsx
+++ b/apps/studio/components/interfaces/Integrations/VercelGithub/ProjectLinkerComponents.tsx
@@ -71,7 +71,6 @@ export const ForeignProjectSelector = ({
<Popover open={open} onOpenChange={onOpenChange}>
<PopoverTrigger asChild>
<Button
- variant="default"
block
disabled={loadingForeignProjects}
loading={loadingForeignProjects}
@@ -195,7 +194,6 @@ export const SupabaseProjectSelector = ({
renderTrigger={() => {
return (
<Button
- variant="default"
block
disabled={defaultSupabaseProject !== undefined || loadingSupabaseProjects}
loading={loadingSupabaseProjects}
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/ColumnType.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/ColumnType.tsx
index 6038d82f155..576467916dd 100644
--- a/apps/studio/components/interfaces/Integrations/Wrappers/ColumnType.tsx
+++ b/apps/studio/components/interfaces/Integrations/Wrappers/ColumnType.tsx
@@ -273,7 +273,7 @@ export const ColumnType = ({
specific use case.
</p>
<div className="flex items-center space-x-2 mt-3">
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<Link href={recommendation.reference} target="_blank" rel="noreferrer">
Read more
</Link>
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/CreateIcebergWrapperSheet.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/CreateIcebergWrapperSheet.tsx
index 1a908dae33e..a34ebc56724 100644
--- a/apps/studio/components/interfaces/Integrations/Wrappers/CreateIcebergWrapperSheet.tsx
+++ b/apps/studio/components/interfaces/Integrations/Wrappers/CreateIcebergWrapperSheet.tsx
@@ -387,7 +387,6 @@ export const CreateIcebergWrapperSheet = ({
<SheetFooter>
<Button
size="tiny"
- variant="default"
type="button"
onClick={onCloseWithConfirmation}
disabled={isLoading}
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/CreateWrapperSheet.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/CreateWrapperSheet.tsx
index dc95a80bbd1..40b1cd124f7 100644
--- a/apps/studio/components/interfaces/Integrations/Wrappers/CreateWrapperSheet.tsx
+++ b/apps/studio/components/interfaces/Integrations/Wrappers/CreateWrapperSheet.tsx
@@ -427,7 +427,6 @@ export const CreateWrapperSheet = ({
</div>
<div className="flex items-center space-x-2">
<Button
- variant="default"
className="px-1"
icon={<Edit />}
onClick={() => {
@@ -435,7 +434,6 @@ export const CreateWrapperSheet = ({
}}
/>
<Button
- variant="default"
className="px-1"
icon={<Trash />}
onClick={() => {
@@ -448,7 +446,7 @@ export const CreateWrapperSheet = ({
})}
<div className="flex justify-end">
- <Button variant="default" onClick={() => setSelectedTableToEdit(NewTable)}>
+ <Button onClick={() => setSelectedTableToEdit(NewTable)}>
Add foreign table
</Button>
</div>
@@ -506,7 +504,6 @@ export const CreateWrapperSheet = ({
<SheetFooter>
<Button
size="tiny"
- variant="default"
type="button"
onClick={onCloseWithConfirmation}
disabled={isSubmitting}
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/EditWrapperSheet.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/EditWrapperSheet.tsx
index ddb7616907f..6eb50175642 100644
--- a/apps/studio/components/interfaces/Integrations/Wrappers/EditWrapperSheet.tsx
+++ b/apps/studio/components/interfaces/Integrations/Wrappers/EditWrapperSheet.tsx
@@ -281,7 +281,6 @@ export const EditWrapperSheet = ({
</div>
<div className="flex items-center space-x-2">
<Button
- variant="default"
className="px-1"
icon={<Edit />}
onClick={() => {
@@ -289,7 +288,6 @@ export const EditWrapperSheet = ({
}}
/>
<Button
- variant="default"
className="px-1"
icon={<Trash />}
onClick={() => {
@@ -302,7 +300,7 @@ export const EditWrapperSheet = ({
})}
<div className="flex justify-end">
- <Button variant="default" onClick={() => setSelectedTableToEdit(NewTable)}>
+ <Button onClick={() => setSelectedTableToEdit(NewTable)}>
Add foreign table
</Button>
</div>
@@ -315,13 +313,7 @@ export const EditWrapperSheet = ({
</FormSection>
</div>
<SheetFooter>
- <Button
- size="tiny"
- variant="default"
- type="button"
- onClick={confirmOnClose}
- disabled={isSubmitting}
- >
+ <Button size="tiny" type="button" onClick={confirmOnClose} disabled={isSubmitting}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/OverviewTab.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/OverviewTab.tsx
index d4a071b7d26..7982d6f4b2a 100644
--- a/apps/studio/components/interfaces/Integrations/Wrappers/OverviewTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/Wrappers/OverviewTab.tsx
@@ -121,7 +121,7 @@ const AddNewWrapperCTA = () => {
wrappers. Afterward, you can recreate the wrappers.
</p>
</div>
- <Button asChild variant="default" className="w-min mt-3">
+ <Button asChild className="w-min mt-3">
<Link
href={
databaseNeedsUpgrading
@@ -139,7 +139,6 @@ const AddNewWrapperCTA = () => {
return (
<div className="py-3 px-5 border rounded-md">
<ButtonTooltip
- variant="default"
onClick={() => setCreateWrapperShown(true)}
disabled={!canCreateWrapper}
tooltip={{
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/WrapperRow.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/WrapperRow.tsx
index e499fdda2ce..5ef2f2a5c7e 100644
--- a/apps/studio/components/interfaces/Integrations/Wrappers/WrapperRow.tsx
+++ b/apps/studio/components/interfaces/Integrations/Wrappers/WrapperRow.tsx
@@ -123,7 +123,6 @@ export const WrapperRow = ({ wrapper }: WrapperRowProps) => {
<div className="flex items-center gap-x-2">
<ButtonTooltip
disabled={!canManageWrappers}
- variant="default"
icon={<Edit strokeWidth={1.5} />}
className="px-1.5"
onClick={() => setSelectedWrapperToEdit(wrapper.id.toString())}
@@ -137,7 +136,6 @@ export const WrapperRow = ({ wrapper }: WrapperRowProps) => {
}}
/>
<ButtonTooltip
- variant="default"
disabled={!canManageWrappers}
icon={<Trash strokeWidth={1.5} />}
className="px-1.5"
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/WrapperTableEditor.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/WrapperTableEditor.tsx
index 0d7ccbcd348..3e5ca9aeffc 100644
--- a/apps/studio/components/interfaces/Integrations/Wrappers/WrapperTableEditor.tsx
+++ b/apps/studio/components/interfaces/Integrations/Wrappers/WrapperTableEditor.tsx
@@ -120,7 +120,6 @@ const WrapperTableEditor = ({
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button
- variant="default"
role="combobox"
aria-expanded={open}
aria-controls={listboxId}
@@ -493,11 +492,7 @@ const TableForm = ({
/>
</div>
))}
- <Button
- variant="default"
- onClick={() => appendColumn({ name: '', type: 'text' })}
- className="self-start"
- >
+ <Button onClick={() => appendColumn({ name: '', type: 'text' })} className="self-start">
Add column
</Button>
{errors.columns != null && errors.columns.message != null && (
diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/InstallationError.tsx b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/InstallationError.tsx
index 9bd3dfc2f56..5f0bb202a2f 100644
--- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/InstallationError.tsx
+++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/InstallationError.tsx
@@ -30,12 +30,7 @@ export const InstallationError = ({
error={errorMessage ? { message: errorMessage } : undefined}
description="There was an error during the uninstallation of the Stripe Sync Engine, please try again. If the problem persists, contact support."
additionalActions={
- <Button
- variant="default"
- onClick={handleUninstall}
- disabled={uninstalling}
- loading={uninstalling}
- >
+ <Button onClick={handleUninstall} disabled={uninstalling} loading={uninstalling}>
Retry uninstallation
</Button>
}
@@ -58,12 +53,7 @@ export const InstallationError = ({
: 'There was an error during the installation of the Stripe Sync Engine, please try reinstalling the integration. If the problem persists, contact support.'
}
additionalActions={
- <Button
- variant="default"
- onClick={handleOpenInstallSheet}
- disabled={installing}
- loading={installing}
- >
+ <Button onClick={handleOpenInstallSheet} disabled={installing} loading={installing}>
{isUpgrade ? 'Retry upgrade' : 'Retry installation'}
</Button>
}
diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/IntegrationActions.tsx b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/IntegrationActions.tsx
index 1fffa3a3dd4..c0d4381bb5e 100644
--- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/IntegrationActions.tsx
+++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/IntegrationActions.tsx
@@ -55,7 +55,6 @@ export const IntegrationInstalledActions = ({
</ButtonTooltip>
)}
<ButtonTooltip
- variant="default"
onClick={() => setShowUninstallModal(true)}
disabled={disabled}
loading={uninstalling}
@@ -123,7 +122,7 @@ export const IntegrationNotInstalledActions = ({
</ButtonTooltip>
)}
{installError && (
- <Button variant="default" loading={isUninstallRequested} onClick={handleUninstall}>
+ <Button loading={isUninstallRequested} onClick={handleUninstall}>
Uninstall
</Button>
)}
diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/OverviewTab.tsx b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/OverviewTab.tsx
index 96180bb54b6..287fc7f0ed3 100644
--- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/OverviewTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/OverviewTab.tsx
@@ -303,7 +303,7 @@ const StripeSyncContent = ({ hideInstallCTA = false }: { hideInstallCTA?: boolea
/>
<div className="flex items-center gap-x-2">
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<Link
target="_blank"
rel="noopener noreferrer"
@@ -312,7 +312,7 @@ const StripeSyncContent = ({ hideInstallCTA = false }: { hideInstallCTA?: boolea
Get Stripe API key
</Link>
</Button>
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<Link
target="_blank"
rel="noopener noreferrer"
@@ -335,7 +335,6 @@ const StripeSyncContent = ({ hideInstallCTA = false }: { hideInstallCTA?: boolea
<SheetFooter>
<Button
- variant="default"
disabled={isInstallRequested}
onClick={() => handleCloseInstallSheet(false)}
>
diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx
index d6f70d14cd6..d38e40edaa9 100644
--- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx
+++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx
@@ -115,7 +115,7 @@ export const StripeSyncSettingsPage = () => {
</p>
</div>
- <Button asChild variant="default" className="ml-8 @md:ml-0">
+ <Button asChild className="ml-8 @md:ml-0">
<Link href={`/project/${ref}/editor?schema=stripe`}>Open Table Editor</Link>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/rotate-key-dialog.tsx b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/rotate-key-dialog.tsx
index 740d6a60657..001c7c84bee 100644
--- a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/rotate-key-dialog.tsx
+++ b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/rotate-key-dialog.tsx
@@ -152,7 +152,6 @@ export function RotateKeyDialog({
All of my application's components have picked up the standby key.
</p>
<ButtonTooltip
- variant="default"
icon={<Info />}
className="px-1.5 py-2 mt-0.5"
tooltip={{
@@ -188,7 +187,6 @@ export function RotateKeyDialog({
To invalidate non-expired JWTs I need to explicitly revoke the currently used key.
</p>
<ButtonTooltip
- variant="default"
icon={<Info />}
className="px-1.5 py-2 mt-0.5"
tooltip={{
diff --git a/apps/studio/components/interfaces/JwtSecrets/jwt-settings.tsx b/apps/studio/components/interfaces/JwtSecrets/jwt-settings.tsx
index 6184fcaffcd..60470876c17 100644
--- a/apps/studio/components/interfaces/JwtSecrets/jwt-settings.tsx
+++ b/apps/studio/components/interfaces/JwtSecrets/jwt-settings.tsx
@@ -196,7 +196,7 @@ export const JWTSettings = () => {
</p>
)}
- <Button asChild variant="default" icon={<ExternalLink />} className="mt-2">
+ <Button asChild icon={<ExternalLink />} className="mt-2">
<Link href={`/project/${projectRef}/settings/api-keys`}>Go to API keys</Link>
</Button>
</Admonition>
@@ -364,7 +364,7 @@ export const JWTSettings = () => {
<div className="flex flex-row gap-x-2 mt-4">
{disableLegacyJwtSecretRotation ? (
- <Button variant="default" icon={<ExternalLink className="size-4" />} asChild>
+ <Button icon={<ExternalLink className="size-4" />} asChild>
<Link
href={`${DOCS_URL}/guides/auth/signing-keys#getting-started`}
target="_blank"
@@ -378,7 +378,6 @@ export const JWTSettings = () => {
<DropdownMenuTrigger asChild>
<ButtonTooltip
disabled={!canGenerateNewJWTSecret}
- variant="default"
iconRight={<ChevronDown size={14} />}
loading={isUpdatingJwtSecret}
tooltip={{
@@ -562,7 +561,6 @@ export const JWTSettings = () => {
</DialogSection>
<DialogFooter>
<Button
- variant="default"
onClick={() => {
setIsCreatingKey(false)
setCustomToken('')
diff --git a/apps/studio/components/interfaces/Linter/Linter.utils.tsx b/apps/studio/components/interfaces/Linter/Linter.utils.tsx
index 0796fb3fadd..70a51eddbb5 100644
--- a/apps/studio/components/interfaces/Linter/Linter.utils.tsx
+++ b/apps/studio/components/interfaces/Linter/Linter.utils.tsx
@@ -507,7 +507,7 @@ export const LintCTA = ({
const linkText = lintInfo.linkText
return (
- <Button asChild variant="default">
+ <Button asChild>
<Link href={link} rel="noreferrer" className="no-underline">
{linkText}
</Link>
diff --git a/apps/studio/components/interfaces/Linter/LinterFilters.tsx b/apps/studio/components/interfaces/Linter/LinterFilters.tsx
index 2e70825183f..5372f1fcea9 100644
--- a/apps/studio/components/interfaces/Linter/LinterFilters.tsx
+++ b/apps/studio/components/interfaces/Linter/LinterFilters.tsx
@@ -65,7 +65,6 @@ const LinterFilters = ({
<ShortcutTooltip shortcutId={SHORTCUT_IDS.ADVISORS_REFRESH} side="bottom">
<Button
size="tiny"
- variant="default"
disabled={isLoading}
onClick={onClickRefresh}
icon={
diff --git a/apps/studio/components/interfaces/Linter/LinterPageFooter.tsx b/apps/studio/components/interfaces/Linter/LinterPageFooter.tsx
index fdeead296c4..96ab7a19edf 100644
--- a/apps/studio/components/interfaces/Linter/LinterPageFooter.tsx
+++ b/apps/studio/components/interfaces/Linter/LinterPageFooter.tsx
@@ -55,7 +55,6 @@ export const LinterPageFooter = ({
align="start"
>
<Button
- variant="default"
className="mt-3! w-min"
disabled={isLoading || isRefetching}
loading={isLoading || isRefetching}
diff --git a/apps/studio/components/interfaces/LocalDropdown.tsx b/apps/studio/components/interfaces/LocalDropdown.tsx
index 6f550d14537..f8b9f41a506 100644
--- a/apps/studio/components/interfaces/LocalDropdown.tsx
+++ b/apps/studio/components/interfaces/LocalDropdown.tsx
@@ -44,7 +44,6 @@ export const LocalDropdown = ({
>
<DropdownMenuTrigger className={cn('border shrink-0 px-3', triggerClassName)} asChild>
<ButtonTooltip
- variant="default"
className="[&>span]:flex px-0 py-0 rounded-full overflow-hidden h-8 w-8"
tooltip={{ content: { text: 'Settings' } }}
>
diff --git a/apps/studio/components/interfaces/LogDrains/LogDrainsEmpty.tsx b/apps/studio/components/interfaces/LogDrains/LogDrainsEmpty.tsx
index 03ac874e6c5..e73e85f5abe 100644
--- a/apps/studio/components/interfaces/LogDrains/LogDrainsEmpty.tsx
+++ b/apps/studio/components/interfaces/LogDrains/LogDrainsEmpty.tsx
@@ -61,7 +61,7 @@ export const LogDrainsEmpty = () => {
<h3 className="heading-default">{item.title}</h3>
</div>
<p className="text-foreground-light text-sm mb-4 flex-1">{item.description}</p>
- <Button variant="default" className="w-full" asChild>
+ <Button className="w-full" asChild>
<Link href={item.link} target="_blank">
{item.label}
</Link>
diff --git a/apps/studio/components/interfaces/Observability/DatabaseConnections/Activity.tsx b/apps/studio/components/interfaces/Observability/DatabaseConnections/Activity.tsx
index 24d693d77ae..f3bf1b37f4c 100644
--- a/apps/studio/components/interfaces/Observability/DatabaseConnections/Activity.tsx
+++ b/apps/studio/components/interfaces/Observability/DatabaseConnections/Activity.tsx
@@ -277,7 +277,7 @@ export const Activity = ({ live }: ActivityProps) => {
There are no sessions that match the selected filters. Try adjusting or
clearing them.
</p>
- <Button variant="default" className="mt-2" onClick={onResetFilters}>
+ <Button className="mt-2" onClick={onResetFilters}>
Reset filters
</Button>
</TableCell>
diff --git a/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx b/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx
index 04af2231f0f..858c8a1aabc 100644
--- a/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx
+++ b/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx
@@ -241,7 +241,6 @@ export const AuditLogs = () => {
)}
</div>
<Button
- variant="default"
disabled={isLoading || isRefetching}
icon={<RefreshCw className={isRefetching ? 'animate-spin' : ''} />}
onClick={() => refetch()}
@@ -422,7 +421,7 @@ export const AuditLogs = () => {
)}
</Table.td>
<Table.td align="right">
- <Button variant="default">View details</Button>
+ <Button>View details</Button>
</Table.td>
</Table.tr>
)
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/BillingCustomerData.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/BillingCustomerData.tsx
index 8484dccb449..1a864b02555 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/BillingCustomerData.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/BillingCustomerData.tsx
@@ -239,11 +239,7 @@ export const BillingCustomerData = () => {
</span>
)}
<div className="flex items-center gap-2">
- <Button
- variant="default"
- onClick={handleReset}
- disabled={isSubmitDisabled}
- >
+ <Button onClick={handleReset} disabled={isSubmitDisabled}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/BillingCustomerDataForm.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/BillingCustomerDataForm.tsx
index 01190934173..88b3b2a23a6 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/BillingCustomerDataForm.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/BillingCustomerDataForm.tsx
@@ -143,7 +143,6 @@ export const BillingCustomerDataForm = ({
<PopoverTrigger asChild>
<FormControl>
<Button
- variant="default"
role="combobox"
size="medium"
disabled={disabled}
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx
index 9cb79b0c33e..a46f66a38be 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx
@@ -184,7 +184,6 @@ const CostControl = ({}: CostControlProps) => {
</p>
<ProjectUpdateDisabledTooltip projectUpdateDisabled={projectUpdateDisabled}>
<Button
- variant="default"
className="mt-4 pointer-events-auto"
disabled={!canChangeTier}
onClick={() => snap.setPanelKey('costControl')}
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx
index 0cf99a92b90..e507106268e 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx
@@ -106,7 +106,7 @@ const SpendCapSidePanel = () => {
header={
<div className="flex items-center justify-between w-full">
<h4>Spend cap</h4>
- <Button asChild variant="default" icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
<Link
href={`${DOCS_URL}/guides/platform/cost-control#spend-cap`}
target="_blank"
@@ -194,7 +194,7 @@ const SpendCapSidePanel = () => {
title="Toggling of the spend cap is only available on the Pro Plan"
description="Upgrade your plan to disable the spend cap"
actions={
- <Button variant="default" onClick={() => snap.setPanelKey('subscriptionPlan')}>
+ <Button onClick={() => snap.setPanelKey('subscriptionPlan')}>
View available plans
</Button>
}
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CreditCodeRedemption.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CreditCodeRedemption.tsx
index cb95d666dec..745255c2207 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/CreditCodeRedemption.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/CreditCodeRedemption.tsx
@@ -155,7 +155,6 @@ export const CreditCodeRedemption = ({
{!modalVisible && (
<DialogTrigger asChild>
<ButtonTooltip
- variant="default"
className="pointer-events-auto"
disabled={codeRedemptionDisabled}
tooltip={{
@@ -237,7 +236,7 @@ export const CreditCodeRedemption = ({
)}
{!router.pathname.includes('/org/') && (
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/org/${org?.slug}`}>Go to organization</Link>
</Button>
)}
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CreditTopUp.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CreditTopUp.tsx
index d92d9651af2..8481e00fae7 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/CreditTopUp.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/CreditTopUp.tsx
@@ -259,7 +259,6 @@ export const CreditTopUp = ({ slug }: { slug: string | undefined }) => {
<Dialog open={topUpModalVisible} onOpenChange={(open) => onTopUpDialogVisibilityChange(open)}>
<DialogTrigger asChild>
<ButtonTooltip
- variant="default"
className="pointer-events-auto"
disabled={!canTopUpCredits || !isPermissionsLoaded}
tooltip={{
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx
index 11b2bf2fb27..6139406abda 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx
@@ -71,7 +71,7 @@ export const Restriction = () => {
: 'Please disable spend cap to ensure that your projects remain available.'}
</p>
<div className="flex items-center gap-x-2 mt-3">
- <Button key="upgrade-button" asChild variant="default">
+ <Button key="upgrade-button" asChild>
<Link
href={`/org/${org?.slug}/billing?panel=${
org.plan.id === 'free' ? 'subscriptionPlan' : 'costControl'
@@ -81,11 +81,11 @@ export const Restriction = () => {
</Link>
</Button>
{!isUsagePage && (
- <Button key="view-usage-button" asChild variant="default">
+ <Button key="view-usage-button" asChild>
<Link href={`/org/${org?.slug}/usage`}>View usage</Link>
</Button>
)}
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<a href={`${DOCS_URL}/guides/platform/cost-control#spend-cap`}>About spend cap</a>
</Button>
</div>
@@ -110,7 +110,7 @@ export const Restriction = () => {
402 status code.
</p>
<div className="flex items-center gap-x-2 mt-3">
- <Button asChild key="upgrade-button" variant="default">
+ <Button asChild key="upgrade-button">
<Link
href={`/org/${org?.slug}/billing?panel=${
org.plan.id === 'free'
@@ -123,12 +123,12 @@ export const Restriction = () => {
</Button>
{!isUsagePage && (
- <Button key="view-usage-button" asChild variant="default">
+ <Button key="view-usage-button" asChild>
<Link href={`/org/${org?.slug}/usage`}>View usage</Link>
</Button>
)}
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<a href={`${DOCS_URL}/guides/platform/billing-faq#fair-use-policy`}>
About Fair Use Policy
</a>
@@ -153,7 +153,7 @@ export const Restriction = () => {
exceed your plan's quota.
</p>
<div className="flex items-center gap-x-2 mt-3">
- <Button key="upgrade-button" asChild variant="default">
+ <Button key="upgrade-button" asChild>
<Link
href={`/org/${org?.slug}/billing?panel=${
org.plan.id === 'free'
@@ -165,11 +165,11 @@ export const Restriction = () => {
</Link>
</Button>
{!isUsagePage && (
- <Button key="view-usage-button" asChild variant="default">
+ <Button key="view-usage-button" asChild>
<Link href={`/org/${org?.slug}/usage`}>View usage</Link>
</Button>
)}
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<a href={`${DOCS_URL}/guides/platform/billing-faq#fair-use-policy`}>
About Fair Use Policy
</a>
@@ -193,7 +193,7 @@ export const Restriction = () => {
are fully lifted.
</p>
<div className="flex items-center gap-x-2 mt-3">
- <Button key="upgrade-button" asChild variant="default">
+ <Button key="upgrade-button" asChild>
<Link
href={`/org/${org?.slug}/billing?panel=${
org.plan.id === 'free'
@@ -205,11 +205,11 @@ export const Restriction = () => {
</Link>
</Button>
{!isUsagePage && (
- <Button key="view-usage-button" asChild variant="default">
+ <Button key="view-usage-button" asChild>
<Link href={`/org/${org?.slug}/usage`}>View usage</Link>
</Button>
)}
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<a href={`${DOCS_URL}/guides/platform/billing-faq#fair-use-policy`}>
About Fair Use Policy
</a>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx
index b75d324bc0d..9674d99f0af 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx
@@ -48,7 +48,6 @@ export const EnterpriseCard = ({ plan, isCurrentPlan, variants }: EnterpriseCard
<Button
block
asChild
- variant="default"
size="tiny"
onClick={() =>
track('studio_pricing_plan_cta_clicked', {
@@ -84,7 +83,6 @@ export const EnterpriseCard = ({ plan, isCurrentPlan, variants }: EnterpriseCard
<Button
block
asChild
- variant="default"
size="tiny"
onClick={() =>
track('studio_pricing_plan_cta_clicked', {
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/ExitSurveyModal.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/ExitSurveyModal.tsx
index 093a5f52f79..9443011b0e3 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/ExitSurveyModal.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/ExitSurveyModal.tsx
@@ -191,9 +191,7 @@ export const ExitSurveyModal = ({ visible, projects, onClose }: ExitSurveyModalP
</DialogSection>
<DialogFooter>
- <Button variant="default" onClick={() => onClose()}>
- Cancel
- </Button>
+ <Button onClick={() => onClose()}>Cancel</Button>
<ProjectUpdateDisabledTooltip projectUpdateDisabled={subscriptionUpdateDisabled}>
<Button
variant="danger"
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx
index 4ea53cba689..8f0d0343519 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx
@@ -234,7 +234,6 @@ const PaymentMethodSelection = forwardRef(function PaymentMethodSelection(
<div>
<p>{errorMessage} Update your billing address or tax ID before upgrading your plan.</p>
<Button
- variant="default"
className="mt-2"
onClick={() => {
if (onClose) {
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanCard.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanCard.tsx
index d6a7fee8455..09efd36d419 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanCard.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanCard.tsx
@@ -64,7 +64,7 @@ export function PlanCard({
const gaps: GapFeature[] = hasPlanGaps(variant) ? (GAPS_BY_PLAN_ID[plan.id] ?? []) : []
const ctaButton = isCurrentPlan ? (
- <Button block disabled variant="default">
+ <Button block disabled>
Current plan
</Button>
) : !canUpdateSubscription &&
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdatePanelShell.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdatePanelShell.tsx
index a7324843807..eef5b0ee34c 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdatePanelShell.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdatePanelShell.tsx
@@ -27,7 +27,7 @@ export function PlanUpdateSheetShell({
header={
<div className="flex items-center justify-between w-full">
<h4>Change subscription plan for {organizationName}</h4>
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<a href="https://supabase.com/pricing" target="_blank" rel="noreferrer">
Pricing
</a>
@@ -75,7 +75,7 @@ export function PlanUpdateFullScreenShell({
Pricing FAQ
</a>
</Button>
- <Button asChild variant="default" iconRight={<ExternalLink />}>
+ <Button asChild iconRight={<ExternalLink />}>
<a href="https://supabase.com/pricing#compare-plans" target="_blank" rel="noreferrer">
Compare plans
</a>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx
index f620c0f3be8..ad226853155 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx
@@ -86,7 +86,6 @@ const Subscription = () => {
{canChangeTier && (
<div className="flex space-x-2">
<Button
- variant="default"
className="pointer-events-auto"
onClick={() => snap.setPanelKey('subscriptionPlan')}
>
@@ -118,7 +117,7 @@ const Subscription = () => {
title={`Unable to update plan from ${planName}`}
description="Please contact us if you'd like to change your plan."
actions={
- <Button asChild key="contact-support" variant="default">
+ <Button asChild key="contact-support">
<SupportLink
queryParams={{
category: SupportCategories.SALES_ENQUIRY,
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/UpgradeModal.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/UpgradeModal.tsx
index b15a7da9658..f7c07b21047 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/UpgradeModal.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/UpgradeModal.tsx
@@ -127,7 +127,7 @@ const UpgradeSurveyModal = ({
</div>
</DialogSection>
<DialogFooter>
- <Button variant="default" disabled={isSubmitting} onClick={() => onClose()}>
+ <Button disabled={isSubmitting} onClick={() => onClose()}>
Skip
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Organization/CloudMarketplace/AwsMarketplaceOnboarding.tsx b/apps/studio/components/interfaces/Organization/CloudMarketplace/AwsMarketplaceOnboarding.tsx
index fcd26bfb2e1..91ba534f3d9 100644
--- a/apps/studio/components/interfaces/Organization/CloudMarketplace/AwsMarketplaceOnboarding.tsx
+++ b/apps/studio/components/interfaces/Organization/CloudMarketplace/AwsMarketplaceOnboarding.tsx
@@ -168,7 +168,7 @@ export const AwsMarketplaceOnboardingScreen = ({ buyerId }: { buyerId?: string }
</p>
}
/>
- <Button variant="default" block asChild>
+ <Button block asChild>
<Link href="/organizations">Back to dashboard</Link>
</Button>
</div>
@@ -204,7 +204,7 @@ export const AwsMarketplaceOnboardingScreen = ({ buyerId }: { buyerId?: string }
</>
}
/>
- <Button variant="default" block asChild>
+ <Button block asChild>
<Link href="/organizations">Back to dashboard</Link>
</Button>
</div>
@@ -219,7 +219,7 @@ export const AwsMarketplaceOnboardingScreen = ({ buyerId }: { buyerId?: string }
<AwsMarketplaceInterstitial description={getContractIneligibilityDescription(reason)}>
<div className="flex flex-col gap-3">
<ContractIneligibilityNotice reason={reason} />
- <Button variant="default" block asChild>
+ <Button block asChild>
<Link href="/organizations">Back to dashboard</Link>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Organization/Documents/CustomDocument.tsx b/apps/studio/components/interfaces/Organization/Documents/CustomDocument.tsx
index f76881a297b..0d2fce1c7da 100644
--- a/apps/studio/components/interfaces/Organization/Documents/CustomDocument.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/CustomDocument.tsx
@@ -25,7 +25,7 @@ export const CustomDocument = ({ doc }: CustomDocumentProps) => {
</ScaffoldSectionDetail>
<ScaffoldSectionContent>
<div className="@lg:flex items-center justify-center h-full">
- <Button asChild variant="default" iconRight={<ExternalLink />}>
+ <Button asChild iconRight={<ExternalLink />}>
<a download href={doc.action.url} target="_blank" rel="noreferrer noopener">
{doc.action.text}
</a>
diff --git a/apps/studio/components/interfaces/Organization/Documents/DPA.tsx b/apps/studio/components/interfaces/Organization/Documents/DPA.tsx
index 974ccc2621f..cded3f3fe6f 100644
--- a/apps/studio/components/interfaces/Organization/Documents/DPA.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/DPA.tsx
@@ -26,7 +26,7 @@ export const DPA = () => {
</ScaffoldSectionDetail>
<ScaffoldSectionContent>
<div className="@lg:flex items-center justify-center h-full">
- <Button asChild variant="default">
+ <Button asChild>
<a
href="https://supabase.com/legal/customer-resources/data-processing-addendum"
target="_blank"
diff --git a/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx b/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx
index 39750439475..a5f42e84dd2 100644
--- a/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx
@@ -32,7 +32,7 @@ export const HIPAA = () => {
</ScaffoldSectionDetail>
<ScaffoldSectionContent>
<div className="@lg:flex items-center justify-center h-full">
- <Button asChild variant="default" iconRight={<ExternalLink />}>
+ <Button asChild iconRight={<ExternalLink />}>
<a
href="https://forms.supabase.com/hipaa2"
target="_blank"
diff --git a/apps/studio/components/interfaces/Organization/Documents/ISO27001.tsx b/apps/studio/components/interfaces/Organization/Documents/ISO27001.tsx
index fc2ee211067..93dd2c7d8f7 100644
--- a/apps/studio/components/interfaces/Organization/Documents/ISO27001.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/ISO27001.tsx
@@ -81,12 +81,7 @@ export const ISO27001 = () => {
</div>
) : (
<div className="@lg:flex items-center justify-center h-full">
- <Button
- variant="default"
- icon={<Download />}
- onClick={handleDownloadClick}
- disabled={!slug}
- >
+ <Button icon={<Download />} onClick={handleDownloadClick} disabled={!slug}>
Download ISO 27001 Certificate
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx b/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx
index ca7c554ffb1..523b5004261 100644
--- a/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx
@@ -79,12 +79,7 @@ export const SOC2 = () => {
</div>
) : (
<div className="@lg:flex items-center justify-center h-full">
- <Button
- variant="default"
- icon={<Download />}
- onClick={handleDownloadClick}
- disabled={!slug}
- >
+ <Button icon={<Download />} onClick={handleDownloadClick} disabled={!slug}>
Download SOC2 Type 2 Report
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Organization/Documents/SecurityQuestionnaire.tsx b/apps/studio/components/interfaces/Organization/Documents/SecurityQuestionnaire.tsx
index 88a6930fa21..96a0ab7ac2f 100644
--- a/apps/studio/components/interfaces/Organization/Documents/SecurityQuestionnaire.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/SecurityQuestionnaire.tsx
@@ -68,7 +68,7 @@ export const SecurityQuestionnaire = () => {
<NoPermission resourceText="access our security questionnaire" />
) : !hasAccessToQuestionnaire ? (
<div className="@lg:flex items-center justify-center h-full">
- <Button asChild variant="default">
+ <Button asChild>
<Link
href={`/org/${slug}/billing?panel=subscriptionPlan&source=securityQuestionnaire`}
>
@@ -78,12 +78,7 @@ export const SecurityQuestionnaire = () => {
</div>
) : (
<div className="@lg:flex items-center justify-center h-full">
- <Button
- variant="default"
- icon={<Download />}
- onClick={handleDownloadClick}
- disabled={!slug}
- >
+ <Button icon={<Download />} onClick={handleDownloadClick} disabled={!slug}>
Download Questionnaire
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Organization/Documents/TIA.tsx b/apps/studio/components/interfaces/Organization/Documents/TIA.tsx
index c9a63b85e14..48354dd3680 100644
--- a/apps/studio/components/interfaces/Organization/Documents/TIA.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/TIA.tsx
@@ -24,7 +24,7 @@ export const TIA = () => {
</ScaffoldSectionDetail>
<ScaffoldSectionContent>
<div className="@lg:flex items-center justify-center h-full">
- <Button asChild variant="default" iconRight={<Download />}>
+ <Button asChild iconRight={<Download />}>
<a
href="https://supabase.com/downloads/docs/Supabase+TIA+250314.pdf"
target="_blank"
diff --git a/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx b/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx
index c1a7b8811e6..9c1ce018275 100644
--- a/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx
+++ b/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx
@@ -261,7 +261,6 @@ export const InvoicesSettings = () => {
<Button
icon={<ChevronLeft />}
aria-label="Previous page"
- variant="default"
size="tiny"
disabled={page === 1}
onClick={async () => setPage(page - 1)}
@@ -269,7 +268,6 @@ export const InvoicesSettings = () => {
<Button
icon={<ChevronRight />}
aria-label="Next page"
- variant="default"
size="tiny"
disabled={page * PAGE_LIMIT >= (count ?? 0)}
onClick={async () => setPage(page + 1)}
diff --git a/apps/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx b/apps/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx
index f8028027a28..b70a55e997f 100644
--- a/apps/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx
+++ b/apps/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx
@@ -415,7 +415,6 @@ export const NewOrgForm = ({
footer={
<div key="panel-footer" className="flex w-full items-center justify-between">
<Button
- variant="default"
disabled={newOrgLoading || paymentConfirmationLoading}
onClick={() => {
if (!!lastVisitedOrganization) router.push(`/org/${lastVisitedOrganization}`)
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx
index 2a74a01c673..dda5360aa9d 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx
@@ -43,12 +43,7 @@ export const AuthorizedAppRow = ({ app, onSelectRevoke }: AuthorizedAppRowProps)
/>
</TableCell>
<TableCell className="text-right">
- <Button
- variant="default"
- icon={<Trash />}
- className="px-1"
- onClick={() => onSelectRevoke()}
- />
+ <Button icon={<Trash />} className="px-1" onClick={() => onSelectRevoke()} />
</TableCell>
</TableRow>
)
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
index a8c75badf28..d46aa01f2e4 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
@@ -68,7 +68,7 @@ export const OAuthAppRow = ({ app, onSelectEdit, onSelectDelete }: OAuthAppRowPr
<TableCell className="text-right">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" icon={<MoreVertical />} className="px-1" />
+ <Button icon={<MoreVertical />} className="px-1" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" side="bottom" className="w-32">
<Tooltip>
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/OAuthSecrets.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/OAuthSecrets.tsx
index 6011f897441..1dc8720ef4f 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/OAuthSecrets.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/OAuthSecrets.tsx
@@ -54,7 +54,6 @@ export const OAuthSecrets = ({ selectedApp }: Props) => {
{canManageSecrets && (
<ButtonTooltip
- variant="default"
disabled={!appId || secrets.length >= 5}
onClick={handleCreateSecret}
loading={isCreatingSecret}
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/SecretRow.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/SecretRow.tsx
index f00e35e196a..8315926148d 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/SecretRow.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/SecretRow.tsx
@@ -87,7 +87,6 @@ export const SecretRow = ({ secret, appId }: SecretRowProps) => {
</div>
<div className="flex items-center gap-2">
<ButtonTooltip
- variant="default"
className="w-7"
icon={<Trash />}
disabled={!appId || !canManageSecrets || isLast}
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx
index 844aaf421ee..69c14946c9d 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx
@@ -76,7 +76,7 @@ const Scope = ({
</div>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" iconRight={<ChevronDown />}>
+ <Button iconRight={<ChevronDown />}>
<p>{accessDescription}</p>
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
index b71e7d95556..d3210a835aa 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
@@ -274,7 +274,7 @@ export const PublishAppSidePanel = ({
<div className="absolute bottom-1 right-1">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" className="px-1">
+ <Button className="px-1">
<Edit />
</Button>
</DropdownMenuTrigger>
@@ -337,10 +337,7 @@ export const PublishAppSidePanel = ({
All URLs must use HTTPS, except for localhost
</p>
</div>
- <Button
- variant="default"
- onClick={() => appendCallbackUrl({ id: uuidv4(), value: '' })}
- >
+ <Button onClick={() => appendCallbackUrl({ id: uuidv4(), value: '' })}>
Add URL
</Button>
</div>
@@ -414,14 +411,13 @@ export const PublishAppSidePanel = ({
<SidePanel.Content>
<div className="pt-2 pb-3 flex items-center justify-between">
<Button
- variant="default"
onClick={() => setShowPreview(true)}
disabled={name.length === 0 || website.length === 0}
>
Preview consent for users
</Button>
<div className="flex items-center space-x-2">
- <Button variant="default" disabled={isSubmitting} onClick={() => onClose()}>
+ <Button disabled={isSubmitting} onClick={() => onClose()}>
Cancel
</Button>
<Shortcut
diff --git a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/AppsList/AppsListTable.tsx b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/AppsList/AppsListTable.tsx
index 700524f21f9..5842cf144d2 100644
--- a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/AppsList/AppsListTable.tsx
+++ b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/AppsList/AppsListTable.tsx
@@ -80,7 +80,7 @@ export function AppsListTable({
<TableCell className="text-right">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" icon={<MoreVertical size={14} />} className="w-7" />
+ <Button icon={<MoreVertical size={14} />} className="w-7" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" side="bottom" className="w-44">
<DropdownMenuItem className="gap-x-2" onClick={() => onViewApp(app)}>
diff --git a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/CreateAppSheet/CreateAppSheet.tsx b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/CreateAppSheet/CreateAppSheet.tsx
index fe0509f45b1..8e468725954 100644
--- a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/CreateAppSheet/CreateAppSheet.tsx
+++ b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/CreateAppSheet/CreateAppSheet.tsx
@@ -182,7 +182,6 @@ export function CreateAppSheet({ visible, onClose, onCreated }: CreateAppSheetPr
<div className="flex items-center gap-2">
{selectedPermissions.length > 0 && (
<Button
- variant="default"
size="tiny"
className="p-1"
icon={<RotateCcw size={16} />}
@@ -196,12 +195,7 @@ export function CreateAppSheet({ visible, onClose, onCreated }: CreateAppSheetPr
modal
>
<PopoverTrigger asChild>
- <Button
- variant="default"
- size="tiny"
- icon={<Plus size={14} />}
- disabled={isLoading}
- >
+ <Button size="tiny" icon={<Plus size={14} />} disabled={isLoading}>
Add permission
</Button>
</PopoverTrigger>
@@ -316,7 +310,6 @@ export function CreateAppSheet({ visible, onClose, onCreated }: CreateAppSheetPr
<h3 className="text-sm font-medium">Private key</h3>
<div className="flex items-center gap-2">
<Button
- variant="default"
size="tiny"
icon={<Copy size={12} />}
onClick={() => copy(generatedKey.private_key, { withToast: true })}
@@ -324,7 +317,6 @@ export function CreateAppSheet({ visible, onClose, onCreated }: CreateAppSheetPr
Copy
</Button>
<Button
- variant="default"
size="tiny"
icon={<Download size={12} />}
onClick={() => {
@@ -368,7 +360,7 @@ export function CreateAppSheet({ visible, onClose, onCreated }: CreateAppSheetPr
<SheetFooter className="justify-end! w-full mt-auto py-4 border-t">
<div className="flex gap-2">
- <Button variant="default" onClick={handleRequestClose} disabled={isLoading}>
+ <Button onClick={handleRequestClose} disabled={isLoading}>
Cancel
</Button>
{keyRevealed ? (
diff --git a/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx b/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx
index 66a3f88a5e2..f14e64e22b9 100644
--- a/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx
+++ b/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx
@@ -381,11 +381,7 @@ export const SSOConfig = () => {
</div>
<div className="flex space-x-2">
{form.formState.isDirty && (
- <Button
- variant="default"
- disabled={isCreating || isUpdating}
- onClick={() => form.reset()}
- >
+ <Button disabled={isCreating || isUpdating} onClick={() => form.reset()}>
Cancel
</Button>
)}
diff --git a/apps/studio/components/interfaces/Organization/SSO/SSODomains.tsx b/apps/studio/components/interfaces/Organization/SSO/SSODomains.tsx
index 8f4c63e0920..69de97802e2 100644
--- a/apps/studio/components/interfaces/Organization/SSO/SSODomains.tsx
+++ b/apps/studio/components/interfaces/Organization/SSO/SSODomains.tsx
@@ -51,7 +51,6 @@ export const SSODomains = ({ form }: { form: ReturnType<typeof useForm<SSOConfig
/>
<Button
- variant="default"
icon={<Trash size={12} />}
className="h-[34px] w-[34px]"
onClick={() => remove(idx)}
@@ -60,7 +59,6 @@ export const SSODomains = ({ form }: { form: ReturnType<typeof useForm<SSOConfig
))}
<div>
<Button
- variant="default"
icon={<Plus className="w-4 h-4" />}
size="tiny"
onClick={() => append({ value: '' })}
diff --git a/apps/studio/components/interfaces/Organization/SSO/SSOMetadata.tsx b/apps/studio/components/interfaces/Organization/SSO/SSOMetadata.tsx
index 1b29683eb6d..beab3363d94 100644
--- a/apps/studio/components/interfaces/Organization/SSO/SSOMetadata.tsx
+++ b/apps/studio/components/interfaces/Organization/SSO/SSOMetadata.tsx
@@ -109,7 +109,6 @@ export const SSOMetadata = ({
onChange={handleFileChange}
/>
<Button
- variant="default"
icon={<Upload className="w-4 h-4" />}
onClick={() => fileInputRef.current?.click()}
>
diff --git a/apps/studio/components/interfaces/Organization/SecuritySettings.tsx b/apps/studio/components/interfaces/Organization/SecuritySettings.tsx
index 61a52e643d2..da3afc08612 100644
--- a/apps/studio/components/interfaces/Organization/SecuritySettings.tsx
+++ b/apps/studio/components/interfaces/Organization/SecuritySettings.tsx
@@ -131,7 +131,7 @@ export const SecuritySettings = () => {
title="Enable MFA on your account first"
description="You need to set up multi-factor authentication (MFA) on your own account before you can enforce it on your organization."
actions={
- <Button asChild variant="default">
+ <Button asChild>
<Link href="/account/security">Set up MFA</Link>
</Button>
}
@@ -176,7 +176,6 @@ export const SecuritySettings = () => {
<CardFooter className="justify-end space-x-2">
{form.formState.isDirty && (
<Button
- variant="default"
disabled={isLoadingMfa || isUpdatingMfa}
onClick={() =>
form.reset({ enforceMfa: hasAccessToEnforceMfa ? mfaConfig : false })
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx
index fc5722bc5f0..a9035ff8e5c 100644
--- a/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx
+++ b/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx
@@ -470,9 +470,7 @@ export const InviteMemberButton = () => {
</Form>
</SheetSection>
<SheetFooter>
- <Button variant="default" onClick={confirmOnClose}>
- Cancel
- </Button>
+ <Button onClick={confirmOnClose}>Cancel</Button>
<Shortcut
id={SHORTCUT_IDS.ORG_TEAM_INVITE_SUBMIT}
onTrigger={() => form.handleSubmit(onInviteMember)()}
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/LeaveTeamButton.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/LeaveTeamButton.tsx
index 336b89a4ddc..c548c4a83ae 100644
--- a/apps/studio/components/interfaces/Organization/TeamSettings/LeaveTeamButton.tsx
+++ b/apps/studio/components/interfaces/Organization/TeamSettings/LeaveTeamButton.tsx
@@ -71,7 +71,6 @@ export const LeaveTeamButton = () => {
return (
<>
<ButtonTooltip
- variant="default"
disabled={!canLeave || !organizationMembersDeletionEnabled || isLeaving}
onClick={() => setIsLeaveTeamModalOpen(true)}
tooltip={{
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
index 1e8c61f6168..a0daaeaa227 100644
--- a/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
+++ b/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
@@ -181,7 +181,6 @@ export const MemberActions = ({
<>
<div className="flex items-center justify-end gap-x-2">
<ButtonTooltip
- variant="default"
disabled={isPendingInviteAcceptance || !canRemoveMember}
onClick={() => onManageAccess(member)}
tooltip={{
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesPanel.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesPanel.tsx
index b7890076ab2..698c9faed2f 100644
--- a/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesPanel.tsx
+++ b/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesPanel.tsx
@@ -345,11 +345,7 @@ export const UpdateRolesPanel = ({ visible, member, onClose }: UpdateRolesPanelP
setOpen={setShowProjectDropdown}
modal={true}
onSelect={onSelectProject}
- renderTrigger={() => (
- <Button variant="default" className="w-min">
- Add project
- </Button>
- )}
+ renderTrigger={() => <Button className="w-min">Add project</Button>}
renderRow={(project) => {
const hasRoleAssigned = projectsRoleConfiguration.some(
(p) => p.ref === project.ref
@@ -369,7 +365,7 @@ export const UpdateRolesPanel = ({ visible, member, onClose }: UpdateRolesPanelP
</SheetSection>
<SheetFooter className="flex items-center justify-end! px-5 py-4 w-full border-t">
- <Button variant="default" disabled={false} onClick={() => onClose()}>
+ <Button disabled={false} onClick={() => onClose()}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Organization/Usage/Usage.tsx b/apps/studio/components/interfaces/Organization/Usage/Usage.tsx
index 90138f2caec..61125a2d5a2 100644
--- a/apps/studio/components/interfaces/Organization/Usage/Usage.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/Usage.tsx
@@ -187,7 +187,6 @@ export const Usage = () => {
return (
<Button
block
- variant="default"
role="combobox"
size="tiny"
aria-expanded={open}
diff --git a/apps/studio/components/interfaces/Organization/Usage/UsageSection/DatabaseSizeUsage.tsx b/apps/studio/components/interfaces/Organization/Usage/UsageSection/DatabaseSizeUsage.tsx
index 4c597269bd8..721c6b3d515 100644
--- a/apps/studio/components/interfaces/Organization/Usage/UsageSection/DatabaseSizeUsage.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/UsageSection/DatabaseSizeUsage.tsx
@@ -112,7 +112,7 @@ const DatabaseSizeUsage = ({
<span className="text-foreground-light flex items-center gap-2">
{project.name}
</span>
- <Button asChild variant="default" size={'tiny'}>
+ <Button asChild size={'tiny'}>
<Link
href={`/project/${project.ref}/observability/database#database-size-report`}
>
diff --git a/apps/studio/components/interfaces/Organization/Usage/UsageSection/DiskUsage.tsx b/apps/studio/components/interfaces/Organization/Usage/UsageSection/DiskUsage.tsx
index 1f93a706ec9..a71d808b389 100644
--- a/apps/studio/components/interfaces/Organization/Usage/UsageSection/DiskUsage.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/UsageSection/DiskUsage.tsx
@@ -199,7 +199,7 @@ export const DiskUsage = ({
</div>
</div>
- <Button asChild variant="default" size="tiny">
+ <Button asChild size="tiny">
<Link href={getInfrastructurePath(project.ref)}>Manage Disk</Link>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/OrganizationInvite/OrganizationInvite.tsx b/apps/studio/components/interfaces/OrganizationInvite/OrganizationInvite.tsx
index e6913c05820..f3877d233fc 100644
--- a/apps/studio/components/interfaces/OrganizationInvite/OrganizationInvite.tsx
+++ b/apps/studio/components/interfaces/OrganizationInvite/OrganizationInvite.tsx
@@ -116,7 +116,7 @@ export const OrganizationInvite = () => {
<Link href={loginRedirectLink}>Sign in</Link>
</Button>
{isSignUpEnabled && (
- <Button asChild variant="default" block>
+ <Button asChild block>
<Link href={signupRedirectLink}>Sign up</Link>
</Button>
)}
@@ -151,7 +151,7 @@ export const OrganizationInvite = () => {
type="warning"
description="This invite has already been accepted or declined."
/>
- <Button variant="default" block asChild>
+ <Button block asChild>
<Link href="/">Back to dashboard</Link>
</Button>
</div>
@@ -161,7 +161,7 @@ export const OrganizationInvite = () => {
if (mfaRequiredError) {
return withLayout(
<div className="flex flex-col gap-3">
- <Button variant="default" block asChild>
+ <Button block asChild>
<Link href="/account/security">Go to account settings</Link>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/OrganizationInvite/OrganizationInviteError.tsx b/apps/studio/components/interfaces/OrganizationInvite/OrganizationInviteError.tsx
index f4d747fb56e..fe01c58f931 100644
--- a/apps/studio/components/interfaces/OrganizationInvite/OrganizationInviteError.tsx
+++ b/apps/studio/components/interfaces/OrganizationInvite/OrganizationInviteError.tsx
@@ -64,7 +64,7 @@ export const OrganizationInviteError = ({
)
}
/>
- <Button variant="default" block onClick={handleSignOut}>
+ <Button block onClick={handleSignOut}>
Sign out
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx
index 2b5657945ff..d121e0031b0 100644
--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx
+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx
@@ -219,11 +219,7 @@ export const PlatformWebhooksDeliveryDetailsSheet = ({
id={SHORTCUT_IDS.PLATFORM_WEBHOOKS_RETRY_DELIVERY}
onTrigger={() => onRetryDelivery(retryableDelivery.id)}
>
- <Button
- variant="default"
- icon={<RotateCcw />}
- onClick={() => onRetryDelivery(retryableDelivery.id)}
- >
+ <Button icon={<RotateCcw />} onClick={() => onRetryDelivery(retryableDelivery.id)}>
Retry delivery
</Button>
</Shortcut>
diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointDetails.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointDetails.tsx
index b7d67fd8641..720b21eb601 100644
--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointDetails.tsx
+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointDetails.tsx
@@ -123,7 +123,6 @@ const DELIVERY_COLUMNS: ColumnDef<WebhookDelivery>[] = [
<div className="flex h-full items-center justify-end">
{row.original.status !== 'success' ? (
<ButtonTooltip
- variant="default"
size="tiny"
className="w-7 shrink-0 hit-area-2"
icon={<RotateCcw />}
@@ -137,7 +136,6 @@ const DELIVERY_COLUMNS: ColumnDef<WebhookDelivery>[] = [
/>
) : (
<Button
- variant="default"
size="tiny"
className="w-7 shrink-0 hit-area-2 invisible pointer-events-none"
icon={<RotateCcw />}
@@ -366,7 +364,6 @@ export const PlatformWebhooksEndpointDetails = ({
icon={<ChevronLeft />}
className="w-7 hit-area-2"
aria-label="Previous page"
- variant="default"
size="tiny"
disabled={!table.getCanPreviousPage()}
onClick={() => table.previousPage()}
@@ -375,7 +372,6 @@ export const PlatformWebhooksEndpointDetails = ({
icon={<ChevronRight />}
className="w-7 hit-area-2"
aria-label="Next page"
- variant="default"
size="tiny"
disabled={!table.getCanNextPage()}
onClick={() => table.nextPage()}
diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointList.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointList.tsx
index 732202461f9..9e2f096e89d 100644
--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointList.tsx
+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointList.tsx
@@ -134,9 +134,7 @@ export const PlatformWebhooksEndpointList = ({
title="No endpoints yet"
description="Create an endpoint to start receiving webhook deliveries."
>
- <Button variant="default" onClick={onCreateEndpoint}>
- Create endpoint
- </Button>
+ <Button onClick={onCreateEndpoint}>Create endpoint</Button>
</EmptyStatePresentational>
) : (
<Card className="overflow-hidden">
@@ -215,11 +213,7 @@ export const PlatformWebhooksEndpointList = ({
>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button
- variant="default"
- icon={<MoreVertical />}
- className="w-7 hit-area-2"
- />
+ <Button icon={<MoreVertical />} className="w-7 hit-area-2" />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-40">
<DropdownMenuItem
diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx
index 4bd85376cc0..08ba37d4360 100644
--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx
+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx
@@ -582,9 +582,7 @@ export const PlatformWebhooksEndpointSheet = ({
</Form>
</SheetSection>
<SheetFooter>
- <Button variant="default" onClick={confirmOnClose}>
- Cancel
- </Button>
+ <Button onClick={confirmOnClose}>Cancel</Button>
<Shortcut
id={SHORTCUT_IDS.ACTION_BAR_SAVE}
label={mode === 'create' ? 'Create endpoint' : 'Save changes'}
diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksPage.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksPage.tsx
index fc9a0c6f7e9..e14be6dab08 100644
--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksPage.tsx
+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksPage.tsx
@@ -342,7 +342,6 @@ export const PlatformWebhooksPage = ({ scope, endpointId }: PlatformWebhooksPage
options={{ enabled: !isEndpointSheetOpen }}
>
<Button
- variant="default"
icon={<Pencil size={14} />}
onClick={() => {
setEditEnabledOverride(null)
@@ -354,7 +353,7 @@ export const PlatformWebhooksPage = ({ scope, endpointId }: PlatformWebhooksPage
</Shortcut>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" icon={<EllipsisVertical />} className="w-7" />
+ <Button icon={<EllipsisVertical />} className="w-7" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" side="bottom" className="w-48">
<DropdownMenuItem
diff --git a/apps/studio/components/interfaces/Project/ResumeProjectButton.tsx b/apps/studio/components/interfaces/Project/ResumeProjectButton.tsx
index 5053016ed39..ff15784db1f 100644
--- a/apps/studio/components/interfaces/Project/ResumeProjectButton.tsx
+++ b/apps/studio/components/interfaces/Project/ResumeProjectButton.tsx
@@ -250,11 +250,7 @@ export const ResumeProjectButton = ({
</p>
</DialogSection>
<DialogFooter>
- <Button
- type="button"
- variant="default"
- onClick={() => setShowFreeProjectLimitWarning(false)}
- >
+ <Button type="button" onClick={() => setShowFreeProjectLimitWarning(false)}>
Understood
</Button>
</DialogFooter>
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx
index a24e807f28b..cdb62a17f6f 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx
@@ -45,7 +45,6 @@ export const Entities = ({ language }: ContentProps) => {
<div className="flex items-center gap-x-2 px-4 mt-3">
<DocsButton href={`${DOCS_URL}/guides/database/api/generating-types`} />
<Button
- variant="default"
disabled={isGeneratingTypes}
loading={isGeneratingTypes}
icon={<Download strokeWidth={1.5} />}
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx
index e1139606d83..cbc5bf4eaa6 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx
@@ -61,7 +61,6 @@ export const Introduction = ({ showKeys, language, apikey, endpoint }: ContentPr
actions={[
<Button
key="copy"
- variant="default"
icon={<Copy />}
onClick={() => {
setCopied('anon')
@@ -102,7 +101,6 @@ export const Introduction = ({ showKeys, language, apikey, endpoint }: ContentPr
actions={[
<Button
key="copy"
- variant="default"
icon={<Copy />}
onClick={() => {
setCopied('service')
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/LanguageSelector.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/LanguageSelector.tsx
index 5638fe962ac..d9952478c54 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/LanguageSelector.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/LanguageSelector.tsx
@@ -35,7 +35,6 @@ const LanguageSelector = ({ simplifiedVersion = false }: LanguageSelectorProps)
<Popover modal={false} open={showLanguage} onOpenChange={setShowLanguage}>
<PopoverTrigger asChild>
<Button
- variant="default"
className={simplifiedVersion ? 'px-1' : ''}
icon={
simplifiedVersion ? (
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.tsx
index 6882cae252f..421fc73ecd8 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.tsx
@@ -75,7 +75,7 @@ export const ProjectAPIDocs = () => {
<div className="flex items-center space-x-1">
{!isEntityDocs && <LanguageSelector simplifiedVersion />}
{isIntroduction && (
- <Button variant="default" onClick={() => setShowKeys(!showKeys)}>
+ <Button onClick={() => setShowKeys(!showKeys)}>
{showKeys ? 'Hide keys' : 'Show keys'}
</Button>
)}
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.Layout.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.Layout.tsx
index 8de14c0e22e..5cb6f023569 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.Layout.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.Layout.tsx
@@ -116,7 +116,6 @@ const ResourcePicker = ({ category, resource, renderResourceList }: ResourcePick
<Popover open={open} onOpenChange={setOpen} modal={false}>
<PopoverTrigger asChild>
<Button
- variant="default"
size="small"
className="w-full justify-between gap-2"
iconRight={<Code className="rotate-90" />}
diff --git a/apps/studio/components/interfaces/ProjectCreation/ProjectCreationFooter.tsx b/apps/studio/components/interfaces/ProjectCreation/ProjectCreationFooter.tsx
index 5f09b4ffcf0..0dc55290ae2 100644
--- a/apps/studio/components/interfaces/ProjectCreation/ProjectCreationFooter.tsx
+++ b/apps/studio/components/interfaces/ProjectCreation/ProjectCreationFooter.tsx
@@ -219,7 +219,6 @@ export const ProjectCreationFooter = ({
) : (
<Button
type="button"
- variant="default"
disabled={isCreatingNewProject || isSuccessNewProject}
onClick={onCancel}
>
diff --git a/apps/studio/components/interfaces/ProjectCreation/ProjectCreationForm.tsx b/apps/studio/components/interfaces/ProjectCreation/ProjectCreationForm.tsx
index 6e8da6184e6..a3e0a1fc2f4 100644
--- a/apps/studio/components/interfaces/ProjectCreation/ProjectCreationForm.tsx
+++ b/apps/studio/components/interfaces/ProjectCreation/ProjectCreationForm.tsx
@@ -774,7 +774,7 @@ export const ProjectCreationForm = ({
</p>
<div>
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/org/${slug}/billing#invoices`}>View invoices</Link>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/ProjectHome/AdvisorSection.tsx b/apps/studio/components/interfaces/ProjectHome/AdvisorSection.tsx
index 9b9b99ee0c8..7563c64a2f4 100644
--- a/apps/studio/components/interfaces/ProjectHome/AdvisorSection.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/AdvisorSection.tsx
@@ -123,7 +123,7 @@ export const AdvisorSection = ({ showEmptyState = false }: { showEmptyState?: bo
) : (
<div className="flex justify-between items-center mb-6">
{titleContent}
- <Button variant="default" icon={<AiIconAnimation />} onClick={handleAskAssistant}>
+ <Button icon={<AiIconAnimation />} onClick={handleAskAssistant}>
Ask Assistant
</Button>
</div>
diff --git a/apps/studio/components/interfaces/ProjectHome/CustomReportSection.tsx b/apps/studio/components/interfaces/ProjectHome/CustomReportSection.tsx
index b2df6f9c8a5..97c81ceebf2 100644
--- a/apps/studio/components/interfaces/ProjectHome/CustomReportSection.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/CustomReportSection.tsx
@@ -375,7 +375,6 @@ export function CustomReportSection() {
<div className="flex items-center gap-x-2">
{layout.length > 0 && (
<ButtonTooltip
- variant="default"
icon={<RefreshCw className={isRefreshing ? 'animate-spin' : ''} />}
className="w-7"
disabled={isRefreshing}
@@ -387,11 +386,7 @@ export function CustomReportSection() {
<SnippetDropdown
projectRef={ref}
onSelect={handleSelectSnippet}
- trigger={
- <Button variant="default" icon={<Plus />}>
- Add block
- </Button>
- }
+ trigger={<Button icon={<Plus />}>Add block</Button>}
side="bottom"
align="end"
autoFocus
@@ -418,11 +413,7 @@ export function CustomReportSection() {
<SnippetDropdown
projectRef={ref}
onSelect={handleSelectSnippet}
- trigger={
- <Button variant="default" iconRight={<Plus size={14} />}>
- Add your first block
- </Button>
- }
+ trigger={<Button iconRight={<Plus size={14} />}>Add your first block</Button>}
side="bottom"
align="center"
autoFocus
diff --git a/apps/studio/components/interfaces/ProjectHome/ProjectConnectionPopover.tsx b/apps/studio/components/interfaces/ProjectHome/ProjectConnectionPopover.tsx
index a138e583d95..c0b31d5b310 100644
--- a/apps/studio/components/interfaces/ProjectHome/ProjectConnectionPopover.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/ProjectConnectionPopover.tsx
@@ -182,7 +182,6 @@ export const ProjectConnectionPopover = ({ projectRef }: ProjectConnectionPopove
<DropdownMenuTrigger asChild>
<Button
size="tiny"
- variant="default"
iconRight={
<ChevronDown
size={14}
@@ -237,7 +236,6 @@ export const ProjectConnectionPopover = ({ projectRef }: ProjectConnectionPopove
<DropdownMenuSeparator />
<div className="p-1">
<Button
- variant="default"
size="tiny"
className="w-full"
onClick={() => {
diff --git a/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsDetailSheet.tsx b/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsDetailSheet.tsx
index 8f735a8baaa..3701ec8f254 100644
--- a/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsDetailSheet.tsx
+++ b/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsDetailSheet.tsx
@@ -118,7 +118,6 @@ export const QueryInsightsDetailSheet = ({
<div className="flex items-center justify-between px-5 py-2 border-b shrink-0">
<p className="text-xs text-foreground-lighter">EXPLAIN ANALYZE output</p>
<Button
- variant="default"
size="tiny"
icon={<AiIconAnimation size={14} />}
onClick={() => {
diff --git a/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.tsx b/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.tsx
index ff176209edb..69448573b80 100644
--- a/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.tsx
+++ b/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.tsx
@@ -423,7 +423,6 @@ export const QueryInsightsTable = ({
].join(' ')}
>
<Button
- variant="default"
size="tiny"
className="rounded-full shadow-md"
onClick={() => onCurrentSelectQuery?.(null)}
diff --git a/apps/studio/components/interfaces/QueryInsights/hooks/useQueryInsightsTableColumns.tsx b/apps/studio/components/interfaces/QueryInsights/hooks/useQueryInsightsTableColumns.tsx
index efe82a0f521..d7e0b451d94 100644
--- a/apps/studio/components/interfaces/QueryInsights/hooks/useQueryInsightsTableColumns.tsx
+++ b/apps/studio/components/interfaces/QueryInsights/hooks/useQueryInsightsTableColumns.tsx
@@ -163,7 +163,6 @@ export function useQueryInsightsTableColumns({
tooltip={{ content: { text: 'Query details' } }}
icon={<ArrowRight size={14} />}
size="tiny"
- variant="default"
onClick={(e: React.MouseEvent) => {
e.stopPropagation()
setSelectedRow(props.rowIdx)
@@ -371,7 +370,6 @@ export function useQueryInsightsTableColumns({
tooltip={{ content: { text: 'Query details' } }}
icon={<ArrowRight size={14} />}
size="tiny"
- variant="default"
onClick={(e: React.MouseEvent) => {
e.stopPropagation()
setSelectedTriageRow(props.rowIdx)
@@ -496,7 +494,6 @@ export function useQueryInsightsTableColumns({
<div className="flex items-center gap-2 justify-end w-full h-full">
{!row.issueType && (
<Button
- variant="default"
size="tiny"
onClick={(e: React.MouseEvent) => {
e.stopPropagation()
diff --git a/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/IndexAdvisorDisabledState.tsx b/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/IndexAdvisorDisabledState.tsx
index ec98dd43e7d..3434a1abcdc 100644
--- a/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/IndexAdvisorDisabledState.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/IndexAdvisorDisabledState.tsx
@@ -77,12 +77,11 @@ export const IndexAdvisorDisabledState = () => {
<AlertDescription className="mt-3">
<div className="flex items-center gap-x-2">
{indexAdvisor === undefined ? (
- <Button asChild variant="default">
+ <Button asChild>
<Link href={getServiceVersionsPath(ref)}>Upgrade Postgres version</Link>
</Button>
) : (
<Button
- variant="default"
disabled={isEnablingExtension}
loading={isEnablingExtension}
onClick={() => onEnableIndexAdvisor()}
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx
index 30b078e3f08..01db8877c95 100644
--- a/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx
@@ -127,7 +127,6 @@ export const QueryDetail = ({ selectedRow, onClickViewSuggestion, onClose }: Que
/>
<div className="absolute bottom-[-13px] left-0 right-0 w-full flex items-center justify-center z-10">
<Button
- variant="default"
className="rounded-full"
icon={<ChevronsUpDown />}
onClick={() => setIsExpanded(!isExpanded)}
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
index d75953f56b5..88e3c31a83b 100644
--- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
@@ -199,7 +199,6 @@ export const QueryPerformanceGrid = ({
tooltip={{ content: { text: 'Query details' } }}
icon={<ArrowRight size={14} />}
size="tiny"
- variant="default"
onClick={(e) => {
e.stopPropagation()
setSelectedRow(props.rowIdx)
@@ -488,9 +487,7 @@ export const QueryPerformanceGrid = ({
>
{onRetry && (
<div className="mt-4">
- <Button variant="default" onClick={onRetry}>
- Try again
- </Button>
+ <Button onClick={onRetry}>Try again</Button>
</div>
)}
</Admonition>
diff --git a/apps/studio/components/interfaces/QueryPerformance/SqlMonacoBlock.tsx b/apps/studio/components/interfaces/QueryPerformance/SqlMonacoBlock.tsx
index c53a0a72b15..952213ee6dd 100644
--- a/apps/studio/components/interfaces/QueryPerformance/SqlMonacoBlock.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/SqlMonacoBlock.tsx
@@ -38,7 +38,6 @@ export const SqlMonacoBlock = ({ value, wrapperClassName }: SqlMonacoBlockProps)
<div className="absolute right-2 top-2 opacity-0 group-hover:opacity-100 transition-opacity">
<Button
- variant="default"
className="px-1.5"
icon={copied ? <Check /> : <Copy />}
onClick={() => handleCopy(content)}
diff --git a/apps/studio/components/interfaces/QueryPerformance/WithStatements/WithStatements.tsx b/apps/studio/components/interfaces/QueryPerformance/WithStatements/WithStatements.tsx
index e843a0a5eee..b61f35aa71f 100644
--- a/apps/studio/components/interfaces/QueryPerformance/WithStatements/WithStatements.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/WithStatements/WithStatements.tsx
@@ -211,7 +211,6 @@ export const WithStatements = ({
>
<Button
aria-label="Refresh"
- variant="default"
size="tiny"
icon={<RefreshCw />}
onClick={handleRefresh}
@@ -225,7 +224,6 @@ export const WithStatements = ({
>
<Button
aria-label="Reset report"
- variant="default"
size="tiny"
icon={<RotateCcw />}
onClick={() => setShowResetgPgStatStatements(true)}
@@ -275,11 +273,7 @@ export const WithStatements = ({
<p className="text-xs text-foreground-light">
Consider resetting the analysis after optimizing any queries
</p>
- <Button
- variant="default"
- className="mt-3! w-min"
- onClick={() => setShowResetgPgStatStatements(true)}
- >
+ <Button className="mt-3! w-min" onClick={() => setShowResetgPgStatStatements(true)}>
Reset report
</Button>
</div>
diff --git a/apps/studio/components/interfaces/QuerySources/LogsCustomRangeDialog.tsx b/apps/studio/components/interfaces/QuerySources/LogsCustomRangeDialog.tsx
index ed1e00dd201..e9cfa4eb8d7 100644
--- a/apps/studio/components/interfaces/QuerySources/LogsCustomRangeDialog.tsx
+++ b/apps/studio/components/interfaces/QuerySources/LogsCustomRangeDialog.tsx
@@ -45,9 +45,7 @@ export const LogsCustomRangeDialog = ({
/>
</div>
<DialogFooter>
- <Button variant="default" onClick={() => onOpenChange(false)}>
- Cancel
- </Button>
+ <Button onClick={() => onOpenChange(false)}>Cancel</Button>
<Button variant="primary" disabled={!canApply} onClick={handleApply}>
Apply
</Button>
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/ChooseChannelPopover.tsx b/apps/studio/components/interfaces/Realtime/Inspector/ChooseChannelPopover.tsx
index 69403335734..7938119109a 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/ChooseChannelPopover.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/ChooseChannelPopover.tsx
@@ -97,7 +97,7 @@ export const ChooseChannelPopover = ({
const channelPopoverTrigger = (
<PopoverTrigger asChild>
- <Button className="rounded-r-none" variant="default" size="tiny" iconRight={<ChevronDown />}>
+ <Button className="rounded-r-none" size="tiny" iconRight={<ChevronDown />}>
<p
className="max-w-[120px] truncate"
title={config.channelName.length > 0 ? config.channelName : ''}
@@ -220,7 +220,6 @@ export const ChooseChannelPopover = ({
If you leave this channel, all of the messages populated on this page will disappear
</p>
<Button
- variant="default"
onClick={() => onChangeConfig({ ...config, channelName: '', enabled: false })}
>
Leave channel
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/EmptyRealtime.tsx b/apps/studio/components/interfaces/Realtime/Inspector/EmptyRealtime.tsx
index 0bb0f97f261..743d6b9b493 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/EmptyRealtime.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/EmptyRealtime.tsx
@@ -32,11 +32,7 @@ export const EmptyRealtime = ({ projectRef }: { projectRef: string }) => {
<p className="text-foreground-light mb-6">
Send your first realtime message from your database, application code or edge function
</p>
- <Button
- variant="default"
- icon={<AiIconAnimation />}
- onClick={handleCreateTriggerWithAssistant}
- >
+ <Button icon={<AiIconAnimation />} onClick={handleCreateTriggerWithAssistant}>
Set up realtime for me
</Button>
</div>
@@ -56,7 +52,7 @@ export const EmptyRealtime = ({ projectRef }: { projectRef: string }) => {
<p className="text-foreground-light text-sm mb-4 flex-1">
Send messages to a channel from your client application or database via triggers.
</p>
- <Button variant="default" className="w-full">
+ <Button className="w-full">
<Link href={`/project/${projectRef}/database/triggers`}>Create a trigger</Link>
</Button>
</div>
@@ -75,7 +71,7 @@ export const EmptyRealtime = ({ projectRef }: { projectRef: string }) => {
<p className="text-foreground-light text-sm mb-4 flex-1">
Set up Row Level Security policies to control who can see messages within a channel
</p>
- <Button variant="default">
+ <Button>
<Link href={`/project/${projectRef}/realtime/policies`}>Write a policy</Link>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx b/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx
index 872c19f36b1..555a8dc749f 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx
@@ -41,11 +41,7 @@ const NoResultAlert = ({
'service_api_keys'
)
- const broadcastButton = (
- <Button variant="default" onClick={showSendMessage}>
- Broadcast a message
- </Button>
- )
+ const broadcastButton = <Button onClick={showSendMessage}>Broadcast a message</Button>
return (
<div className="w-full max-w-md flex items-center flex-col">
@@ -90,9 +86,7 @@ const NoResultAlert = ({
</p>
</div>
<Link href={`/project/${ref}/realtime/inspector`} target="_blank" rel="noreferrer">
- <Button variant="default" iconRight={<ExternalLink />}>
- Open inspector
- </Button>
+ <Button iconRight={<ExternalLink />}>Open inspector</Button>
</Link>
</div>
@@ -106,9 +100,7 @@ const NoResultAlert = ({
<p className="text-foreground-lighter text-xs">Tables must have realtime enabled</p>
</div>
<Link href={`/project/${ref}/database/publications`} target="_blank" rel="noreferrer">
- <Button variant="default" iconRight={<ExternalLink />}>
- Publications settings
- </Button>
+ <Button iconRight={<ExternalLink />}>Publications settings</Button>
</Link>
</div>
<div className="w-full px-5 py-4 items-center gap-4 inline-flex rounded-b-md bg-studio">
@@ -183,11 +175,7 @@ const MessagesTable = ({
</div>
</div>
<ShortcutTooltip shortcutId={SHORTCUT_IDS.INSPECTOR_BROADCAST} side="bottom">
- <Button
- variant="default"
- onClick={showSendMessage}
- icon={<Megaphone strokeWidth={1.5} />}
- >
+ <Button onClick={showSendMessage} icon={<Megaphone strokeWidth={1.5} />}>
<span>Broadcast a message</span>
</Button>
</ShortcutTooltip>
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/TableSelector.tsx b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/TableSelector.tsx
index 9d78b51d1c4..4f4163cb860 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/TableSelector.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/TableSelector.tsx
@@ -117,7 +117,7 @@ const TableSelector = ({
<AlertDescription className="text-xs mb-2">
Error: {(error as any)?.message}
</AlertDescription>
- <Button variant="default" size="tiny" onClick={() => refetch()}>
+ <Button size="tiny" onClick={() => refetch()}>
Reload tables
</Button>
</Alert>
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx
index 99f3cf5d012..d7cae509e7b 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx
@@ -252,9 +252,7 @@ export const RealtimeFilterPopover = ({
</>
)}
<div className="px-4 py-2 gap-2 flex justify-end">
- <Button variant="default" onClick={() => setOpen(false)}>
- Cancel
- </Button>
+ <Button onClick={() => setOpen(false)}>Cancel</Button>
<Button variant="primary" onClick={() => setApplyConfigOpen(true)}>
Apply
</Button>
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/SendMessageModal.tsx b/apps/studio/components/interfaces/Realtime/Inspector/SendMessageModal.tsx
index 24d0b79b232..f6b0b614114 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/SendMessageModal.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/SendMessageModal.tsx
@@ -76,9 +76,7 @@ export const SendMessageModal = ({
</div>
</DialogSection>
<DialogFooter>
- <Button onClick={onSelectCancel} variant="default">
- Cancel
- </Button>
+ <Button onClick={onSelectCancel}>Cancel</Button>
<Button
onClick={() => {
const payload = tryParseJson(values.payload)
diff --git a/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx b/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx
index fa1d2643c5d..6588bf7c533 100644
--- a/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx
+++ b/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx
@@ -426,7 +426,7 @@ export const RealtimeSettings = () => {
</p>
}
actions={
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${projectRef}/realtime/policies`}>
Create policy
</Link>
@@ -718,9 +718,7 @@ export const RealtimeSettings = () => {
</div>
<div className="flex items-center gap-x-2">
{form.formState.isDirty && (
- <Button variant="default" onClick={() => form.reset(formValues)}>
- Cancel
- </Button>
+ <Button onClick={() => form.reset(formValues)}>Cancel</Button>
)}
<Button
variant="primary"
diff --git a/apps/studio/components/interfaces/Reports/CreateReportModal.tsx b/apps/studio/components/interfaces/Reports/CreateReportModal.tsx
index e0125b029b1..cbcf669aee2 100644
--- a/apps/studio/components/interfaces/Reports/CreateReportModal.tsx
+++ b/apps/studio/components/interfaces/Reports/CreateReportModal.tsx
@@ -153,7 +153,7 @@ export const CreateReportModal = ({ visible, onCancel, afterSubmit }: CreateRepo
/>
</DialogSection>
<DialogFooter>
- <Button type="reset" variant="default" onClick={handleCancel} disabled={isCreating}>
+ <Button type="reset" onClick={handleCancel} disabled={isCreating}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx b/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx
index b3d8aded436..3061e1c1512 100644
--- a/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx
+++ b/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx
@@ -238,7 +238,6 @@ const ReportFilterBar = ({
side="bottom"
>
<Button
- variant="default"
disabled={isLoading}
icon={<RefreshCw className={isLoading ? 'animate-spin' : ''} />}
className="w-7"
@@ -265,7 +264,6 @@ const ReportFilterBar = ({
>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
className="inline-flex flex-row gap-2"
iconRight={<ChevronDown size={14} />}
>
@@ -344,11 +342,7 @@ const ReportFilterBar = ({
open={showAdder ? false : undefined}
>
<PopoverTrigger asChild>
- <Button
- variant="default"
- size="tiny"
- icon={<Plus className={`text-foreground-light `} />}
- >
+ <Button size="tiny" icon={<Plus className={`text-foreground-light `} />}>
Add filter
</Button>
</PopoverTrigger>
diff --git a/apps/studio/components/interfaces/Reports/ReportWidget.tsx b/apps/studio/components/interfaces/Reports/ReportWidget.tsx
index ace762e6825..bc70c63998d 100644
--- a/apps/studio/components/interfaces/Reports/ReportWidget.tsx
+++ b/apps/studio/components/interfaces/Reports/ReportWidget.tsx
@@ -60,18 +60,14 @@ const ReportWidget = (props: ReportWidgetProps) => {
<Tooltip>
<TooltipTrigger asChild>
<Button
- variant="default"
icon={<ExternalLink />}
className="px-1"
onClick={() => {
const isDbQueryType = props.queryType === 'db'
-
const pathname = isDbQueryType
? `/project/${projectRef}/sql/new`
: `/project/${projectRef}/logs/explorer`
-
const query: Record<string, string | undefined> = {}
-
if (isDbQueryType) {
query.content = props.resolvedSql
} else {
@@ -79,7 +75,6 @@ const ReportWidget = (props: ReportWidgetProps) => {
query.its = props.params?.iso_timestamp_start || ''
query.ite = props.params?.iso_timestamp_end || ''
}
-
router.push({ pathname, query })
}}
/>
diff --git a/apps/studio/components/interfaces/Reports/Reports.tsx b/apps/studio/components/interfaces/Reports/Reports.tsx
index c321238af69..05f9951baec 100644
--- a/apps/studio/components/interfaces/Reports/Reports.tsx
+++ b/apps/studio/components/interfaces/Reports/Reports.tsx
@@ -386,11 +386,7 @@ const Reports = () => {
</div>
{hasEdits && (
<div className="flex items-center gap-x-2">
- <Button
- variant="default"
- disabled={isSaving}
- onClick={() => setConfig(currentReportContent)}
- >
+ <Button disabled={isSaving} onClick={() => setConfig(currentReportContent)}>
Cancel
</Button>
<Button
@@ -427,7 +423,6 @@ const Reports = () => {
<div className="flex items-center gap-x-2">
<DocsButton href={OBSERVABILITY_DOCS_HREFS.customReport} topic={reportTitle} />
<ButtonTooltip
- variant="default"
icon={<RefreshCw className={isRefreshing ? 'animate-spin' : ''} />}
className="w-7"
disabled={isRefreshing}
@@ -437,7 +432,7 @@ const Reports = () => {
{canUpdateReport ? (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" icon={<Plus />}>
+ <Button icon={<Plus />}>
<span>Add block</span>
</Button>
</DropdownMenuTrigger>
@@ -448,7 +443,6 @@ const Reports = () => {
) : (
<ButtonTooltip
disabled
- variant="default"
icon={<Plus />}
tooltip={{
content: {
@@ -478,9 +472,7 @@ const Reports = () => {
{canUpdateReport ? (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" iconRight={<Plus size={14} />}>
- Add your first chart
- </Button>
+ <Button iconRight={<Plus size={14} />}>Add your first chart</Button>
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="center">
<MetricOptions config={config} handleChartSelection={handleChartSelection} />
diff --git a/apps/studio/components/interfaces/Reports/UpdateModal.tsx b/apps/studio/components/interfaces/Reports/UpdateModal.tsx
index aa0a6ffe537..8a246206a20 100644
--- a/apps/studio/components/interfaces/Reports/UpdateModal.tsx
+++ b/apps/studio/components/interfaces/Reports/UpdateModal.tsx
@@ -130,7 +130,7 @@ export const UpdateCustomReportModal = ({
/>
</DialogSection>
<DialogFooter>
- <Button type="reset" variant="default" onClick={handleCancel} disabled={isUpdating}>
+ <Button type="reset" onClick={handleCancel} disabled={isUpdating}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx b/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx
index 27d10d83561..0d839907c33 100644
--- a/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx
+++ b/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx
@@ -33,7 +33,6 @@ export const RoleImpersonationPopover = ({
<PopoverTrigger asChild>
<Button
size="tiny"
- variant="default"
className={cn(
'h-[26px] pr-3 gap-0',
variant === 'connected-on-right' && 'rounded-r-none border-r-0',
diff --git a/apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx b/apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx
index b4ec509cb6c..8687ac77883 100644
--- a/apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx
+++ b/apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx
@@ -427,7 +427,6 @@ const ImpersonationControl = ({
id="run-as-user"
type="button"
size="tiny"
- variant="default"
role="combobox"
aria-label="Find user"
aria-expanded={isUserComboboxOpen}
diff --git a/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx b/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx
index 911791fc25e..a0002227a38 100644
--- a/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx
@@ -153,14 +153,14 @@ export const DownloadSnippetModal = ({ id, ...props }: DownloadSnippetModalProps
<DialogSection>
<div className="flex items-center justify-start gap-x-2">
{selectedSnippet.docLink && (
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<Link href={selectedSnippet.docLink.href} target="_blank" rel="noreferrer">
{selectedSnippet.docLink.label}
</Link>
</Button>
)}
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<Link href={CLI_DOCS_URL} target="_blank" rel="noreferrer">
About CLI
</Link>
diff --git a/apps/studio/components/interfaces/SQLEditor/MoveQueryModal.tsx b/apps/studio/components/interfaces/SQLEditor/MoveQueryModal.tsx
index a8d71d6862b..8486cdb3d00 100644
--- a/apps/studio/components/interfaces/SQLEditor/MoveQueryModal.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/MoveQueryModal.tsx
@@ -231,7 +231,6 @@ export const MoveQueryModal = ({ visible, snippets = [], onClose }: MoveQueryMod
<Button
block
size="small"
- variant="default"
className="pr-2 justify-between"
iconRight={
<Code
@@ -348,11 +347,7 @@ export const MoveQueryModal = ({ visible, snippets = [], onClose }: MoveQueryMod
</DialogSection>
<DialogFooter>
- <Button
- variant="default"
- disabled={isMovingSnippet || isCreatingFolder}
- onClick={() => onClose()}
- >
+ <Button disabled={isMovingSnippet || isCreatingFolder} onClick={() => onClose()}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx b/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx
index a930b4f577e..98d9f54786d 100644
--- a/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx
@@ -178,7 +178,6 @@ const RenameQueryForm = ({ snippet, onCancel, onComplete }: RenameQueryFormProps
/>
<div className="flex w-full justify-end mt-2">
<ButtonTooltip
- variant="default"
onClick={() => generateTitle()}
size="tiny"
disabled={
@@ -223,7 +222,7 @@ const RenameQueryForm = ({ snippet, onCancel, onComplete }: RenameQueryFormProps
/>
</DialogSection>
<DialogFooter>
- <Button type="reset" variant="default" onClick={onCancel} disabled={isSubmitting}>
+ <Button type="reset" onClick={onCancel} disabled={isSubmitting}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ChartConfig.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ChartConfig.tsx
index 68cbb54a212..572378706d2 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ChartConfig.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ChartConfig.tsx
@@ -206,7 +206,7 @@ export const ChartConfig = ({
<p className="text-xs text-foreground-light mt-1!">
SQL snippets can now be added and saved to your custom reports. Try it out now!
</p>
- <Button asChild size="tiny" variant="default" className="mt-1">
+ <Button asChild size="tiny" className="mt-1">
<Link href={`/project/${ref}/reports`}>Head to Reports</Link>
</Button>
</Admonition>
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/QuerySourceMenu/QuerySourceMenu.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/QuerySourceMenu/QuerySourceMenu.tsx
index 2725c004c3a..2a812e30030 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/QuerySourceMenu/QuerySourceMenu.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/QuerySourceMenu/QuerySourceMenu.tsx
@@ -105,7 +105,6 @@ export const QuerySourceMenu = ({ id, runSource, canCreateLogsSnippet }: QuerySo
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
aria-label={`Query source: ${QUERY_SOURCE_LABELS[currentSource]}`}
icon={<QuerySourceIcon source={currentSource} className="text-foreground-light" />}
iconRight={<ChevronDown size={14} className="text-foreground-light" />}
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/SaveButton.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/SaveButton.tsx
index 87ce9d5e08b..87fd2c52911 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/SaveButton.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/SaveButton.tsx
@@ -22,7 +22,6 @@ export const SqlSaveButton = ({ id, className }: SqlSaveButtonProps) => {
<Button
onClick={() => requestSave(id)}
disabled={!isDirty}
- variant="default"
size="tiny"
data-testid="sql-save-button"
iconRight={
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx
index f78cf909937..75162f30a1f 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx
@@ -116,7 +116,6 @@ export const UtilityActions = ({
<Button
aria-label="More actions"
data-testid="sql-editor-utility-actions"
- variant="default"
className={cn('px-1', isAiOpen ? 'block 2xl:hidden' : 'hidden')}
icon={<MoreVertical className="text-foreground-light" />}
/>
@@ -269,10 +268,7 @@ export const UtilityActions = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button
- variant="default"
- iconRight={<ChevronDown size={14} className="text-foreground-light" />}
- >
+ <Button iconRight={<ChevronDown size={14} className="text-foreground-light" />}>
<span className="text-foreground-light">Limit</span>{' '}
{ROWS_PER_PAGE_OPTIONS.find((opt) => opt.value === sessionSnap.limit)?.label}
</Button>
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx
index e2ebd2b4263..077c86eaa5d 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx
@@ -136,7 +136,6 @@ export const UtilityTabResults = forwardRef<HTMLDivElement, UtilityTabResultsPro
{readReplicaError && (
<Button
className="py-2"
- variant="default"
onClick={() => {
state.setSelectedDatabaseId(ref)
sessionSnap.resetResult(id)
diff --git a/apps/studio/components/interfaces/Settings/API/ExposedFunctionSelector.tsx b/apps/studio/components/interfaces/Settings/API/ExposedFunctionSelector.tsx
index c49fb50c343..4da0bb22374 100644
--- a/apps/studio/components/interfaces/Settings/API/ExposedFunctionSelector.tsx
+++ b/apps/studio/components/interfaces/Settings/API/ExposedFunctionSelector.tsx
@@ -101,7 +101,6 @@ export const ExposedFunctionSelector = ({
<Button
size="small"
disabled={disabled}
- variant="default"
className="w-full [&>span]:w-full pr-1! space-x-1"
iconRight={<ChevronsUpDown className="text-foreground-muted" strokeWidth={2} size={14} />}
>
diff --git a/apps/studio/components/interfaces/Settings/API/ExposedSchemaSelector.tsx b/apps/studio/components/interfaces/Settings/API/ExposedSchemaSelector.tsx
index c21b8c8826f..5d087c6c438 100644
--- a/apps/studio/components/interfaces/Settings/API/ExposedSchemaSelector.tsx
+++ b/apps/studio/components/interfaces/Settings/API/ExposedSchemaSelector.tsx
@@ -101,7 +101,6 @@ export const ExposedSchemaSelector = ({
<PopoverTrigger asChild>
<Button
size="small"
- variant="default"
className="w-full [&>span]:w-full pr-1! space-x-1"
iconRight={<ChevronsUpDown className="text-foreground-muted" strokeWidth={2} size={14} />}
>
diff --git a/apps/studio/components/interfaces/Settings/API/ExposedTableSelector.tsx b/apps/studio/components/interfaces/Settings/API/ExposedTableSelector.tsx
index 83d326b7593..8366b629ab1 100644
--- a/apps/studio/components/interfaces/Settings/API/ExposedTableSelector.tsx
+++ b/apps/studio/components/interfaces/Settings/API/ExposedTableSelector.tsx
@@ -95,7 +95,6 @@ export const ExposedTableSelector = ({
<Button
size="small"
disabled={disabled}
- variant="default"
className="w-full [&>span]:w-full pr-1! space-x-1"
iconRight={<ChevronsUpDown className="text-foreground-muted" strokeWidth={2} size={14} />}
>
diff --git a/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx b/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx
index a6801719455..e52298e6ff8 100644
--- a/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx
+++ b/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx
@@ -603,7 +603,7 @@ export const PostgrestConfig = () => {
description="Expose a custom schema instead of the public schema"
>
<div className="flex gap-2 items-center justify-end">
- <Button variant="default" icon={<Lock />} onClick={() => setShowModal(true)}>
+ <Button icon={<Lock />} onClick={() => setShowModal(true)}>
Harden Data API
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Settings/Addons/Addons.tsx b/apps/studio/components/interfaces/Settings/Addons/Addons.tsx
index 751d3fdbafe..f95b5a80f7e 100644
--- a/apps/studio/components/interfaces/Settings/Addons/Addons.tsx
+++ b/apps/studio/components/interfaces/Settings/Addons/Addons.tsx
@@ -160,7 +160,7 @@ export const Addons = () => {
Contact support for further assistance.
</AlertDescription>
<div className="mt-4">
- <Button variant="default" asChild>
+ <Button asChild>
<SupportLink>Contact support</SupportLink>
</Button>
</div>
@@ -174,7 +174,7 @@ export const Addons = () => {
<p className="text-sm leading-normal mb-2">
Reach out to us via support if you're interested
</p>
- <Button asChild variant="default">
+ <Button asChild>
<SupportLink
queryParams={{
projectRef,
diff --git a/apps/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx b/apps/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx
index 61334cdebf8..7975522ae11 100644
--- a/apps/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx
+++ b/apps/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx
@@ -252,7 +252,7 @@ const PITRSidePanel = () => {
support for further assistance.
</AlertDescription>
<div className="mt-4">
- <Button variant="default" asChild>
+ <Button asChild>
<SupportLink>Contact support</SupportLink>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Settings/Database/BannedIPs.tsx b/apps/studio/components/interfaces/Settings/Database/BannedIPs.tsx
index 0a2b5927bf6..1a8fd206b02 100644
--- a/apps/studio/components/interfaces/Settings/Database/BannedIPs.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/BannedIPs.tsx
@@ -130,7 +130,6 @@ export const BannedIPs = () => {
{ip === userIPAddress && <Badge>Your IP address</Badge>}
</div>
<ButtonTooltip
- variant="default"
disabled={isSectionDisabled}
onClick={() => openConfirmationModal(ip)}
tooltip={{
diff --git a/apps/studio/components/interfaces/Settings/Database/ConnectionLogging.tsx b/apps/studio/components/interfaces/Settings/Database/ConnectionLogging.tsx
index 5290347e0ad..3c77206ea2d 100644
--- a/apps/studio/components/interfaces/Settings/Database/ConnectionLogging.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/ConnectionLogging.tsx
@@ -131,7 +131,6 @@ export const ConnectionLogging = () => {
<CardFooter className="gap-x-2 justify-end">
<Button
type="button"
- variant="default"
disabled={!hasChanges || isSaving}
onClick={() => form.reset(defaultValues)}
>
diff --git a/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx b/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx
index d7868f66af7..41f1b207df3 100644
--- a/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx
@@ -194,7 +194,7 @@ export const ConnectionPooling = () => {
title="Dedicated pooler uses IPv6 by default"
description="Connections from IPv4-only networks require enabling the IPv4 add-on on your project instance."
actions={
- <Button variant="default" asChild>
+ <Button asChild>
<Link href={`/project/${projectRef}/settings/addons?panel=ipv4`}>
Enable IPv4 add-on
</Link>
diff --git a/apps/studio/components/interfaces/Settings/Database/DatabaseReadOnlyAlert.tsx b/apps/studio/components/interfaces/Settings/Database/DatabaseReadOnlyAlert.tsx
index 4b8f4539270..54e82ebfc63 100644
--- a/apps/studio/components/interfaces/Settings/Database/DatabaseReadOnlyAlert.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/DatabaseReadOnlyAlert.tsx
@@ -59,10 +59,8 @@ export const DatabaseReadOnlyAlert = () => {
</ul>
</AlertDescription>
<div className="mt-4 flex items-center space-x-2">
- <Button variant="default" onClick={() => setShowConfirmationModal(true)}>
- Disable read-only mode
- </Button>
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button onClick={() => setShowConfirmationModal(true)}>Disable read-only mode</Button>
+ <Button asChild icon={<ExternalLink />}>
<a
href={`${DOCS_URL}/guides/platform/database-size#disabling-read-only-mode`}
target="_blank"
diff --git a/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPasswordDialog.tsx b/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPasswordDialog.tsx
index 4fc9e366095..9e3bde80045 100644
--- a/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPasswordDialog.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPasswordDialog.tsx
@@ -180,11 +180,7 @@ export const ResetDbPasswordDialog = ({
</FormItemLayout>
</DialogSection>
<DialogFooter>
- <Button
- variant="default"
- disabled={isUpdatingPassword}
- onClick={() => setShowResetDbPass(false)}
- >
+ <Button disabled={isUpdatingPassword} onClick={() => setShowResetDbPass(false)}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx b/apps/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx
index 515cf67241d..800dce887ae 100644
--- a/apps/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx
@@ -107,7 +107,6 @@ export const DiskSizeConfiguration = ({ disabled = false }: DiskSizeConfiguratio
</p>
{!isAwsNimbus && (
<ButtonTooltip
- variant="default"
className="w-min ml-auto"
disabled={!canUpdateDiskSizeConfig || isHighAvailability || disabled}
onClick={() => setShowIncreaseDiskSizeModal(true)}
@@ -142,11 +141,7 @@ export const DiskSizeConfiguration = ({ disabled = false }: DiskSizeConfiguratio
{reportsAll && (
<div className="col-span-2 mt-4">
- <Button
- asChild
- variant="default"
- iconRight={<ExternalLink size={14} />}
- >
+ <Button asChild iconRight={<ExternalLink size={14} />}>
<Link
href={`/project/${projectRef}/reports/database#database-size-report`}
>
@@ -202,7 +197,7 @@ Read more about [disk management](${DOCS_URL}/guides/platform/database-size#disk
disable your spend cap.
</p>
)}
- <Button asChild variant="default" className="mt-3">
+ <Button asChild className="mt-3">
<Link
href={`/org/${organization?.slug}/billing?panel=${
hasAccessToDiskSizeConfig === false ? 'subscriptionPlan' : 'costControl'
diff --git a/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsx b/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsx
index 3e3b43bf874..43a9f4bb01f 100644
--- a/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsx
@@ -162,7 +162,7 @@ const DiskSizeConfigurationModal = ({
You cannot manually expand the disk size any more than {maxDiskSize}GB. If you
need more than this, contact us via support for help.
</p>
- <Button asChild variant="default" className="mt-3">
+ <Button asChild className="mt-3">
<SupportLink
queryParams={{
projectRef,
@@ -191,7 +191,7 @@ const DiskSizeConfigurationModal = ({
'DD MMM YYYY, HH:mm (ZZ)'
)}. You've reached the disk modification limit for now — you can resize again in approximately ${formattedTimeTillNextAvailableResize}.`}
</div>
- <Button asChild variant="default" iconRight={<ExternalLink size={14} />}>
+ <Button asChild iconRight={<ExternalLink size={14} />}>
<Link href={`${DOCS_URL}/guides/platform/database-size#disk-management`}>
Read more about disk management
</Link>
@@ -225,9 +225,7 @@ const DiskSizeConfigurationModal = ({
</Form>
</DialogSection>
<DialogFooter>
- <Button variant="default" onClick={() => hideModal(false)}>
- Cancel
- </Button>
+ <Button onClick={() => hideModal(false)}>Cancel</Button>
<Button
form={formId}
type="submit"
@@ -261,7 +259,7 @@ const DiskSizeConfigurationModal = ({
disable your spend cap.
</p>
)}
- <Button asChild variant="default" className="mt-3">
+ <Button asChild className="mt-3">
<Link
href={`/org/${organization?.slug}/billing?panel=${
hasAccessToDiskModifications === false ? 'subscriptionPlan' : 'costControl'
diff --git a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessConfiguration.tsx b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessConfiguration.tsx
index dab3b686cd3..1bb16ef0642 100644
--- a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessConfiguration.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessConfiguration.tsx
@@ -393,7 +393,7 @@ export const JitDbAccessConfiguration = () => {
}
actions={
unavailableReason === 'postgres_upgrade_required' && ref ? (
- <Button variant="default" asChild>
+ <Button asChild>
<Link href={getServiceVersionsPath(ref)}>Upgrade Postgres</Link>
</Button>
) : unavailableReason === 'ssl_enforcement_required' && ref ? (
@@ -402,12 +402,10 @@ export const JitDbAccessConfiguration = () => {
isSubmitting={isEnablingSSLEnforcement}
onConfirm={handleEnableSSLEnforcement}
>
- <Button variant="default" loading={isEnablingSSLEnforcement}>
- Enable SSL enforcement
- </Button>
+ <Button loading={isEnablingSSLEnforcement}>Enable SSL enforcement</Button>
</SSLEnforcementConfirmDialog>
) : (
- <Button variant="default" asChild>
+ <Button asChild>
<SupportLink
queryParams={{
category: SupportCategories.PROBLEM,
diff --git a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRuleSheet.tsx b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRuleSheet.tsx
index 2725474aea1..e14da25faca 100644
--- a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRuleSheet.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRuleSheet.tsx
@@ -332,7 +332,7 @@ export function JitDbAccessRuleSheet({
</Form>
<SheetFooter className="mt-auto w-full border-t py-4">
- <Button variant="default" onClick={confirmOnClose} disabled={isSubmitting}>
+ <Button onClick={confirmOnClose} disabled={isSubmitting}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRulesTable.tsx b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRulesTable.tsx
index ec11659d7b0..89600ab1529 100644
--- a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRulesTable.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRulesTable.tsx
@@ -83,12 +83,7 @@ export function JitDbAccessRulesTable({
<Tooltip>
<TooltipTrigger asChild>
<span className="inline-flex">
- <Button
- variant="default"
- icon={<Plus />}
- onClick={onAddRule}
- disabled={addDisabled}
- >
+ <Button icon={<Plus />} onClick={onAddRule} disabled={addDisabled}>
Add rule
</Button>
</span>
@@ -173,7 +168,6 @@ export function JitDbAccessRulesTable({
<Button
icon={<EllipsisVertical />}
aria-label="More actions"
- variant="default"
size="tiny"
className="w-7 hit-area-2"
disabled={!canUpdate || disableActions}
diff --git a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
index 86ca4cd55a8..efa8a8f50de 100644
--- a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
@@ -264,7 +264,7 @@ const AddRestrictionModal = ({
</DialogSection>
)}
<DialogFooter>
- <Button variant="default" disabled={isApplying} onClick={() => onClose()}>
+ <Button disabled={isApplying} onClick={() => onClose()}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
index f4275aa8748..9c35cc0edcd 100644
--- a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
@@ -52,7 +52,6 @@ const getDisabledTooltip = (disabled: boolean, disabledTooltip?: string) =>
const AllowAllAccessButton = ({ disabled, disabledTooltip, onClick }: AccessButtonProps) => (
<ButtonTooltip
- variant="default"
disabled={disabled}
onClick={() => onClick(true)}
tooltip={{
@@ -69,7 +68,6 @@ const AllowAllAccessButton = ({ disabled, disabledTooltip, onClick }: AccessButt
const DisallowAllAccessButton = ({ disabled, disabledTooltip, onClick }: AccessButtonProps) => (
<ButtonTooltip
disabled={disabled}
- variant="default"
onClick={() => onClick(true)}
tooltip={{
content: {
@@ -319,7 +317,6 @@ export const NetworkRestrictions = () => {
<p className="text-sm font-mono">{ip}</p>
</div>
<ButtonTooltip
- variant="default"
disabled={isSectionDisabled}
onClick={() => setSelectedRestrictionToRemove(ip)}
tooltip={{
diff --git a/apps/studio/components/interfaces/Settings/Database/PoolingModesModal.tsx b/apps/studio/components/interfaces/Settings/Database/PoolingModesModal.tsx
index d7019bf0920..f2509c906fd 100644
--- a/apps/studio/components/interfaces/Settings/Database/PoolingModesModal.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/PoolingModesModal.tsx
@@ -108,7 +108,7 @@ This mode is similar to connecting to your database directly. There is full supp
)}
<DialogFooter>
<DialogClose onClick={() => snap.setShowPoolingModeHelper(false)}>
- <Button variant="default">Close</Button>
+ <Button>Close</Button>
</DialogClose>
</DialogFooter>
</DialogContent>
diff --git a/apps/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx b/apps/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx
index 7790f871e3d..0714bfee41c 100644
--- a/apps/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx
@@ -222,7 +222,6 @@ export const SSLConfiguration = () => {
{!hasSSLCertificate ? (
<ButtonTooltip
disabled
- variant="default"
icon={<Download />}
tooltip={{
content: {
@@ -234,7 +233,7 @@ export const SSLConfiguration = () => {
Download certificate
</ButtonTooltip>
) : (
- <Button variant="default" icon={<Download />}>
+ <Button icon={<Download />}>
<a href={sslCertificateUrl}>Download certificate</a>
</Button>
)}
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
index 40b694516a2..33fd389bb5e 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
@@ -95,12 +95,7 @@ export const CustomDomainActivate = ({ projectRef, customDomain }: CustomDomainA
<div className="flex items-center justify-between">
<DocsButton href={`${DOCS_URL}/guides/platform/custom-domains`} />
<div className="flex items-center space-x-2">
- <Button
- variant="default"
- className="self-end"
- onClick={onCancelCustomDomain}
- loading={isDeleting}
- >
+ <Button className="self-end" onClick={onCancelCustomDomain} loading={isDeleting}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
index ba3346362c1..bb8f2fd2787 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
@@ -175,12 +175,7 @@ export const CustomDomainVerify = () => {
<div className="flex items-center justify-between">
<DocsButton href={`${DOCS_URL}/guides/platform/custom-domains`} />
<div className="flex items-center space-x-2">
- <Button
- variant="default"
- onClick={onCancelCustomDomain}
- loading={isDeleting}
- className="self-end"
- >
+ <Button onClick={onCancelCustomDomain} loading={isDeleting} className="self-end">
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx
index 37269e91fe6..4023f63a96b 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx
@@ -145,11 +145,7 @@ export const CustomDomainsConfigureHostname = () => {
<CardFooter className="justify-end space-x-2">
{form.formState.isDirty && (
- <Button
- variant="default"
- disabled={isSubmitting}
- onClick={() => form.reset({ domain: '' })}
- >
+ <Button disabled={isSubmitting} onClick={() => form.reset({ domain: '' })}>
Cancel
</Button>
)}
diff --git a/apps/studio/components/interfaces/Settings/General/DashboardPreferences.tsx b/apps/studio/components/interfaces/Settings/General/DashboardPreferences.tsx
index ffcacaf06a8..30d2926360f 100644
--- a/apps/studio/components/interfaces/Settings/General/DashboardPreferences.tsx
+++ b/apps/studio/components/interfaces/Settings/General/DashboardPreferences.tsx
@@ -147,11 +147,7 @@ export const DashboardPreferences = () => {
</CardContent>
<CardFooter className="justify-end space-x-2">
{form.formState.isDirty && (
- <Button
- variant="default"
- type="button"
- onClick={() => form.reset(dashboardPreferences)}
- >
+ <Button type="button" onClick={() => form.reset(dashboardPreferences)}>
Cancel
</Button>
)}
@@ -197,7 +193,7 @@ const DashboardQueriesDialog = () => {
<DialogFooter>
<DialogClose asChild className="opacity-100">
- <Button variant="default">Understood</Button>
+ <Button>Understood</Button>
</DialogClose>
</DialogFooter>
</DialogContent>
diff --git a/apps/studio/components/interfaces/Settings/General/General.tsx b/apps/studio/components/interfaces/Settings/General/General.tsx
index 7bcba9057d3..734df08c711 100644
--- a/apps/studio/components/interfaces/Settings/General/General.tsx
+++ b/apps/studio/components/interfaces/Settings/General/General.tsx
@@ -240,7 +240,6 @@ export const General = () => {
<CardFooter className="justify-end space-x-2">
{form.formState.isDirty && (
<Button
- variant="default"
type="button"
disabled={isUpdating}
onClick={() => form.reset({ name: project?.name ?? '' })}
diff --git a/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx b/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx
index c449a2ae13b..3ee6613ef22 100644
--- a/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx
+++ b/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx
@@ -97,7 +97,6 @@ export const PauseProjectButton = () => {
return (
<>
<ButtonTooltip
- variant="default"
icon={<CirclePause />}
onClick={() => setIsModalOpen(true)}
loading={isPausing}
diff --git a/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx b/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx
index 4a06a54e88c..3c86281dec2 100644
--- a/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx
+++ b/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx
@@ -182,7 +182,7 @@ export const ProjectUpgradeAlert = () => {
</p>
<div>
- <Button size="tiny" variant="default" asChild>
+ <Button size="tiny" asChild>
<Link
href={`${DOCS_URL}/guides/platform/migrating-and-upgrading-projects#caveats`}
target="_blank"
@@ -224,7 +224,7 @@ export const ProjectUpgradeAlert = () => {
</div>
</div>
<div>
- <Button size="tiny" variant="default" asChild>
+ <Button size="tiny" asChild>
<Link
href={`${DOCS_URL}/guides/platform/migrating-and-upgrading-projects#caveats`}
target="_blank"
@@ -276,11 +276,7 @@ export const ProjectUpgradeAlert = () => {
</div>
</DialogSection>
<DialogFooter>
- <Button
- variant="default"
- onClick={() => setShowUpgradeModal(false)}
- disabled={isUpgrading}
- >
+ <Button onClick={() => setShowUpgradeModal(false)} disabled={isUpgrading}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx b/apps/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx
index 351179f520e..68213ca961d 100644
--- a/apps/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx
+++ b/apps/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx
@@ -103,7 +103,6 @@ export const RestartServerButton = () => {
<div className="flex w-full @lg:w-auto">
<ButtonTooltip
type="button"
- variant="default"
className={cn(
'flex-1 px-3 hover:z-10 focus-visible:z-10 @lg:flex-none',
canRestartProject && canRestart ? 'rounded-r-none focus-visible:rounded-r-sm' : ''
@@ -132,7 +131,6 @@ export const RestartServerButton = () => {
<DropdownMenuTrigger asChild>
<Button
type="button"
- variant="default"
aria-label="Choose restart type"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
icon={<ChevronDown />}
@@ -161,7 +159,6 @@ export const RestartServerButton = () => {
</div>
) : (
<Button
- variant="default"
icon={<RefreshCw />}
className="w-full @lg:w-auto"
disabled={isLoading}
diff --git a/apps/studio/components/interfaces/Settings/General/Project.tsx b/apps/studio/components/interfaces/Settings/General/Project.tsx
index 2ffa2e1c015..872a2adbe93 100644
--- a/apps/studio/components/interfaces/Settings/General/Project.tsx
+++ b/apps/studio/components/interfaces/Settings/General/Project.tsx
@@ -77,7 +77,7 @@ export const Project = () => {
</div>
{isPaused ? (
shouldShowDashboardLink ? (
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${project?.ref}`}>View project dashboard</Link>
</Button>
) : (
diff --git a/apps/studio/components/interfaces/Settings/General/ProjectAccessSection.tsx b/apps/studio/components/interfaces/Settings/General/ProjectAccessSection.tsx
index 9a0085353d7..1c0a3c43811 100644
--- a/apps/studio/components/interfaces/Settings/General/ProjectAccessSection.tsx
+++ b/apps/studio/components/interfaces/Settings/General/ProjectAccessSection.tsx
@@ -131,7 +131,7 @@ export const ProjectAccessSection = () => {
<p className="text-sm text-foreground-light">{projectAccessDescription}</p>
</div>
{!!organization?.slug && (
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/org/${organization.slug}/team`}>
{hasLimitedVisibility ? 'View team' : 'Manage members'}
</Link>
diff --git a/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx b/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx
index ea74ea2409c..9e5c1e23eba 100644
--- a/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx
+++ b/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx
@@ -98,7 +98,6 @@ export const TransferProjectButton = () => {
<Dialog onOpenChange={(open) => setIsOpen(open)} open={isOpen}>
<DialogTrigger asChild>
<ButtonTooltip
- variant="default"
disabled={!canTransferProject || disableProjectTransfer}
tooltip={{
content: {
@@ -283,9 +282,7 @@ export const TransferProjectButton = () => {
</Loading>
)}
<DialogFooter>
- <Button variant="default" onClick={() => setIsOpen(false)}>
- Cancel
- </Button>
+ <Button onClick={() => setIsOpen(false)}>Cancel</Button>
<Button
variant="primary"
onClick={() => handleTransferProject()}
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx
index 7b4b4732259..9870641d046 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx
@@ -181,7 +181,6 @@ const InstanceConfigurationUI = () => {
{isAws && (
<div className="flex items-center justify-center">
<Button
- variant="default"
icon={<Network size={15} />}
className={`rounded-r-none transition ${
view === 'flow' ? 'opacity-100' : 'opacity-50'
@@ -189,7 +188,6 @@ const InstanceConfigurationUI = () => {
onClick={() => setView('flow')}
/>
<Button
- variant="default"
icon={<Globe2 size={15} />}
className={`rounded-l-none transition ${
view === 'map' ? 'opacity-100' : 'opacity-50'
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx
index 1a917efb210..93c70b1c03c 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx
@@ -316,7 +316,6 @@ const MapView = () => {
}`}
>
<Button
- variant="default"
onClick={() => {
setCenter([14, 7])
setZoom(1.5)
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/ReadReplicaEligibilityWarnings.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/ReadReplicaEligibilityWarnings.tsx
index 970c1dcd999..479c276bc65 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/ReadReplicaEligibilityWarnings.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/ReadReplicaEligibilityWarnings.tsx
@@ -82,7 +82,7 @@ export const ReadReplicaEligibilityWarnings = ({
return (
<Admonition type="warning" title="Your organization has overdue invoices">
<p>Please resolve all outstanding invoices first before deploying a new read replica.</p>
- <Button asChild variant="default" className="mt-2">
+ <Button asChild className="mt-2">
<Link href={`/org/${org?.slug}/billing#invoices`}>View invoices</Link>
</Button>
</Admonition>
@@ -139,7 +139,7 @@ export const ReadReplicaEligibilityWarnings = ({
title="Read replicas can only be deployed with projects on Postgres version 15 and above"
>
<p>If you'd like to use read replicas, please contact us via support.</p>
- <Button asChild variant="default" className="mt-2">
+ <Button asChild className="mt-2">
<SupportLink
queryParams={{
projectRef,
@@ -180,7 +180,6 @@ export const ReadReplicaEligibilityWarnings = ({
/>
) : (
<Button
- variant="default"
className="mt-2"
onClick={() => onRecommendCompute(RECOMMENDED_COMPUTE_FOR_READ_REPLICAS.minimum)}
>
@@ -223,7 +222,6 @@ export const ReadReplicaEligibilityWarnings = ({
{refetchInterval === false && (
<div className="flex items-center gap-x-2 mt-2">
<Button
- variant="default"
loading={isEnabling}
disabled={isEnabling}
onClick={() => {
@@ -276,7 +274,6 @@ export const ReadReplicaEligibilityWarnings = ({
project is on an XL compute or higher.
</p>
<Button
- variant="default"
className="mt-2"
onClick={() =>
onRecommendCompute(RECOMMENDED_COMPUTE_FOR_READ_REPLICAS.unlockMaxReplicas)
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/ReadReplicaPricingDialog.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/ReadReplicaPricingDialog.tsx
index 564e244f84c..20dd38d46b5 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/ReadReplicaPricingDialog.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/ReadReplicaPricingDialog.tsx
@@ -50,18 +50,12 @@ export const ReadReplicaPricingDialog = ({ replicaCost }: ReadReplicaPricingDial
className="mb-0 rounded-none border-x-0"
actions={
isError ? (
- <Button
- type="button"
- variant="default"
- size="tiny"
- disabled={isLoading}
- onClick={retry}
- >
+ <Button type="button" size="tiny" disabled={isLoading} onClick={retry}>
Retry
</Button>
) : (
<DialogTrigger asChild>
- <Button type="button" variant="default" size="tiny" disabled={isLoading}>
+ <Button type="button" size="tiny" disabled={isLoading}>
View breakdown
</Button>
</DialogTrigger>
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/index.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/index.tsx
index 0cf2587a2ff..481d5565018 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/index.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaForm/index.tsx
@@ -140,7 +140,7 @@ export const ReadReplicaForm = ({
)}
<DialogFooter className="border-t-0">
- <Button disabled={isSettingUp} variant="default" onClick={onClose}>
+ <Button disabled={isSettingUp} onClick={onClose}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaRow.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaRow.tsx
index d8fc7ebe61b..330978e5306 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaRow.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaRow.tsx
@@ -108,17 +108,12 @@ export const ReadReplicaRow = ({ replica, onUpdateReplica }: ReadReplicaRow) =>
<TableCell>
<div className="flex items-center justify-end gap-x-2">
- <Button
- asChild
- variant="default"
- className="relative"
- disabled={status === 'GOING_DOWN'}
- >
+ <Button asChild className="relative" disabled={status === 'GOING_DOWN'}>
<Link href={getReadReplicaPath(ref, replica.identifier)}>View replica</Link>
</Button>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" icon={<MoreVertical />} className="w-7" />
+ <Button icon={<MoreVertical />} className="w-7" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-52">
<DropdownMenuItem
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicasSection.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicasSection.tsx
index 324e44439dc..429b5281cfc 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicasSection.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicasSection.tsx
@@ -150,12 +150,7 @@ export const ReadReplicasSection = ({ onRecommendCompute }: ReadReplicasSectionP
description="All reads and writes currently go to the primary."
>
{!isHighAvailability && (
- <Button
- type="button"
- variant="default"
- icon={<Plus />}
- onClick={() => setAddReplica(true)}
- >
+ <Button type="button" icon={<Plus />} onClick={() => setAddReplica(true)}>
Add read replica
</Button>
)}
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx
index 7ebf1c69721..5e38f99ed15 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx
@@ -20,7 +20,7 @@ export const ReadReplicasWarning = ({ latestPgVersion }: { latestPgVersion: stri
title="A newer version of Postgres is available"
description={`You will need to remove all read replicas prior to upgrading your Postgres version to the latest available (${latestPgVersion}).`}
actions={
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${ref}/database/replication`}>Manage read replicas</Link>
</Button>
}
@@ -124,7 +124,7 @@ const ValidationErrorItem = ({ error }: { error: ProjectUpgradeEligibilityValida
<p className="text-foreground-lighter text-xs">{description}</p>
</div>
{manageLink && (
- <Button size="tiny" variant="default" asChild>
+ <Button size="tiny" asChild>
<Link href={manageLink}>Manage</Link>
</Button>
)}
@@ -209,7 +209,7 @@ export const ValidationWarningsAdmonition = ({
title={getWarningTitle(warning)}
description={getWarningDescription(warning)}
>
- <Button asChild variant="default" className="mt-2">
+ <Button asChild className="mt-2">
<Link href={getWarningLink(warning)} target="_blank" rel="noreferrer">
Read upgrade notes
</Link>
diff --git a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkAttentionAdmonition.tsx b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkAttentionAdmonition.tsx
index f2d4258d9fc..154908934f5 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkAttentionAdmonition.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkAttentionAdmonition.tsx
@@ -26,7 +26,7 @@ export function AWSPrivateLinkAttentionAdmonition({
className={className}
actions={
copy.shouldShowAcceptLink && (
- <Button variant="default" className="w-min" icon={<SquareArrowOutUpRight />} asChild>
+ <Button className="w-min" icon={<SquareArrowOutUpRight />} asChild>
<Link
target="_blank"
rel="noopener noreferrer"
diff --git a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkForm.tsx b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkForm.tsx
index 316f2e817fc..72a04286645 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkForm.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkForm.tsx
@@ -255,7 +255,7 @@ export const AWSPrivateLinkForm = ({
<Button type="button" variant="danger" onClick={onDelete}>
Delete
</Button>
- <Button type="button" variant="default" onClick={() => handleOpenChange(false)}>
+ <Button type="button" onClick={() => handleOpenChange(false)}>
Close
</Button>
</>
@@ -263,7 +263,6 @@ export const AWSPrivateLinkForm = ({
<>
<Button
type="button"
- variant="default"
disabled={isPending}
onClick={() => handleOpenChange(false)}
>
diff --git a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkSection.tsx b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkSection.tsx
index 0b70fb07b5a..d3aa0c272ac 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkSection.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkSection.tsx
@@ -126,7 +126,7 @@ export const AWSPrivateLinkSection = () => {
<div className={cn(promptPlanUpgrade && 'opacity-25 pointer-events-none')}>
<div className="flex items-center justify-between mb-3">
<h3 className="text-sm font-medium text-foreground">Connections</h3>
- <Button variant="default" icon={<Plus />} onClick={onAddAccount}>
+ <Button icon={<Plus />} onClick={onAddAccount}>
Add connection
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
index 6de70c98b15..a9d0c4a28a0 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
@@ -646,7 +646,6 @@ export const GitHubIntegrationConnectionForm = ({
<div className="flex space-x-2">
{githubSettingsForm.formState.isDirty && (
<Button
- variant="default"
onClick={() => githubSettingsForm.reset()}
disabled={!canUpdateGitHubConnection || isCheckingBranch}
>
diff --git a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubRepositoryField.tsx b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubRepositoryField.tsx
index 4e2b8112d44..5d635e1c2f0 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubRepositoryField.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubRepositoryField.tsx
@@ -138,7 +138,6 @@ export const GitHubRepositoryField = <TFormValues extends FieldValues>({
<FormControl>
<Button
id={name}
- variant="default"
size="tiny"
type="button"
disabled={disabled}
@@ -157,7 +156,6 @@ export const GitHubRepositoryField = <TFormValues extends FieldValues>({
<FormControl>
<Button
id={name}
- variant="default"
type="button"
className="justify-start h-[34px] w-full [&>div:last-child]:ml-auto"
disabled={disabled || isLoading}
diff --git a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx
index 2c927fea1ee..39a8244c032 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx
@@ -203,7 +203,6 @@ function GitHubOrgEmptyState({ disabled, onClick }: { disabled: boolean; onClick
{disabled ? (
<ButtonTooltip
icon={<Plus />}
- variant="default"
size="tiny"
disabled
tooltip={{
@@ -216,7 +215,7 @@ function GitHubOrgEmptyState({ disabled, onClick }: { disabled: boolean; onClick
Add connection
</ButtonTooltip>
) : (
- <Button icon={<Plus />} variant="default" size="tiny" type="button" onClick={onClick}>
+ <Button icon={<Plus />} size="tiny" type="button" onClick={onClick}>
Add connection
</Button>
)}
diff --git a/apps/studio/components/interfaces/Settings/Logs/LegacyLogsRewriteAdmonition.tsx b/apps/studio/components/interfaces/Settings/Logs/LegacyLogsRewriteAdmonition.tsx
index 581c0b02334..f2a70282c1e 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LegacyLogsRewriteAdmonition.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LegacyLogsRewriteAdmonition.tsx
@@ -38,7 +38,7 @@ export const LegacyLogsRewriteAdmonition = ({
description={state.message}
actions={
<div className="flex items-center gap-2">
- <Button variant="default" size="tiny" onClick={onRewrite}>
+ <Button size="tiny" onClick={onRewrite}>
Try again
</Button>
<Button variant="text" size="tiny" onClick={onDismiss}>
@@ -62,7 +62,7 @@ export const LegacyLogsRewriteAdmonition = ({
title="No rewrite needed"
description="The Assistant found nothing to change — this query already runs on ClickHouse."
actions={
- <Button variant="default" size="tiny" onClick={onDismiss}>
+ <Button size="tiny" onClick={onDismiss}>
Dismiss
</Button>
}
@@ -81,7 +81,7 @@ export const LegacyLogsRewriteAdmonition = ({
description="This query needs to be adjusted to ClickHouse SQL, which the Assistant can do for you."
actions={
<div className="flex items-center gap-2">
- <Button variant="default" size="tiny" loading={isRewriting} onClick={onRewrite}>
+ <Button size="tiny" loading={isRewriting} onClick={onRewrite}>
Rewrite with Assistant
</Button>
{/* Disabled mid-rewrite so the offer can't be dismissed out from under
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx b/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx
index fe73a36671f..4a23d3783b1 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx
@@ -486,11 +486,7 @@ export const LogTable = ({
{showHistogramToggle && (
<div className="flex items-center gap-2">
- <Button
- variant="default"
- icon={isHistogramShowing ? <Eye /> : <EyeOff />}
- onClick={onHistogramToggle}
- >
+ <Button icon={isHistogramShowing ? <Eye /> : <EyeOff />} onClick={onHistogramToggle}>
Histogram
</Button>
</div>
@@ -499,7 +495,6 @@ export const LogTable = ({
<div className="gap-x-2 flex items-center">
{IS_PLATFORM && (
<ButtonTooltip
- variant="default"
onClick={onSave}
loading={isSaving}
disabled={!canCreateLogQuery || !hasEditorValue}
diff --git a/apps/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx b/apps/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx
index 2deadf6e71f..f5b2ab65bfe 100644
--- a/apps/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx
@@ -284,7 +284,7 @@ export const LogsDatePicker = ({
const triggerButton = (
<PopoverTrigger asChild>
- <Button variant="default" icon={<Clock size={12} />} {...buttonTriggerProps}>
+ <Button icon={<Clock size={12} />} {...buttonTriggerProps}>
{value.isHelper
? value.text
: `${dayjs(value.from).format('DD MMM, HH:mm')} - ${dayjs(value.to || new Date()).format('DD MMM, HH:mm')}`}
@@ -421,7 +421,6 @@ export const LogsDatePicker = ({
) : null}
<Button
- variant="default"
onClick={() => {
const today = new Date()
setCurrentMonth(today)
diff --git a/apps/studio/components/interfaces/Settings/Logs/Logs.UpdateSavedQueryModal.tsx b/apps/studio/components/interfaces/Settings/Logs/Logs.UpdateSavedQueryModal.tsx
index ed6c2803ee9..f1f571251c6 100644
--- a/apps/studio/components/interfaces/Settings/Logs/Logs.UpdateSavedQueryModal.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/Logs.UpdateSavedQueryModal.tsx
@@ -94,7 +94,7 @@ export const UpdateSavedQueryModal = ({
/>
</DialogSection>
<DialogFooter>
- <Button type="reset" variant="default" onClick={handleCancel} disabled={isSubmitting}>
+ <Button type="reset" onClick={handleCancel} disabled={isSubmitting}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogsFilterPopover.tsx b/apps/studio/components/interfaces/Settings/Logs/LogsFilterPopover.tsx
index df7de4a1480..7640332a2d4 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogsFilterPopover.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogsFilterPopover.tsx
@@ -107,7 +107,7 @@ const LogsFilterPopover = ({
))}
<div className="flex items-center justify-end gap-2 border-t border-default p-2">
- <Button size="tiny" variant="default" onClick={handleReset} type="button">
+ <Button size="tiny" onClick={handleReset} type="button">
Clear
</Button>
<Button loading={isLoading} variant="primary" type="submit">
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx b/apps/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx
index 7f7450ac950..355c575d384 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx
@@ -375,7 +375,6 @@ export const LogsPreviewer = ({
<Button
onClick={loadOlder}
icon={<Rewind />}
- variant="default"
loading={isLoadingOlder}
disabled={isLoadingOlder}
>
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx b/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
index 27e0f4c2660..2554b5b9452 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
@@ -136,9 +136,7 @@ export const LogsQueryPanel = ({
<div className="flex items-center gap-2">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" iconRight={<ChevronDown />}>
- Insert source
- </Button>
+ <Button iconRight={<ChevronDown />}>Insert source</Button>
</DropdownMenuTrigger>
<DropdownMenuContent
side="bottom"
@@ -161,9 +159,7 @@ export const LogsQueryPanel = ({
{logsTemplates && (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" iconRight={<ChevronDown />}>
- Templates
- </Button>
+ <Button iconRight={<ChevronDown />}>Templates</Button>
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="start">
{templates
@@ -284,7 +280,6 @@ export const LogsQueryPanel = ({
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button
- variant="default"
role="combobox"
size={'small'}
aria-expanded={open}
diff --git a/apps/studio/components/interfaces/Settings/Logs/MultiSelectActionBar.tsx b/apps/studio/components/interfaces/Settings/Logs/MultiSelectActionBar.tsx
index 9878a47a1df..e76aab3810c 100644
--- a/apps/studio/components/interfaces/Settings/Logs/MultiSelectActionBar.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/MultiSelectActionBar.tsx
@@ -61,7 +61,6 @@ export function MultiSelectActionBar({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
size="tiny"
icon={copiedFormat ? <Check size={12} className="text-brand" /> : <Copy size={12} />}
iconRight={<ChevronDown size={11} />}
diff --git a/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx b/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx
index 001201b837d..6bf413ffd92 100644
--- a/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx
@@ -190,7 +190,6 @@ const PreviewFilterPanel = ({
<ShortcutTooltip shortcutId={SHORTCUT_IDS.LOGS_PREVIEW_REFRESH} side="bottom">
<Button
title="refresh"
- variant="default"
className="px-1.5"
icon={
<div className="relative">
@@ -257,7 +256,6 @@ const PreviewFilterPanel = ({
<div className="flex items-center space-x-2">
<ShortcutTooltip shortcutId={SHORTCUT_IDS.LOGS_PREVIEW_TOGGLE_CHART} side="bottom">
<Button
- variant="default"
onClick={() => onToggleEventChart()}
icon={isShowingEventChart ? <Eye /> : <EyeOff />}
>
@@ -280,7 +278,7 @@ const PreviewFilterPanel = ({
<div className="flex items-center justify-center gap-x-2">
<Tooltip>
<TooltipTrigger asChild>
- <Button asChild className="px-1.5" variant="default" icon={<Terminal />}>
+ <Button asChild className="px-1.5" icon={<Terminal />}>
<Link href={queryUrl} />
</Button>
</TooltipTrigger>
@@ -300,7 +298,7 @@ const PreviewFilterPanel = ({
/>
</div>
) : (
- <Button asChild variant="default" onClick={onExploreClick}>
+ <Button asChild onClick={onExploreClick}>
<Link href={queryUrl}>Explore via query</Link>
</Button>
)}
diff --git a/apps/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx b/apps/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx
index b935c819738..12834cb5ef6 100644
--- a/apps/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx
@@ -85,9 +85,7 @@ const UpgradePrompt: React.FC<Props> = ({
</div>
</DialogSection>
<DialogFooter className="flex justify-end gap-3">
- <Button variant="default" onClick={() => setShowUpgradePrompt(false)}>
- Close
- </Button>
+ <Button onClick={() => setShowUpgradePrompt(false)}>Close</Button>
<Button variant="primary" asChild size="tiny">
<Link
href={`/org/${organization?.slug}/billing?panel=subscriptionPlan&source=${source}`}
diff --git a/apps/studio/components/interfaces/SignIn/ResetPasswordForm.tsx b/apps/studio/components/interfaces/SignIn/ResetPasswordForm.tsx
index e1396ebbcb0..ad60b6950d3 100644
--- a/apps/studio/components/interfaces/SignIn/ResetPasswordForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/ResetPasswordForm.tsx
@@ -81,7 +81,6 @@ export const ResetPasswordForm = () => {
actions={
<Button
icon={currentPasswordHidden ? <Eye /> : <EyeOff />}
- variant="default"
className="w-7"
onClick={() => setCurrentPasswordHidden((prev) => !prev)}
/>
@@ -113,7 +112,6 @@ export const ResetPasswordForm = () => {
actions={
<Button
icon={passwordHidden ? <Eye /> : <EyeOff />}
- variant="default"
className="w-7"
onClick={() => setPasswordHidden((prev) => !prev)}
/>
diff --git a/apps/studio/components/interfaces/SignIn/SessionTimeoutModal.tsx b/apps/studio/components/interfaces/SignIn/SessionTimeoutModal.tsx
index 922e1ab3091..89cf1b1b073 100644
--- a/apps/studio/components/interfaces/SignIn/SessionTimeoutModal.tsx
+++ b/apps/studio/components/interfaces/SignIn/SessionTimeoutModal.tsx
@@ -63,7 +63,7 @@ export const SessionTimeoutModal = ({
Try a different browser or disable extensions that block network requests. If
the problem persists:
</p>
- <Button variant="default" size="tiny" onClick={handleClearStorage}>
+ <Button size="tiny" onClick={handleClearStorage}>
Clear site data and reload
</Button>
<p>
diff --git a/apps/studio/components/interfaces/SignIn/SignInForm.tsx b/apps/studio/components/interfaces/SignIn/SignInForm.tsx
index e602bf4db9a..ac85aefc03f 100644
--- a/apps/studio/components/interfaces/SignIn/SignInForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignInForm.tsx
@@ -184,7 +184,6 @@ export const SignInForm = () => {
/>
</FormControl>
<Button
- variant="default"
title={passwordHidden ? `Show password` : `Hide password`}
aria-label={passwordHidden ? `Show password` : `Hide password`}
className="absolute right-1 top-1 px-1.5"
diff --git a/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx b/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx
index ce516318cb4..11880b2a875 100644
--- a/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx
@@ -122,10 +122,10 @@ export const SignInMfaForm = ({ context = 'sign-in' }: SignInMfaFormProps) => {
hideContactSupport
additionalActions={
<>
- <Button asChild variant="default">
+ <Button asChild>
<Link href="/sign-in">Back to sign in</Link>
</Button>
- <Button asChild variant="default">
+ <Button asChild>
<a href={SUPPORT_EMAIL_HREF}>Email support</a>
</Button>
</>
diff --git a/apps/studio/components/interfaces/SignIn/SignInWithCustom.tsx b/apps/studio/components/interfaces/SignIn/SignInWithCustom.tsx
index 044ecaeb08c..820a93fb9ec 100644
--- a/apps/studio/components/interfaces/SignIn/SignInWithCustom.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignInWithCustom.tsx
@@ -50,7 +50,7 @@ export const SignInWithCustom = ({ providerName }: SignInWithCustomProps) => {
}
return (
- <Button block onClick={handleCustomSignIn} size="large" variant="default" loading={loading}>
+ <Button block onClick={handleCustomSignIn} size="large" loading={loading}>
Continue with {displayName}
</Button>
)
diff --git a/apps/studio/components/interfaces/SignIn/SignUpForm.tsx b/apps/studio/components/interfaces/SignIn/SignUpForm.tsx
index 85612d22649..9b9ae4cfcb7 100644
--- a/apps/studio/components/interfaces/SignIn/SignUpForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignUpForm.tsx
@@ -190,7 +190,6 @@ export const SignUpForm = ({ onSuccess }: { onSuccess?: () => void }) => {
/>
</FormControl>
<Button
- variant="default"
title={passwordHidden ? `Show password` : `Hide password`}
aria-label={passwordHidden ? `Show password` : `Hide password`}
className="absolute right-1 top-1 px-1.5"
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/BucketCallouts.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/BucketCallouts.tsx
index 98a0070380e..237ba88ba89 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/BucketCallouts.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/BucketCallouts.tsx
@@ -45,7 +45,7 @@ export const ExtensionNotInstalled = ({
Learn more
</InlineLink>
</p>
- <Button variant="default" asChild className="mt-2" onClick={() => {}}>
+ <Button asChild className="mt-2" onClick={() => {}}>
<Link
href={
databaseNeedsUpgrading
@@ -94,7 +94,7 @@ export const ExtensionNeedsUpgrade = ({
Before reinstalling the wrapper extension, you must first remove all existing wrappers.
Afterward, you can recreate the wrappers.
</p>
- <Button asChild variant="default">
+ <Button asChild>
<Link
href={
databaseNeedsUpgrading
@@ -126,7 +126,7 @@ export const WrapperMissing = ({ bucketName }: { bucketName?: string }) => {
<ScaffoldSection isFullWidth>
<Admonition type="warning" title="Missing integration">
<p>The Iceberg Wrapper integration is required in order to query analytics tables.</p>
- <Button variant="default" loading={isCreatingIcebergWrapper} onClick={onSetupWrapper}>
+ <Button loading={isCreatingIcebergWrapper} onClick={onSetupWrapper}>
Install wrapper
</Button>
</Admonition>
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CopyEnvButton.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CopyEnvButton.tsx
index d2744e30b40..949d5bd483f 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CopyEnvButton.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CopyEnvButton.tsx
@@ -39,7 +39,7 @@ export const CopyEnvButton = ({
}, [serverOptions, values])
return (
- <Button variant="default" loading={isLoading} icon={<Copy />} onClick={onCopy}>
+ <Button loading={isLoading} icon={<Copy />} onClick={onCopy}>
Copy all
</Button>
)
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableInstructions.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableInstructions.tsx
index 274b606bd97..cc8c3d86eb3 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableInstructions.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableInstructions.tsx
@@ -208,7 +208,6 @@ export const CreateTableInstructions = ({
}}
/>
<ButtonTooltip
- variant="default"
className="w-7"
loading={isFetchingSecretValues}
onClick={() => setShowKeys(!showKeys)}
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableSheet.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableSheet.tsx
index 5514f0d3924..a2d72ca0260 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableSheet.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableSheet.tsx
@@ -223,7 +223,6 @@ export const CreateTableSheet = ({ open, onOpenChange }: CreateTableSheetProps)
<div className="flex items-center justify-between">
<p className="text-sm">Columns</p>
<Button
- variant="default"
icon={<Plus />}
onClick={() => appendColumn({ name: '', type: 'string' })}
>
@@ -259,7 +258,6 @@ export const CreateTableSheet = ({ open, onOpenChange }: CreateTableSheetProps)
<SheetFooter>
<Button
disabled={isCreating}
- variant="default"
onClick={() => {
onOpenChange(false)
form.reset(defaultValues)
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/DecryptedReadOnlyInput.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/DecryptedReadOnlyInput.tsx
index e55e8839d11..03debdf7ffc 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/DecryptedReadOnlyInput.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/DecryptedReadOnlyInput.tsx
@@ -82,17 +82,11 @@ export const DecryptedReadOnlyInput = ({
secureEntry ? (
isLoading ? (
<div className="flex items-center justify-center">
- <Button
- disabled
- variant="default"
- className="w-7"
- icon={<Loader className="animate-spin" />}
- />
+ <Button disabled className="w-7" icon={<Loader className="animate-spin" />} />
</div>
) : (
<div className="flex items-center justify-center">
<Button
- variant="default"
className="w-7"
loading={showHidden && isDecryptedValueLoading}
icon={showHidden ? <Eye /> : <EyeOff />}
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/InitializeForeignSchemaDialog.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/InitializeForeignSchemaDialog.tsx
index a1940c6b7c8..603500f6e73 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/InitializeForeignSchemaDialog.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/InitializeForeignSchemaDialog.tsx
@@ -90,7 +90,7 @@ export const InitializeForeignSchemaDialog = ({ namespace }: { namespace: string
return (
<Dialog open={isOpen} onOpenChange={setIsOpen}>
<DialogTrigger asChild>
- <Button variant="default">Query from Postgres</Button>
+ <Button>Query from Postgres</Button>
</DialogTrigger>
<DialogContent size="medium" aria-describedby={undefined}>
<Form {...form}>
@@ -118,7 +118,7 @@ export const InitializeForeignSchemaDialog = ({ namespace }: { namespace: string
<DialogFooter className="justify-between!">
<DocsButton href={`${DOCS_URL}/guides/storage/analytics/query-with-postgres`} />
<div className="flex items-center gap-x-2">
- <Button variant="default" disabled={isCreating} onClick={() => setIsOpen(false)}>
+ <Button disabled={isCreating} onClick={() => setIsOpen(false)}>
Cancel
</Button>
<Button type="submit" variant="primary" loading={isCreating}>
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/InsertDataDialog.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/InsertDataDialog.tsx
index f35b67cd5db..2d53ac69e33 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/InsertDataDialog.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/InsertDataDialog.tsx
@@ -39,7 +39,7 @@ values (
return (
<Dialog>
<DialogTrigger asChild>
- <Button variant="default">Insert data</Button>
+ <Button>Insert data</Button>
</DialogTrigger>
<DialogContent aria-describedby={undefined}>
<DialogHeader>
@@ -76,7 +76,7 @@ values (
<DocsButton
href={`${DOCS_URL}/guides/database/extensions/wrappers/iceberg#data-insertion`}
/>
- <Button asChild variant="default" icon={<SqlEditor />}>
+ <Button asChild icon={<SqlEditor />}>
<Link href={`/project/${ref}/sql/new?content=${encodeURIComponent(sql)}`}>
Open in SQL Editor
</Link>
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/TableRowComponent.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/TableRowComponent.tsx
index c0fcf501e1c..226f45de9ca 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/TableRowComponent.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/TableRowComponent.tsx
@@ -348,7 +348,7 @@ export const TableRowComponent = ({ table, schema, namespace }: TableRowComponen
<>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" className="w-7" icon={<MoreVertical />} />
+ <Button className="w-7" icon={<MoreVertical />} />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-fit min-w-[180px]">
@@ -410,7 +410,6 @@ export const TableRowComponent = ({ table, schema, namespace }: TableRowComponen
<DropdownMenuTrigger asChild>
<Button
loading={isDeletingNamespaceTable}
- variant="default"
className="w-7"
icon={<MoreVertical />}
/>
@@ -452,7 +451,7 @@ export const TableRowComponent = ({ table, schema, namespace }: TableRowComponen
<InsertDataDialog table={table.name} fdwTable={x} />
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" className="w-7" icon={<MoreVertical />} />
+ <Button className="w-7" icon={<MoreVertical />} />
</DropdownMenuTrigger>
<DropdownMenuContent className="w-fit min-w-[180px]" align="end">
<DropdownMenuItem asChild className="flex items-center gap-x-2">
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/index.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/index.tsx
index 729322897b0..06d3ad3744b 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/index.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/index.tsx
@@ -301,7 +301,7 @@ export const NamespaceWithTables = ({
) : null}
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" className="w-7" icon={<MoreVertical />} />
+ <Button className="w-7" icon={<MoreVertical />} />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-fit min-w-[180px]">
<DropdownMenuItem
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/UpdateCatalogTokenDialog.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/UpdateCatalogTokenDialog.tsx
index ed73ce414f9..10d93546846 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/UpdateCatalogTokenDialog.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/UpdateCatalogTokenDialog.tsx
@@ -81,9 +81,7 @@ export const UpdateCatalogTokenDialog = ({ vaultTokenId }: { vaultTokenId?: stri
return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>
- <Button variant="default" className="mt-1">
- Update catalog token
- </Button>
+ <Button className="mt-1">Update catalog token</Button>
</DialogTrigger>
<DialogContent aria-describedby={undefined}>
<DialogHeader>
@@ -130,7 +128,7 @@ export const UpdateCatalogTokenDialog = ({ vaultTokenId }: { vaultTokenId?: stri
</FormItemLayout>
</DialogSection>
<DialogFooter>
- <Button variant="default" disabled={isUpdating} onClick={() => setOpen(false)}>
+ <Button disabled={isUpdating} onClick={() => setOpen(false)}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/UpdateForeignSchemaDialog.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/UpdateForeignSchemaDialog.tsx
index d2f603c40a7..01ec6c74afd 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/UpdateForeignSchemaDialog.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/UpdateForeignSchemaDialog.tsx
@@ -91,7 +91,7 @@ export const UpdateForeignSchemaDialog = ({
return (
<Dialog open={isOpen} onOpenChange={setIsOpen}>
<DialogTrigger asChild>
- <Button variant="default">Update schema tables</Button>
+ <Button>Update schema tables</Button>
</DialogTrigger>
<DialogContent size="medium" aria-describedby={undefined}>
<Form {...form}>
@@ -155,7 +155,7 @@ export const UpdateForeignSchemaDialog = ({
<DialogFooter className="justify-between!">
<DocsButton href={`${DOCS_URL}/guides/storage/analytics/query-with-postgres`} />
<div className="flex items-center gap-x-2">
- <Button variant="default" disabled={isUpdating} onClick={() => setIsOpen(false)}>
+ <Button disabled={isUpdating} onClick={() => setIsOpen(false)}>
Cancel
</Button>
<Button type="submit" variant="primary" loading={isUpdating}>
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketForm.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketForm.tsx
index 50c33cab86b..d91afa2dbf4 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketForm.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketForm.tsx
@@ -256,7 +256,7 @@ export const CreateAnalyticsBucketForm = ({
</Section>
<Footer>
- <Button variant="default" disabled={isCreating} onClick={() => onOpenChange(false)}>
+ <Button disabled={isCreating} onClick={() => onOpenChange(false)}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Storage/BucketsPickerDialog/BucketsPicker.tsx b/apps/studio/components/interfaces/Storage/BucketsPickerDialog/BucketsPicker.tsx
index 595cb64317e..93e3e0240fe 100644
--- a/apps/studio/components/interfaces/Storage/BucketsPickerDialog/BucketsPicker.tsx
+++ b/apps/studio/components/interfaces/Storage/BucketsPickerDialog/BucketsPicker.tsx
@@ -118,7 +118,7 @@ export const BucketsPicker = ({
/>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" icon={<ArrowDownNarrowWide />}>
+ <Button icon={<ArrowDownNarrowWide />}>
Sorted by {sortBucket === 'alphabetical' ? 'name' : 'created at'}
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Storage/CreateBucketModal.tsx b/apps/studio/components/interfaces/Storage/CreateBucketModal.tsx
index 19632128c74..fd16c6897fc 100644
--- a/apps/studio/components/interfaces/Storage/CreateBucketModal.tsx
+++ b/apps/studio/components/interfaces/Storage/CreateBucketModal.tsx
@@ -372,7 +372,7 @@ export const CreateBucketModal = ({ open, onOpenChange }: CreateBucketModalProps
</Form>
<DialogFooter>
- <Button variant="default" disabled={isCreatingBucket} onClick={() => onOpenChange(false)}>
+ <Button disabled={isCreatingBucket} onClick={() => onOpenChange(false)}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Storage/EditBucketModal.tsx b/apps/studio/components/interfaces/Storage/EditBucketModal.tsx
index dfd21ed7fcd..1a62501d678 100644
--- a/apps/studio/components/interfaces/Storage/EditBucketModal.tsx
+++ b/apps/studio/components/interfaces/Storage/EditBucketModal.tsx
@@ -410,7 +410,7 @@ export const EditBucketModal = ({ visible, bucket, onClose }: EditBucketModalPro
</Form>
<DialogFooter>
- <Button variant="default" disabled={isUpdating} onClick={closeModal}>
+ <Button disabled={isUpdating} onClick={closeModal}>
Cancel
</Button>
<Button variant="primary" form={formId} type="submit" loading={isUpdating}>
diff --git a/apps/studio/components/interfaces/Storage/EmptyBucketModal.tsx b/apps/studio/components/interfaces/Storage/EmptyBucketModal.tsx
index 15d5646f10b..4a9b669c43c 100644
--- a/apps/studio/components/interfaces/Storage/EmptyBucketModal.tsx
+++ b/apps/studio/components/interfaces/Storage/EmptyBucketModal.tsx
@@ -70,7 +70,7 @@ export const EmptyBucketModal = ({ visible, bucket, onClose }: EmptyBucketModalP
</p>
</DialogSection>
<DialogFooter>
- <Button variant="default" disabled={isPending} onClick={onClose}>
+ <Button disabled={isPending} onClick={onClose}>
Cancel
</Button>
<Button variant="danger" loading={isPending} onClick={onEmptyBucket}>
diff --git a/apps/studio/components/interfaces/Storage/FilesBuckets/index.tsx b/apps/studio/components/interfaces/Storage/FilesBuckets/index.tsx
index da0f7aea3a5..47581b71093 100644
--- a/apps/studio/components/interfaces/Storage/FilesBuckets/index.tsx
+++ b/apps/studio/components/interfaces/Storage/FilesBuckets/index.tsx
@@ -144,7 +144,7 @@ export const FilesBuckets = () => {
</ShortcutTooltip>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" icon={<ArrowDownNarrowWide />}>
+ <Button icon={<ArrowDownNarrowWide />}>
Sorted by {sortBucket === 'alphabetical' ? 'name' : 'created at'}
</Button>
</DropdownMenuTrigger>
@@ -167,7 +167,6 @@ export const FilesBuckets = () => {
side="bottom"
>
<Button
- variant="default"
icon={<RefreshCw />}
loading={isFetchingBuckets}
onClick={handleRefresh}
diff --git a/apps/studio/components/interfaces/Storage/ImportForeignSchemaDialog.tsx b/apps/studio/components/interfaces/Storage/ImportForeignSchemaDialog.tsx
index bce965cd7ed..2613ee0ea92 100644
--- a/apps/studio/components/interfaces/Storage/ImportForeignSchemaDialog.tsx
+++ b/apps/studio/components/interfaces/Storage/ImportForeignSchemaDialog.tsx
@@ -202,7 +202,7 @@ export const ImportForeignSchemaDialog = ({
/>
</DialogSection>
<DialogFooter className="flex items-center space-x-2 justify-end">
- <Button variant="default" type="button" disabled={loading} onClick={onClose}>
+ <Button type="button" disabled={loading} onClick={onClose}>
Cancel
</Button>
<Button variant="primary" type="submit" loading={loading}>
diff --git a/apps/studio/components/interfaces/Storage/PublicBucketWarning.tsx b/apps/studio/components/interfaces/Storage/PublicBucketWarning.tsx
index 1626a35fd76..5fe35234b90 100644
--- a/apps/studio/components/interfaces/Storage/PublicBucketWarning.tsx
+++ b/apps/studio/components/interfaces/Storage/PublicBucketWarning.tsx
@@ -174,7 +174,7 @@ function PublicBucketWarningView(props: PublicBucketWarningViewProps): ReactNode
}
actions={
<div className="flex gap-2">
- <Button variant="default" size="tiny" onClick={onDismiss}>
+ <Button size="tiny" onClick={onDismiss}>
Dismiss
</Button>
<Button variant="warning" size="tiny" onClick={onShowModal}>
diff --git a/apps/studio/components/interfaces/Storage/StorageBucketsError.tsx b/apps/studio/components/interfaces/Storage/StorageBucketsError.tsx
index 4af7100ec2e..f8eb9b41c74 100644
--- a/apps/studio/components/interfaces/Storage/StorageBucketsError.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageBucketsError.tsx
@@ -29,7 +29,7 @@ const StorageBucketsError = ({ error }: StorageBucketsErrorProps) => {
</>
}
actions={
- <Button key="contact-support" asChild variant="default" className="ml-4">
+ <Button key="contact-support" asChild className="ml-4">
<SupportLink
queryParams={{
projectRef: ref,
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/CustomExpiryModal.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/CustomExpiryModal.tsx
index 523eb7c4830..9945d424ca3 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/CustomExpiryModal.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/CustomExpiryModal.tsx
@@ -147,9 +147,7 @@ export const CustomExpiryModal = () => {
)}
</DialogSection>
<DialogFooter>
- <Button variant="default" onClick={handleClose}>
- Cancel
- </Button>
+ <Button onClick={handleClose}>Cancel</Button>
<Button
form={formId}
disabled={!isDirty || isSubmitting}
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx
index f7d1780024d..a24aa30095c 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx
@@ -118,9 +118,7 @@ const NavigateDialog = ({
</FieldDescription>
</DialogSection>
<DialogFooter>
- <Button variant="default" onClick={onCancel}>
- Cancel
- </Button>
+ <Button onClick={onCancel}>Cancel</Button>
<Button variant="primary" onClick={onSubmit}>
Navigate
</Button>
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeaderSelection.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeaderSelection.tsx
index d715fcaa178..6f985065298 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeaderSelection.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeaderSelection.tsx
@@ -32,7 +32,6 @@ export const FileExplorerHeaderSelection = () => {
<div className="ml-auto flex items-center gap-1">
<ShortcutTooltip shortcutId={SHORTCUT_IDS.STORAGE_EXPLORER_DOWNLOAD_SELECTED} side="bottom">
<Button
- variant="default"
size="tiny"
icon={<Download size={12} />}
onClick={async () => {
@@ -53,7 +52,6 @@ export const FileExplorerHeaderSelection = () => {
open={!canUpdateFiles ? false : undefined}
>
<ButtonTooltip
- variant="default"
size="tiny"
icon={<Trash2 size={12} />}
disabled={!canUpdateFiles}
@@ -77,7 +75,6 @@ export const FileExplorerHeaderSelection = () => {
open={!canUpdateFiles ? false : undefined}
>
<ButtonTooltip
- variant="default"
size="tiny"
icon={<Move size={12} />}
disabled={!canUpdateFiles}
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsModal.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsModal.tsx
index ba3f84a69db..b634cb18f91 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsModal.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsModal.tsx
@@ -89,9 +89,7 @@ export const MoveItemsModal = ({
</form>
</DialogSection>
<DialogFooter>
- <Button variant="default" onClick={onSelectCancel}>
- Cancel
- </Button>
+ <Button onClick={onSelectCancel}>Cancel</Button>
<Button variant="primary" loading={moving} onClick={onConfirmMove}>
{moving ? 'Moving files' : 'Move files'}
</Button>
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewPane.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewPane.tsx
index 169ac370453..acab8371de5 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewPane.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewPane.tsx
@@ -187,7 +187,6 @@ export const PreviewPane = () => {
{/* Actions */}
<div className="flex space-x-2 border-b border-overlay pb-4">
<Button
- variant="default"
icon={<Download />}
disabled={file.isCorrupted}
onClick={() => downloadFile(file)}
diff --git a/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditor/PolicyEditorFooter.tsx b/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditor/PolicyEditorFooter.tsx
index dd9f848b7cb..5fab4c35978 100644
--- a/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditor/PolicyEditorFooter.tsx
+++ b/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditor/PolicyEditorFooter.tsx
@@ -13,11 +13,7 @@ const PolicyEditorFooter = ({
onReviewPolicy = noop,
}: PolicyEditorFooterProps) => (
<DialogFooter>
- {showTemplates && (
- <Button variant="default" onClick={onViewTemplates}>
- View templates
- </Button>
- )}
+ {showTemplates && <Button onClick={onViewTemplates}>View templates</Button>}
<Button variant="primary" onClick={onReviewPolicy}>
Review
</Button>
diff --git a/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditorModal/PolicyEditorModalTitle.tsx b/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditorModal/PolicyEditorModalTitle.tsx
index 044a4acaffd..4bca40f1706 100644
--- a/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditorModal/PolicyEditorModalTitle.tsx
+++ b/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditorModal/PolicyEditorModalTitle.tsx
@@ -56,7 +56,7 @@ export const PolicyEditorModalTitle = ({
</h4>
<div className="flex items-center gap-x-2 pr-6">
{showAssistantPreview && view === POLICY_MODAL_VIEWS.EDITOR && (
- <Button variant="default" icon={<FlaskConical />} onClick={onToggleFeaturePreviewModal}>
+ <Button icon={<FlaskConical />} onClick={onToggleFeaturePreviewModal}>
Try Supabase Assistant
</Button>
)}
diff --git a/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyReview.tsx b/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyReview.tsx
index a22c7c18ab2..4b9915d0d6c 100644
--- a/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyReview.tsx
+++ b/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyReview.tsx
@@ -59,9 +59,7 @@ export const PolicyReview = ({
</div>
</DialogSection>
<DialogFooter>
- <Button variant="default" onClick={onSelectBack}>
- Back to edit
- </Button>
+ <Button onClick={onSelectBack}>Back to edit</Button>
<Button
variant="primary"
disabled={isEmpty(policy)}
diff --git a/apps/studio/components/interfaces/Storage/StoragePolicies/PolicySelection.tsx b/apps/studio/components/interfaces/Storage/StoragePolicies/PolicySelection.tsx
index 06dc7a89ade..70bb07db414 100644
--- a/apps/studio/components/interfaces/Storage/StoragePolicies/PolicySelection.tsx
+++ b/apps/studio/components/interfaces/Storage/StoragePolicies/PolicySelection.tsx
@@ -71,10 +71,8 @@ export const PolicySelection = ({
Create RLS policies for your tables with the help of AI
</AlertDescription>
<div className="flex items-center gap-x-2 mt-3">
- <Button variant="default" onClick={onToggleFeaturePreviewModal}>
- Toggle feature preview
- </Button>
- <Button asChild variant="default" icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button onClick={onToggleFeaturePreviewModal}>Toggle feature preview</Button>
+ <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
<a
href="https://supabase.com/blog/studio-introducing-assistant#introducing-the-supabase-assistant"
target="_blank"
diff --git a/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesEditor.tsx b/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesEditor.tsx
index 981c35abacd..cd48b4159f5 100644
--- a/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesEditor.tsx
+++ b/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesEditor.tsx
@@ -138,9 +138,7 @@ const PolicyAllowedOperations = ({ allowedOperations = [], onToggleOperation = (
const PolicyEditorFooter = ({ onViewTemplates = () => {}, onReviewPolicy = () => {} }) => (
<div className="flex w-full items-center justify-end gap-x-2 border-t px-6 py-3 border-default">
- <Button variant="default" onClick={onViewTemplates}>
- View templates
- </Button>
+ <Button onClick={onViewTemplates}>View templates</Button>
<Button variant="primary" onClick={onReviewPolicy}>
Review
</Button>
diff --git a/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesReview.tsx b/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesReview.tsx
index d4b687a3c5b..b1ab18a59f4 100644
--- a/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesReview.tsx
+++ b/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesReview.tsx
@@ -62,9 +62,7 @@ export const StoragePoliciesReview = ({
</DialogSection>
<DialogSectionSeparator />
<DialogFooter>
- <Button variant="default" onClick={onSelectBack}>
- Back to edit
- </Button>
+ <Button onClick={onSelectBack}>Back to edit</Button>
{policyStatements.length > 0 && (
<Button variant="primary" onClick={onSavePolicy} loading={isSaving}>
Save policy
diff --git a/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx b/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx
index 39c81b40112..e0a9ff4e8ec 100644
--- a/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx
@@ -88,7 +88,6 @@ export const CreateCredentialModal = ({ visible, onOpenChange }: CreateCredentia
<TooltipTrigger asChild>
<DialogTrigger asChild>
<Button
- variant="default"
icon={<Plus size={14} />}
disabled={disableCreation}
className="pointer-events-auto"
diff --git a/apps/studio/components/interfaces/Storage/StorageSettings/S3Connection.tsx b/apps/studio/components/interfaces/Storage/StorageSettings/S3Connection.tsx
index 725327e2301..f7714886e92 100644
--- a/apps/studio/components/interfaces/Storage/StorageSettings/S3Connection.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageSettings/S3Connection.tsx
@@ -220,7 +220,6 @@ export const S3Connection = () => {
<CardFooter className="justify-end space-x-2">
{form.formState.isDirty && (
<Button
- variant="default"
type="reset"
onClick={() => form.reset()}
disabled={
@@ -250,7 +249,7 @@ export const S3Connection = () => {
To connect to your S3 bucket, you need to restore your project.
</AlertDescription>
<div className="mt-3 flex items-center space-x-2">
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${projectRef}`}>Restore project</Link>
</Button>
</div>
@@ -287,7 +286,7 @@ export const S3Connection = () => {
To fetch your S3 access keys, you need to restore your project.
</AlertDescription>
<AlertDescription>
- <Button asChild variant="default" className="mt-3">
+ <Button asChild className="mt-3">
<Link href={`/project/${projectRef}`}>Restore project</Link>
</Button>
</AlertDescription>
diff --git a/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.tsx b/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.tsx
index 03143378f10..4f361ba954e 100644
--- a/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.tsx
@@ -424,7 +424,6 @@ export const StorageSettings = () => {
<CardFooter className="justify-end space-x-2">
{form.formState.isDirty && (
<Button
- variant="default"
type="reset"
onClick={() => form.reset()}
disabled={
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorBucketDialog.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorBucketDialog.tsx
index 071165359de..2330604edae 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorBucketDialog.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorBucketDialog.tsx
@@ -220,7 +220,7 @@ export const CreateVectorBucketDialog = ({
</Form>
<DialogFooter>
- <Button variant="default" disabled={isLoading} onClick={() => setVisible(false)}>
+ <Button disabled={isLoading} onClick={() => setVisible(false)}>
Cancel
</Button>
<Button variant="primary" form={formId} type="submit" loading={isLoading}>
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorTableSheet.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorTableSheet.tsx
index 71ebc952cdf..ddb0ff64927 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorTableSheet.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorTableSheet.tsx
@@ -383,7 +383,7 @@ export const CreateVectorTableSheet = ({ bucketName }: CreateVectorTableSheetPro
))}
</div>
<div className="flex items-center justify-center rounded-sm border border-strong border-dashed py-3">
- <Button variant="default" size="tiny" onClick={() => append({ value: '' })}>
+ <Button size="tiny" onClick={() => append({ value: '' })}>
Add metadata key
</Button>
</div>
@@ -392,7 +392,7 @@ export const CreateVectorTableSheet = ({ bucketName }: CreateVectorTableSheetPro
</Form>
<SheetFooter>
- <Button variant="default" disabled={isCreating} onClick={() => setVisible(false)}>
+ <Button disabled={isCreating} onClick={() => setVisible(false)}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/InitializeForeignSchemaDialog.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/InitializeForeignSchemaDialog.tsx
index a4531aee9cb..22d360d46d6 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/InitializeForeignSchemaDialog.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/InitializeForeignSchemaDialog.tsx
@@ -140,7 +140,7 @@ export const InitializeForeignSchemaDialog = () => {
return (
<Dialog open={isOpen} onOpenChange={setIsOpen}>
<DialogTrigger asChild>
- <Button variant="default">Query from Postgres</Button>
+ <Button>Query from Postgres</Button>
</DialogTrigger>
<DialogContent size="medium" aria-describedby={undefined}>
<Form {...form}>
@@ -168,7 +168,7 @@ export const InitializeForeignSchemaDialog = () => {
<DialogFooter className="justify-between!">
<DocsButton href={`${DOCS_URL}/guides/storage/vector/querying-vectors`} />
<div className="flex items-center gap-x-2">
- <Button variant="default" disabled={isCreating} onClick={() => setIsOpen(false)}>
+ <Button disabled={isCreating} onClick={() => setIsOpen(false)}>
Cancel
</Button>
<Button type="submit" variant="primary" loading={isCreating}>
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketCallouts.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketCallouts.tsx
index acadd747eec..17a3946c607 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketCallouts.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketCallouts.tsx
@@ -37,7 +37,7 @@ export const ExtensionNotInstalled = ({
Learn more
</InlineLink>
</p>
- <Button variant="default" asChild className="mt-2">
+ <Button asChild className="mt-2">
<Link
href={
databaseNeedsUpgrading
@@ -81,7 +81,7 @@ export const ExtensionNeedsUpgrade = ({
Before reinstalling the wrapper extension, you must first remove all existing wrappers.
Afterward, you can recreate the wrappers.
</p>
- <Button asChild variant="default">
+ <Button asChild>
<Link
href={
databaseNeedsUpgrading
@@ -116,7 +116,7 @@ export const WrapperMissing = ({ bucketName }: { bucketName?: string }) => {
<ScaffoldSection isFullWidth>
<Admonition type="warning" title="Missing integration">
<p>The S3 Vectors Wrapper integration is required in order to query vector tables.</p>
- <Button variant="default" loading={isCreatingS3VectorsWrapper} onClick={onSetupWrapper}>
+ <Button loading={isCreatingS3VectorsWrapper} onClick={onSetupWrapper}>
Install wrapper
</Button>
</Admonition>
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketTableExamplesSheet.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketTableExamplesSheet.tsx
index 171d331a4c7..a748789c3ae 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketTableExamplesSheet.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketTableExamplesSheet.tsx
@@ -58,7 +58,7 @@ export const VectorBucketTableExamplesSheet = ({ index }: VectorBucketTableExamp
<Sheet open={open} onOpenChange={setOpen}>
{/* Move into overflow menu after vectors added */}
<SheetTrigger asChild>
- <Button variant="default" icon={<ListPlus size={12} className="text-foreground-lighter" />}>
+ <Button icon={<ListPlus size={12} className="text-foreground-lighter" />}>
Insert vectors
</Button>
</SheetTrigger>
@@ -219,7 +219,6 @@ const result = await index.putVectors({
Language
</span>
<Button
- variant="default"
iconRight={<ChevronDown size={14} strokeWidth={2} />}
className="rounded-l-none"
>
@@ -268,11 +267,7 @@ const result = await index.putVectors({
type="default"
title="Insert data via SQL with a Foreign Data Wrapper"
description="Data from vector tables can be queried and inserted from Postgres with the S3 Vectors Wrapper as foreign tables."
- actions={
- <Button variant="default" onClick={onSelectQueryFromPostgres}>
- Query from Postgres
- </Button>
- }
+ actions={<Button onClick={onSelectQueryFromPostgres}>Query from Postgres</Button>}
/>
) : (
<>
@@ -284,11 +279,7 @@ const result = await index.putVectors({
value={sqlCode}
/>
<div className="flex justify-end">
- <Button
- variant="default"
- asChild
- icon={<SqlEditor size={12} className="text-foreground-lighter" />}
- >
+ <Button asChild icon={<SqlEditor size={12} className="text-foreground-lighter" />}>
<Link
target="_blank"
rel="noreferrer"
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/index.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/index.tsx
index 20d6811b4b9..0bf237907eb 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/index.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/index.tsx
@@ -225,7 +225,6 @@ export const VectorBucketDetails = () => {
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
className="w-7"
icon={<MoreVertical />}
onClick={(e) => e.stopPropagation()}
diff --git a/apps/studio/components/interfaces/Support/AIAssistantOption.tsx b/apps/studio/components/interfaces/Support/AIAssistantOption.tsx
index 573a8a0e3ba..1357c2268fd 100644
--- a/apps/studio/components/interfaces/Support/AIAssistantOption.tsx
+++ b/apps/studio/components/interfaces/Support/AIAssistantOption.tsx
@@ -64,7 +64,6 @@ export const AIAssistantOption = ({
{onClick ? (
<Button
size="tiny"
- variant="default"
icon={<AiIconAnimation size={14} />}
onClick={onAiAssistantClicked}
>
@@ -72,7 +71,7 @@ export const AIAssistantOption = ({
</Button>
) : (
<Link href={aiLink} onClick={onAiAssistantClicked}>
- <Button size="tiny" variant="default" icon={<AiIconAnimation size={14} />}>
+ <Button size="tiny" icon={<AiIconAnimation size={14} />}>
Ask the Assistant
</Button>
</Link>
diff --git a/apps/studio/components/interfaces/Support/ClientLibraryInfo.tsx b/apps/studio/components/interfaces/Support/ClientLibraryInfo.tsx
index e60259a8f7f..f006b8eafdc 100644
--- a/apps/studio/components/interfaces/Support/ClientLibraryInfo.tsx
+++ b/apps/studio/components/interfaces/Support/ClientLibraryInfo.tsx
@@ -100,11 +100,7 @@ const LibrarySuggestions = ({ library }: LibrarySuggestionsProps) => {
</p>
</div>
<div>
- <Button
- asChild
- variant="default"
- icon={<ExternalLink size={14} strokeWidth={1.5} />}
- >
+ <Button asChild icon={<ExternalLink size={14} strokeWidth={1.5} />}>
<Link href={lib.url} target="_blank" rel="noreferrer">
View GitHub issues
</Link>
@@ -124,7 +120,7 @@ const LibrarySuggestions = ({ library }: LibrarySuggestionsProps) => {
<p className="text-sm text-foreground-light">For any issues about our API</p>
</div>
<div>
- <Button asChild variant="default" icon={<ExternalLink size={14} strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLink size={14} strokeWidth={1.5} />}>
<Link href="https://github.com/supabase/supabase" target="_blank" rel="noreferrer">
View GitHub issues
</Link>
diff --git a/apps/studio/components/interfaces/Support/IPV4SuggestionAlert.tsx b/apps/studio/components/interfaces/Support/IPV4SuggestionAlert.tsx
index 3926d620596..7b660f24159 100644
--- a/apps/studio/components/interfaces/Support/IPV4SuggestionAlert.tsx
+++ b/apps/studio/components/interfaces/Support/IPV4SuggestionAlert.tsx
@@ -17,7 +17,7 @@ export const IPV4SuggestionAlert = () => {
questions.
</p>
<p>
- <Button asChild variant="default" icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
<Link
target="_blank"
rel="noreferrer"
diff --git a/apps/studio/components/interfaces/Support/IncidentAdmonition.tsx b/apps/studio/components/interfaces/Support/IncidentAdmonition.tsx
index 4680a9ea453..d9db2eb7389 100644
--- a/apps/studio/components/interfaces/Support/IncidentAdmonition.tsx
+++ b/apps/studio/components/interfaces/Support/IncidentAdmonition.tsx
@@ -88,7 +88,7 @@ export function IncidentAdmonition({ isActive, className }: IncidentAdmonitionPr
title={statusTitle}
description={getStatusDescription(overallStatus, hasMultipleIncidents, allSameStatus)}
actions={
- <Button asChild variant="default" icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
<Link href="https://status.supabase.com/" target="_blank" rel="noreferrer">
Status page
</Link>
diff --git a/apps/studio/components/interfaces/Support/LinkSupportTicketPage.tsx b/apps/studio/components/interfaces/Support/LinkSupportTicketPage.tsx
index 014111b314b..8e8e7b76119 100644
--- a/apps/studio/components/interfaces/Support/LinkSupportTicketPage.tsx
+++ b/apps/studio/components/interfaces/Support/LinkSupportTicketPage.tsx
@@ -72,7 +72,7 @@ function LinkSupportTicketSuccess() {
</div>
<DialogSectionSeparator />
<div className="w-full py-4 px-4 flex items-center justify-end">
- <Button asChild variant="default">
+ <Button asChild>
<Link href="/">Finish</Link>
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx b/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
index 2796dbdb965..f38379ae4f1 100644
--- a/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
+++ b/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
@@ -83,7 +83,6 @@ function ProjectSelector({ form, orgSlug, projectRef }: ProjectSelectorProps) {
return (
<Button
block
- variant="default"
role="combobox"
aria-label="Select a project"
aria-expanded={open}
@@ -206,7 +205,7 @@ export const PlanExpectationInfoContent = ({
Upgrade plan
</Link>
</Button>
- <Button asChild variant="default" size="tiny" icon={<ExternalLink />}>
+ <Button asChild size="tiny" icon={<ExternalLink />}>
<Link href="https://supabase.com/contact/enterprise" target="_blank" rel="noreferrer">
Enquire about Enterprise
</Link>
diff --git a/apps/studio/components/interfaces/Support/Success.tsx b/apps/studio/components/interfaces/Support/Success.tsx
index 3ac45a837e7..4aea0fcd83e 100644
--- a/apps/studio/components/interfaces/Support/Success.tsx
+++ b/apps/studio/components/interfaces/Support/Success.tsx
@@ -32,11 +32,9 @@ export const Success = ({
const finishAction = showFinishAction ? (
onFinish ? (
- <Button variant="default" onClick={onFinish}>
- {finishLabel}
- </Button>
+ <Button onClick={onFinish}>{finishLabel}</Button>
) : (
- <Button asChild variant="default">
+ <Button asChild>
<Link href="/">{finishLabel}</Link>
</Button>
)
@@ -62,11 +60,7 @@ export const Success = ({
<div className="flex flex-wrap items-center justify-center gap-3">
{finishAction}
- <Button
- asChild
- variant="default"
- icon={<IconDiscord size={16} fill="var(--background-default)" />}
- >
+ <Button asChild icon={<IconDiscord size={16} fill="var(--background-default)" />}>
<Link href="https://discord.supabase.com/" target="_blank">
Join Discord
</Link>
diff --git a/apps/studio/components/interfaces/Support/SupportFormPage.tsx b/apps/studio/components/interfaces/Support/SupportFormPage.tsx
index 3962d3fbf35..a9979fa2c8e 100644
--- a/apps/studio/components/interfaces/Support/SupportFormPage.tsx
+++ b/apps/studio/components/interfaces/Support/SupportFormPage.tsx
@@ -139,7 +139,7 @@ function SupportFormHeader() {
</div>
<div className="flex items-center gap-x-3">
- <Button asChild variant="default" icon={<Wrench />}>
+ <Button asChild icon={<Wrench />}>
<Link
href={`${DOCS_URL}/guides/troubleshooting?products=platform`}
target="_blank"
@@ -152,7 +152,6 @@ function SupportFormHeader() {
<TooltipTrigger asChild>
<Button
asChild
- variant="default"
icon={
isLoading ? (
<Loader2 className="animate-spin" />
diff --git a/apps/studio/components/interfaces/Support/SupportSidebarForm.tsx b/apps/studio/components/interfaces/Support/SupportSidebarForm.tsx
index d37ec388a51..48814a0b585 100644
--- a/apps/studio/components/interfaces/Support/SupportSidebarForm.tsx
+++ b/apps/studio/components/interfaces/Support/SupportSidebarForm.tsx
@@ -132,7 +132,6 @@ export function SupportFormStatusButton() {
<TooltipTrigger asChild>
<Button
asChild
- variant="default"
size="tiny"
icon={
isLoading ? (
diff --git a/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx b/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx
index 8f437a013d4..44cfa01cce2 100644
--- a/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx
@@ -303,7 +303,7 @@ const DeleteConfirmationDialogs = ({
recursively.
</AlertTitle>
<AlertDescription>
- <Button asChild size="tiny" variant="default" icon={<ExternalLink />}>
+ <Button asChild size="tiny" icon={<ExternalLink />}>
<Link
href="https://www.postgresql.org/docs/current/ddl-depend.html"
target="_blank"
@@ -364,7 +364,7 @@ const DeleteConfirmationDialogs = ({
recursively.
</AlertDescription>
<AlertDescription className="mt-4">
- <Button asChild size="tiny" variant="default" icon={<ExternalLink />}>
+ <Button asChild size="tiny" icon={<ExternalLink />}>
<Link
href="https://www.postgresql.org/docs/current/ddl-depend.html"
target="_blank"
@@ -497,7 +497,7 @@ const DropEntityConfirmationModal = ({
recursively.
</AlertDescription>
<AlertDescription className="mt-4">
- <Button asChild size="tiny" variant="default" icon={<ExternalLink />}>
+ <Button asChild size="tiny" icon={<ExternalLink />}>
<Link
href="https://www.postgresql.org/docs/current/ddl-depend.html"
target="_blank"
diff --git a/apps/studio/components/interfaces/TableGridEditor/ExposedMaterializedViewDialog.tsx b/apps/studio/components/interfaces/TableGridEditor/ExposedMaterializedViewDialog.tsx
index 5971e1f37a5..1bb059875fd 100644
--- a/apps/studio/components/interfaces/TableGridEditor/ExposedMaterializedViewDialog.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/ExposedMaterializedViewDialog.tsx
@@ -72,7 +72,7 @@ $$;`}
<DialogFooter>
<div className="flex items-center justify-end space-x-2">
- <Button variant="default" onClick={() => setIsExposedMaterializedViewDialogOpen(false)}>
+ <Button onClick={() => setIsExposedMaterializedViewDialogOpen(false)}>
Understood
</Button>
</div>
diff --git a/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx b/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
index 03662e9e1a1..678403d35d7 100644
--- a/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
@@ -209,7 +209,6 @@ export const GridHeaderActions = ({ table, isRefetching }: GridHeaderActionsProp
{policies.length < 1 && !isSchemaLocked ? (
<ButtonTooltip
asChild
- variant="default"
className="group"
icon={<PlusCircle strokeWidth={1.5} className="text-foreground-muted" />}
tooltip={{
@@ -275,7 +274,6 @@ export const GridHeaderActions = ({ table, isRefetching }: GridHeaderActionsProp
</p>
{!isSchemaLocked && (
<Button
- variant="default"
className="mt-2 w-min"
onClick={() => setRlsConfirmModalOpen(!rlsConfirmModalOpen)}
>
@@ -329,7 +327,7 @@ export const GridHeaderActions = ({ table, isRefetching }: GridHeaderActionsProp
}
/>
- <Button variant="default" asChild>
+ <Button asChild>
<Link
target="_blank"
href={`/project/${ref}/advisors/security?preset=${matchingMaterializedViewLint?.level}&id=${matchingMaterializedViewLint?.cache_key}`}
@@ -362,7 +360,7 @@ export const GridHeaderActions = ({ table, isRefetching }: GridHeaderActionsProp
</p>
<div className="mt-2">
- <Button variant="default" asChild>
+ <Button asChild>
<Link
target="_blank"
href={`${DOCS_URL}/guides/database/extensions/wrappers/overview#security`}
@@ -383,7 +381,6 @@ export const GridHeaderActions = ({ table, isRefetching }: GridHeaderActionsProp
<TooltipTrigger asChild>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
icon={<MoreVertical />}
className="h-7 w-7"
aria-label={`More options for ${table.name}`}
diff --git a/apps/studio/components/interfaces/TableGridEditor/RealtimeToggleDialog.tsx b/apps/studio/components/interfaces/TableGridEditor/RealtimeToggleDialog.tsx
index 38498990336..1fddb71634e 100644
--- a/apps/studio/components/interfaces/TableGridEditor/RealtimeToggleDialog.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/RealtimeToggleDialog.tsx
@@ -108,7 +108,7 @@ export const RealtimeToggleDialog = ({
</div>
</DialogSection>
<DialogFooter>
- <Button variant="default" disabled={isTogglingRealtime} onClick={() => setOpen(false)}>
+ <Button disabled={isTogglingRealtime} onClick={() => setOpen(false)}>
Cancel
</Button>
<Button variant="primary" loading={isTogglingRealtime} onClick={toggleRealtime}>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SecurityDefinerViewPopover.tsx b/apps/studio/components/interfaces/TableGridEditor/SecurityDefinerViewPopover.tsx
index d995779512b..557a4eb39a8 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SecurityDefinerViewPopover.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SecurityDefinerViewPopover.tsx
@@ -39,7 +39,7 @@ export const SecurityDefinerViewPopover = ({
Autofix
</Button>
)}
- <Button variant="default" asChild>
+ <Button asChild>
<Link
target="_blank"
rel="noopener noreferrer"
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx
index 0e3911a56e4..4ebc5593842 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ActionBar.tsx
@@ -58,12 +58,7 @@ export const ActionBar = ({
{children}
<div className="flex items-center gap-3 ml-auto">
- <Button
- variant="default"
- type="button"
- onClick={closePanel}
- disabled={isRunning || loading}
- >
+ <Button type="button" onClick={closePanel} disabled={isRunning || loading}>
{backButtonLabel}
</Button>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
index e3a8977fcfe..fe019b312f3 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
@@ -300,7 +300,7 @@ export const ColumnEditor = ({
className="lg:col-span-4!"
description={
<div className="space-y-2">
- <Button asChild variant="default" icon={<Plus />}>
+ <Button asChild icon={<Plus />}>
<Link
target="_blank"
rel="noreferrer"
@@ -309,7 +309,7 @@ export const ColumnEditor = ({
Create enum types
</Link>
</Button>
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<Link
target="_blank"
rel="noreferrer"
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx
index c0f21899ff2..dd2ad75fa57 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx
@@ -119,7 +119,7 @@ const ColumnForeignKey = ({
</div>
)}
- <Button variant="default" className="w-min" onClick={() => setOpen(true)}>
+ <Button className="w-min" onClick={() => setOpen(true)}>
Add foreign key
</Button>
</div>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
index 6047f1f7224..db8a45a3872 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
@@ -314,7 +314,7 @@ const ColumnType = ({
specific use case.
</p>
<div className="flex items-center space-x-2 mt-3">
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<Link href={recommendation.reference} target="_blank" rel="noreferrer">
Read more
</Link>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
index 41a07a75d81..dde428549c2 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
@@ -473,7 +473,6 @@ export const ForeignKeySelector = ({
</div>
<div className="col-span-1 flex justify-end items-center">
<Button
- variant="default"
className="px-1"
icon={<X />}
disabled={fk.columns.length === 1}
@@ -484,9 +483,7 @@ export const ForeignKeySelector = ({
))}
</div>
<div className="space-y-2">
- <Button variant="default" onClick={addColumn}>
- Add another column
- </Button>
+ <Button onClick={addColumn}>Add another column</Button>
{errors.columns && <p className="text-red-900 text-sm">{errors.columns}</p>}
{hasTypeErrors && (
<Alert variant="warning">
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/OperationQueueSidePanel.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/OperationQueueSidePanel.tsx
index c9ea968a0c6..3b460bf2bbb 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/OperationQueueSidePanel.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/OperationQueueSidePanel.tsx
@@ -53,18 +53,13 @@ export const OperationQueueSidePanel = () => {
<SheetFooter className="justify-between!">
<Button
- variant="default"
onClick={snap.closeSidePanel}
iconRight={<KeyboardShortcut keys={['Meta', '.']} variant="inline" />}
>
Close
</Button>
<div className="flex space-x-3">
- <Button
- variant="default"
- onClick={confirmOnClose}
- disabled={isSaving || operations.length === 0}
- >
+ <Button onClick={confirmOnClose} disabled={isSaving || operations.length === 0}>
Discard
</Button>
<Button
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
index a91f061177f..b7c4836a2be 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
@@ -238,7 +238,6 @@ export const ForeignRowSelector = ({
{isNullable && (
<div className="pl-3">
<Button
- variant="default"
onClick={() => {
if (columns?.length === 1) onSelect({ [columns[0].source]: null })
}}
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/index.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/index.tsx
index 4ef81bdee9e..cb3728358c4 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/index.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/index.tsx
@@ -163,7 +163,6 @@ export const JsonEditor = ({
<div className="flex items-center gap-x-2">
{view === 'edit' && (
<ButtonTooltip
- variant="default"
icon={<AlignLeft />}
className="px-1"
onClick={() => prettify()}
@@ -222,7 +221,7 @@ export const JsonEditor = ({
performance issues
</p>
</div>
- <Button variant="default" loading={isPending} onClick={loadFullValue}>
+ <Button loading={isPending} onClick={loadFullValue}>
Load full JSON data
</Button>
</div>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/TextEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/TextEditor.tsx
index e1e8de2c8c5..f99fe19e0be 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/TextEditor.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/TextEditor.tsx
@@ -183,7 +183,7 @@ export const TextEditor = ({
performance issues
</p>
</div>
- <Button variant="default" loading={isPending} onClick={loadFullValue}>
+ <Button loading={isPending} onClick={loadFullValue}>
Load full text data
</Button>
</div>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SchemaEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SchemaEditor.tsx
index 6f01b870940..73694482b95 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SchemaEditor.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SchemaEditor.tsx
@@ -97,7 +97,6 @@ export const SchemaEditor = ({ visible, onSuccess, closePanel }: SchemaEditorPro
</DialogSection>
<DialogFooter>
<Button
- variant="default"
onClick={() => {
form.reset()
closePanel()
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.utils.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.utils.tsx
index a083f339de4..5e15239c8e1 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.utils.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.utils.tsx
@@ -272,7 +272,7 @@ export function flagInvalidFileImport(file: File): boolean {
<div className="space-y-1">
<p>The dashboard currently only supports importing of CSVs below 100MB.</p>
<p>For bulk data loading, we recommend doing so directly through the database.</p>
- <Button asChild variant="default" icon={<ExternalLink />} className="mt-2!">
+ <Button asChild icon={<ExternalLink />} className="mt-2!">
<Link
href={`${DOCS_URL}/guides/database/tables#bulk-data-loading`}
target="_blank"
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ApiAccessToggle.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ApiAccessToggle.tsx
index a12c45f9276..dd6203b8921 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ApiAccessToggle.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ApiAccessToggle.tsx
@@ -329,7 +329,7 @@ export const ApiAccessToggle = ({
disabled={isDisabled}
/>
) : (
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<Link
target="_blank"
rel="noopener noreferrer"
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
index cf4b4ee0d79..59de2b572df 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
@@ -212,7 +212,7 @@ export const Column = ({
) : (
<Popover open={open} onOpenChange={setOpen} modal={false}>
<PopoverTrigger asChild>
- <Button variant="default" className="rounded-l-none h-[30px] py-0 px-2">
+ <Button className="rounded-l-none h-[30px] py-0 px-2">
<Link size={12} />
</Button>
</PopoverTrigger>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
index 0354611ea99..6576b692ba0 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
@@ -157,7 +157,7 @@ export const ColumnManagement = ({
<div className="flex items-center justify-between w-full">
<h5>Columns</h5>
<div className="flex items-center gap-x-2">
- <Button asChild variant="default" icon={<ExternalLink size={12} strokeWidth={2} />}>
+ <Button asChild icon={<ExternalLink size={12} strokeWidth={2} />}>
<a
href={`${DOCS_URL}/guides/database/tables#data-types`}
target="_blank"
@@ -171,7 +171,7 @@ export const ColumnManagement = ({
<div className="py-3 border-r" />
{hasImportContent ? (
<div className="flex items-center gap-x-2">
- <Button variant="default" icon={<Edit />} onClick={onSelectImportData}>
+ <Button icon={<Edit />} onClick={onSelectImportData}>
Edit content
</Button>
<Button variant="danger" icon={<Trash />} onClick={onClearImportContent}>
@@ -180,7 +180,6 @@ export const ColumnManagement = ({
</div>
) : (
<Button
- variant="default"
onClick={() => {
onSelectImportData()
track('import_data_button_clicked', { tableType: 'New Table' })
@@ -336,9 +335,7 @@ export const ColumnManagement = ({
{!hasImportContent && (
<div className="flex items-center justify-center rounded-sm border border-strong border-dashed py-3">
- <Button variant="default" onClick={() => onAddColumn()}>
- Add column
- </Button>
+ <Button onClick={() => onAddColumn()}>Add column</Button>
</div>
)}
</div>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx
index 613dd94643b..683c4ab9e37 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx
@@ -60,7 +60,6 @@ export const ForeignKeyRow = ({
</p>
<Button
asChild
- variant="default"
title={`${foreignKey.schema}.${foreignKey.table}`}
className="py-0.5 px-1.5 font-mono"
icon={
@@ -105,17 +104,11 @@ export const ForeignKeyRow = ({
</div>
{!disabled && (
<div className="flex items-center gap-x-2">
- <Button variant="default" onClick={onSelectEdit}>
- Edit
- </Button>
+ <Button onClick={onSelectEdit}>Edit</Button>
{foreignKey.toRemove ? (
- <Button variant="default" onClick={onSelectUndoRemove}>
- Cancel remove
- </Button>
+ <Button onClick={onSelectUndoRemove}>Cancel remove</Button>
) : (
- <Button variant="default" onClick={onSelectRemove}>
- Remove
- </Button>
+ <Button onClick={onSelectRemove}>Remove</Button>
)}
</div>
)}
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeysManagement.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeysManagement.tsx
index 504bae7822a..f3931ebe6c2 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeysManagement.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeysManagement.tsx
@@ -114,9 +114,7 @@ export const ForeignKeysManagement = ({
})}
</div>
<div className="flex items-center justify-center rounded-sm border border-strong border-dashed py-3">
- <Button variant="default" onClick={() => setOpen(true)}>
- Add foreign key relation
- </Button>
+ <Button onClick={() => setOpen(true)}>Add foreign key relation</Button>
</div>
</>
)}
diff --git a/apps/studio/components/interfaces/TableGridEditor/TableDefinition.tsx b/apps/studio/components/interfaces/TableGridEditor/TableDefinition.tsx
index 5044db1a0a2..b7554e4cff1 100644
--- a/apps/studio/components/interfaces/TableGridEditor/TableDefinition.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/TableDefinition.tsx
@@ -66,7 +66,7 @@ export const TableDefinition = ({ entity }: TableDefinitionProps) => {
return (
<>
<div className="grow overflow-y-auto border-t border-muted relative">
- <Button asChild variant="default" className="absolute top-2 right-5 z-10">
+ <Button asChild className="absolute top-2 right-5 z-10">
<Link
href={`/project/${ref}/sql/new?content=${encodeURIComponent(
formattedDefinition ?? ''
diff --git a/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
index 3df3be4c575..d0620dbde74 100644
--- a/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
@@ -130,7 +130,6 @@ export const TableGridEditor = ({
>
{!!tabId ? (
<Button
- variant="default"
className="mt-2"
onClick={() => {
tabs.handleTabClose({
@@ -144,23 +143,13 @@ export const TableGridEditor = ({
Close tab
</Button>
) : openTabs.length > 0 ? (
- <Button
- asChild
- variant="default"
- className="mt-2"
- onClick={() => setLastVisitedTable(undefined)}
- >
+ <Button asChild className="mt-2" onClick={() => setLastVisitedTable(undefined)}>
<Link href={`/project/${projectRef}/editor/${openTabs[0].split('-')[1]}`}>
Close tab
</Link>
</Button>
) : (
- <Button
- asChild
- variant="default"
- className="mt-2"
- onClick={() => setLastVisitedTable(undefined)}
- >
+ <Button asChild className="mt-2" onClick={() => setLastVisitedTable(undefined)}>
<Link href={`/project/${projectRef}/editor`}>Head back</Link>
</Button>
)}
diff --git a/apps/studio/components/interfaces/UnifiedLogs/RowSelectionHeader.tsx b/apps/studio/components/interfaces/UnifiedLogs/RowSelectionHeader.tsx
index eecc53dd4ee..88e4a710b0b 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/RowSelectionHeader.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/RowSelectionHeader.tsx
@@ -85,7 +85,6 @@ export const RowSelectionHeader = () => {
<DropdownMenu>
<DropdownMenuTrigger asChild>
<ButtonTooltip
- variant="default"
size="tiny"
icon={<Copy size={12} />}
className="w-7"
diff --git a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlowPanel.tsx b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlowPanel.tsx
index 1f982d76e35..0ef5ac59ef6 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlowPanel.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlowPanel.tsx
@@ -248,7 +248,6 @@ export function ServiceFlowPanel({
<div className="sticky top-2 z-10 flex justify-end px-2 -mb-9 pointer-events-none">
<Button
size="tiny"
- variant="default"
className="pointer-events-auto px-1.5"
icon={jsonCopied ? <Check size={12} /> : <Copy size={12} />}
onClick={() => {
diff --git a/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogsBanner.tsx b/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogsBanner.tsx
index 45e7e90dbd0..92d0b326e9c 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogsBanner.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogsBanner.tsx
@@ -55,7 +55,6 @@ export function UnifiedLogsBanner({ className = 'mx-4 mt-4' }: UnifiedLogsBanner
Go back to old logs
</p>
<ButtonTooltip
- variant="default"
className="shrink-0 px-1.5"
icon={<Undo2 />}
onClick={onSwitchBack}
@@ -83,7 +82,6 @@ export function UnifiedLogsBanner({ className = 'mx-4 mt-4' }: UnifiedLogsBanner
<div className="flex justify-start items-start gap-x-2">
{isDefaultOptIn ? (
<Button
- variant="default"
icon={<CircleHelpIcon />}
onClick={() => selectFeaturePreview('supabase-ui-preview-unified-logs')}
>
@@ -91,11 +89,8 @@ export function UnifiedLogsBanner({ className = 'mx-4 mt-4' }: UnifiedLogsBanner
</Button>
) : (
<>
- <Button variant="default" onClick={onEnable}>
- Enable preview
- </Button>
+ <Button onClick={onEnable}>Enable preview</Button>
<ButtonTooltip
- variant="default"
className="px-1.5"
icon={<CircleHelpIcon />}
onClick={() => selectFeaturePreview('supabase-ui-preview-unified-logs')}
diff --git a/apps/studio/components/interfaces/UnifiedLogs/components/DownloadLogsButton.tsx b/apps/studio/components/interfaces/UnifiedLogs/components/DownloadLogsButton.tsx
index 54a8e4f0997..b9381704532 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/components/DownloadLogsButton.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/components/DownloadLogsButton.tsx
@@ -104,7 +104,6 @@ export const DownloadLogsButton = ({ searchParameters }: DownloadLogsButtonProps
<ShortcutTooltip shortcutId={SHORTCUT_IDS.UNIFIED_LOGS_DOWNLOAD} side="bottom">
<DropdownMenuTrigger asChild>
<Button
- variant="default"
className="w-[26px]"
icon={<Download className="text-foreground" />}
aria-label="Download logs"
@@ -174,11 +173,7 @@ export const DownloadLogsButton = ({ searchParameters }: DownloadLogsButtonProps
)}
</DialogSection>
<DialogFooter>
- <Button
- variant="default"
- disabled={isPending}
- onClick={() => setSelectedFormat(undefined)}
- >
+ <Button disabled={isPending} onClick={() => setSelectedFormat(undefined)}>
Cancel
</Button>
<Button variant="primary" loading={isPending} onClick={onExportData}>
diff --git a/apps/studio/components/interfaces/UnifiedLogs/components/LogsListPanel.tsx b/apps/studio/components/interfaces/UnifiedLogs/components/LogsListPanel.tsx
index 50d0dbece48..fb007f1b223 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/components/LogsListPanel.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/components/LogsListPanel.tsx
@@ -30,7 +30,6 @@ export const LogsListPanel = ({ selectedRow }: { selectedRow?: Row<ColumnSchema>
</span>
</div>
<Button
- variant="default"
onClick={() => setOpenState(!open)}
icon={<ChevronDown className={cn('w-4 h-4', !open ? 'rotate-180' : 'rotate-0')} />}
>
diff --git a/apps/studio/components/interfaces/UserDropdown.tsx b/apps/studio/components/interfaces/UserDropdown.tsx
index 1aa84663263..eaafa14c205 100644
--- a/apps/studio/components/interfaces/UserDropdown.tsx
+++ b/apps/studio/components/interfaces/UserDropdown.tsx
@@ -68,7 +68,6 @@ export function UserDropdown({
>
<DropdownMenuTrigger asChild className={cn('border shrink-0 px-3', triggerClassName)}>
<ButtonTooltip
- variant="default"
className="[&>span]:flex px-0 py-0 rounded-full overflow-hidden h-8 w-8"
tooltip={{ content: { text: 'Account settings' } }}
>
diff --git a/apps/studio/components/layouts/AdvisorsLayout/AdvisorsSidebarMenu.tsx b/apps/studio/components/layouts/AdvisorsLayout/AdvisorsSidebarMenu.tsx
index 506e4477586..0e009d7d1e2 100644
--- a/apps/studio/components/layouts/AdvisorsLayout/AdvisorsSidebarMenu.tsx
+++ b/apps/studio/components/layouts/AdvisorsLayout/AdvisorsSidebarMenu.tsx
@@ -26,7 +26,7 @@ export function AdvisorsSidebarMenu({ page }: AdvisorsSidebarMenuProps) {
description="Advisors are now available in the top toolbar for quicker access across the dashboard."
illustration={<Badge variant="success">New</Badge>}
actions={
- <Button size="tiny" variant="default" onClick={handleOpenAdvisor}>
+ <Button size="tiny" onClick={handleOpenAdvisor}>
Try it now
</Button>
}
diff --git a/apps/studio/components/layouts/AppLayout/BranchDropdownCommandContent.tsx b/apps/studio/components/layouts/AppLayout/BranchDropdownCommandContent.tsx
index 7fdd5b299ed..ac0d6d4397c 100644
--- a/apps/studio/components/layouts/AppLayout/BranchDropdownCommandContent.tsx
+++ b/apps/studio/components/layouts/AppLayout/BranchDropdownCommandContent.tsx
@@ -82,7 +82,6 @@ export function BranchDropdownCommandContent({
</a>
</Button>
<Button
- variant="default"
size="small"
block
className="col-span-full text-xs text-foreground-light hover:text-foreground"
diff --git a/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingPITRNotice.tsx b/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingPITRNotice.tsx
index 419d9285392..978943e7cfc 100644
--- a/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingPITRNotice.tsx
+++ b/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingPITRNotice.tsx
@@ -36,7 +36,6 @@ export const BranchingPITRNotice = () => {
<ButtonTooltip
disabled
size="tiny"
- variant="default"
tooltip={{
content: {
side: 'bottom',
@@ -47,7 +46,7 @@ export const BranchingPITRNotice = () => {
Enable PITR add-on
</ButtonTooltip>
) : (
- <Button size="tiny" variant="default" asChild>
+ <Button size="tiny" asChild>
<Link
href={`/project/${ref}/settings/addons?panel=pitr`}
onClick={() => snap.setShowCreateBranchModal(false)}
diff --git a/apps/studio/components/layouts/AppLayout/OrganizationDropdownCommandContent.tsx b/apps/studio/components/layouts/AppLayout/OrganizationDropdownCommandContent.tsx
index 687112b551d..aa4fce8d874 100644
--- a/apps/studio/components/layouts/AppLayout/OrganizationDropdownCommandContent.tsx
+++ b/apps/studio/components/layouts/AppLayout/OrganizationDropdownCommandContent.tsx
@@ -67,13 +67,7 @@ export function OrganizationDropdownCommandContent({
</Link>
</Button>
{organizationCreationEnabled && (
- <Button
- variant="default"
- block
- size="small"
- asChild
- icon={<Plus size={14} strokeWidth={1.5} />}
- >
+ <Button block size="small" asChild icon={<Plus size={14} strokeWidth={1.5} />}>
<Link
href="/new"
className="text-xs text-foreground-light hover:text-foreground"
diff --git a/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx b/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx
index 8f1a7890880..fd64fd601fc 100644
--- a/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx
+++ b/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx
@@ -41,13 +41,7 @@ function ProjectDropdownNewProjectActions({
if (embedded) {
return (
- <Button
- variant="default"
- block
- size="small"
- asChild
- icon={<Plus size={14} strokeWidth={1.5} />}
- >
+ <Button block size="small" asChild icon={<Plus size={14} strokeWidth={1.5} />}>
<Link
href={href}
onClick={onClose}
diff --git a/apps/studio/components/layouts/EdgeFunctionsLayout/EdgeFunctionDetailsLayout.tsx b/apps/studio/components/layouts/EdgeFunctionsLayout/EdgeFunctionDetailsLayout.tsx
index d57da33d9b1..02a221510c3 100644
--- a/apps/studio/components/layouts/EdgeFunctionsLayout/EdgeFunctionDetailsLayout.tsx
+++ b/apps/studio/components/layouts/EdgeFunctionsLayout/EdgeFunctionDetailsLayout.tsx
@@ -286,9 +286,7 @@ const EdgeFunctionDetailsLayout = ({
open={isDownloadOpen ? false : undefined}
>
<PopoverTrigger asChild>
- <Button variant="default" icon={<Download />}>
- Download
- </Button>
+ <Button icon={<Download />}>Download</Button>
</PopoverTrigger>
</ShortcutTooltip>
<PopoverContent align="end" className="p-0">
@@ -325,7 +323,7 @@ const EdgeFunctionDetailsLayout = ({
shortcutId={SHORTCUT_IDS.FUNCTION_DETAIL_OPEN_TEST}
side="bottom"
>
- <Button variant="default" icon={<Send />} onClick={openTestSheet}>
+ <Button icon={<Send />} onClick={openTestSheet}>
Test
</Button>
</ShortcutTooltip>
diff --git a/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx b/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx
index 56608b50c2b..f162423c0be 100644
--- a/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx
+++ b/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx
@@ -233,7 +233,6 @@ export function LogsSidebarMenuV2() {
<ButtonTooltip
asChild
- variant="default"
icon={<Plus className="text-foreground" />}
className="w-[26px]"
tooltip={{ content: { text: 'New query', side: 'bottom' } }}
@@ -301,7 +300,7 @@ export function LogsSidebarMenuV2() {
IS_PLATFORM ? 'Create and save your queries to use them in the explorer' : undefined
}
actions={
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${ref}/logs/explorer`}>Create query</Link>
</Button>
}
@@ -328,7 +327,7 @@ export function LogsSidebarMenuV2() {
</div>
}
actions={
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${ref}/settings/log-drains`}>Go to Log Drains</Link>
</Button>
}
diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/AdminStudioButton.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/AdminStudioButton.tsx
index 70069950c82..c894e5c29e4 100644
--- a/apps/studio/components/layouts/Navigation/LayoutHeader/AdminStudioButton.tsx
+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/AdminStudioButton.tsx
@@ -16,7 +16,6 @@ export const AdminStudioButton = () => {
return (
<ButtonTooltip
asChild
- variant="default"
className="rounded-full w-[26px] h-[26px]"
icon={<Wrench size={16} strokeWidth={1.5} />}
tooltip={{
diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
index 96f4df3b314..e9d9e3f0e84 100644
--- a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
@@ -65,7 +65,7 @@ export const FeedbackDropdown = ({ className }: { className?: string }) => {
<div className="flex flex-col gap-4 p-4">
<div className="font-medium text-sm">What would you like to share?</div>
<div className="grid grid-cols-2 gap-3">
- <Button variant="default" className="h-32" onClick={() => setStage('issue-options')}>
+ <Button className="h-32" onClick={() => setStage('issue-options')}>
<div className="grid gap-1.5 text-center">
<TriangleAlert size="28" className="mx-auto text-destructive-600" />
<div className="flex flex-col items-center">
@@ -74,7 +74,7 @@ export const FeedbackDropdown = ({ className }: { className?: string }) => {
</div>
</div>
</Button>
- <Button variant="default" className="h-32" onClick={() => setStage('widget')}>
+ <Button className="h-32" onClick={() => setStage('widget')}>
<div className="grid gap-1.5 text-center">
<Lightbulb size="28" className="mx-auto text-warning" />
<div className="flex flex-col items-center">
@@ -109,7 +109,7 @@ export const FeedbackDropdown = ({ className }: { className?: string }) => {
</div>
<PopoverSeparator />
<div className="px-4 pt-4 pb-4">
- <Button variant="default" size="tiny" onClick={() => setStage('widget')}>
+ <Button size="tiny" onClick={() => setStage('widget')}>
Leave feedback instead
</Button>
</div>
diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
index 90ed45d204b..2b423b72b5b 100644
--- a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
@@ -180,10 +180,10 @@ export const FeedbackWidget = ({ onClose, onSwitchToIssueOptions }: FeedbackWidg
</div>
<PopoverSeparator />
<div className="px-4 pt-4 pb-4 flex flex-row items-center justify-between">
- <Button variant="default" size="tiny" onClick={onSwitchToIssueOptions}>
+ <Button size="tiny" onClick={onSwitchToIssueOptions}>
Get help
</Button>
- <Button variant="default" size="tiny" onClick={onClose}>
+ <Button size="tiny" onClick={onClose}>
Close
</Button>
</div>
@@ -237,7 +237,7 @@ export const FeedbackWidget = ({ onClose, onSwitchToIssueOptions }: FeedbackWidg
<PopoverSeparator />
<div className="px-4 pt-4 pb-4 flex flex-row items-center justify-between">
- <Button variant="default" size="tiny" onClick={onSwitchToIssueOptions}>
+ <Button size="tiny" onClick={onSwitchToIssueOptions}>
Get help instead
</Button>
<div className="flex items-center gap-2 flex-row">
@@ -271,7 +271,6 @@ export const FeedbackWidget = ({ onClose, onSwitchToIssueOptions }: FeedbackWidg
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
disabled={isSavingScreenshot}
loading={isSavingScreenshot}
className="w-7"
diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/LocalVersionPopover.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/LocalVersionPopover.tsx
index 1ce8c1140a6..30fda49da89 100644
--- a/apps/studio/components/layouts/Navigation/LayoutHeader/LocalVersionPopover.tsx
+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/LocalVersionPopover.tsx
@@ -128,7 +128,7 @@ export const LocalVersionPopover = () => {
<div className="flex items-center gap-x-2 mt-3 px-4">
<Dialog>
<DialogTrigger asChild>
- <Button variant="default">Release schedule</Button>
+ <Button>Release schedule</Button>
</DialogTrigger>
<DialogContent>
<DialogHeader className="border-b">
@@ -174,7 +174,7 @@ export const LocalVersionPopover = () => {
</DialogSection>
</DialogContent>
</Dialog>
- <Button variant="default" asChild>
+ <Button asChild>
<a
target="_blank"
rel="noreferrer noopener"
diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/MergeRequestButton.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/MergeRequestButton.tsx
index b9c0a2f4478..01158b8595b 100644
--- a/apps/studio/components/layouts/Navigation/LayoutHeader/MergeRequestButton.tsx
+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/MergeRequestButton.tsx
@@ -60,7 +60,6 @@ export const MergeRequestButton = () => {
return (
<ButtonTooltip
- variant="default"
className="rounded-full w-[26px] h-[26px]"
onClick={handleClick}
loading={isUpdating}
diff --git a/apps/studio/components/layouts/Navigation/NavigationBar/MobileNavigationBar.tsx b/apps/studio/components/layouts/Navigation/NavigationBar/MobileNavigationBar.tsx
index e66c596d606..c3bda812f84 100644
--- a/apps/studio/components/layouts/Navigation/NavigationBar/MobileNavigationBar.tsx
+++ b/apps/studio/components/layouts/Navigation/NavigationBar/MobileNavigationBar.tsx
@@ -75,7 +75,6 @@ export const MobileNavigationBar = ({
<Button
aria-label="Open menu"
title="Menu dropdown button"
- variant="default"
className="flex lg:hidden border-default bg-surface-100/75 text-foreground-light rounded-md min-w-[30px] w-[30px] h-[30px] data-open:bg-overlay-hover/30"
icon={<Menu />}
onClick={() => openMenu()}
diff --git a/apps/studio/components/layouts/ObservabilityLayout/ObservabilityMenu.tsx b/apps/studio/components/layouts/ObservabilityLayout/ObservabilityMenu.tsx
index 1c5a0820fea..7ddba0adc39 100644
--- a/apps/studio/components/layouts/ObservabilityLayout/ObservabilityMenu.tsx
+++ b/apps/studio/components/layouts/ObservabilityLayout/ObservabilityMenu.tsx
@@ -123,7 +123,6 @@ export const ObservabilityMenu = () => {
<span className="uppercase font-mono">Custom Reports</span>
{customReportItems.length > 0 && (
<ButtonTooltip
- variant="default"
size="tiny"
icon={<Plus />}
disabled={!canCreateCustomReport}
@@ -167,7 +166,6 @@ export const ObservabilityMenu = () => {
description="Create and save custom reports to track your project metrics"
actions={
<ButtonTooltip
- variant="default"
icon={<Plus />}
disabled={!canCreateCustomReport}
onClick={() => {
diff --git a/apps/studio/components/layouts/OrganizationLayout.tsx b/apps/studio/components/layouts/OrganizationLayout.tsx
index 24878997f58..e674a869c60 100644
--- a/apps/studio/components/layouts/OrganizationLayout.tsx
+++ b/apps/studio/components/layouts/OrganizationLayout.tsx
@@ -151,7 +151,7 @@ const OrganizationLayoutContent = ({
</div>
<div className="flex items-center gap-2">
{selectedRedirectQuery?.data?.url && (
- <Button asChild variant="default" iconRight={<ExternalLink />}>
+ <Button asChild iconRight={<ExternalLink />}>
<a href={selectedRedirectQuery.data.url} target="_blank" rel="noopener noreferrer">
Manage
</a>
diff --git a/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx b/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx
index b192c21825f..7e3314d6032 100644
--- a/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx
@@ -124,7 +124,7 @@ const BuildingState = () => {
If your dashboard hasn't connected within 2 minutes, you can open a
support ticket.
</p>
- <Button asChild variant="default">
+ <Button asChild>
<SupportLink>Contact support team</SupportLink>
</Button>
</>
diff --git a/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx b/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx
index 5ae9884d3d9..a76cc86545d 100644
--- a/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx
@@ -89,10 +89,10 @@ const ConnectingState = ({ project }: ConnectingStateProps) => {
</div>
<div className="flex items-center justify-center space-x-2">
- <Button asChild variant="default">
+ <Button asChild>
<Link href={getInfrastructurePath(ref)}>Check database health</Link>
</Button>
- <Button asChild variant="default" icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
<Link
href={`${DOCS_URL}/guides/troubleshooting?products=platform#unable-to-connect-to-your-supabase-project`}
className="translate-y-px"
diff --git a/apps/studio/components/layouts/ProjectLayout/LogicalBackupCliInstructions.tsx b/apps/studio/components/layouts/ProjectLayout/LogicalBackupCliInstructions.tsx
index b66b04bc01b..459b6dbcf1c 100644
--- a/apps/studio/components/layouts/ProjectLayout/LogicalBackupCliInstructions.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/LogicalBackupCliInstructions.tsx
@@ -125,7 +125,6 @@ export const LogicalBackupCliInstructions = ({
{showResetPassword && (
<ButtonTooltip
- variant="default"
disabled={resetDisabled}
onClick={() => {
if (!resetDisabled && ref) {
diff --git a/apps/studio/components/layouts/ProjectLayout/PauseFailedState.tsx b/apps/studio/components/layouts/ProjectLayout/PauseFailedState.tsx
index 549203b56b5..a242be1b432 100644
--- a/apps/studio/components/layouts/ProjectLayout/PauseFailedState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/PauseFailedState.tsx
@@ -91,7 +91,7 @@ export const PauseFailedState = () => {
</div>
<div className="border-t border-overlay flex items-center justify-end gap-x-2 py-4 px-8">
- <Button asChild variant="default">
+ <Button asChild>
<SupportLink
queryParams={{
category: SupportCategories.DATABASE_UNRESPONSIVE,
@@ -103,7 +103,6 @@ export const PauseFailedState = () => {
</SupportLink>
</Button>
<ButtonTooltip
- variant="default"
icon={<Download />}
disabled={isLoadingBackups}
loading={isDownloading || isLoadingBackups}
@@ -119,7 +118,7 @@ export const PauseFailedState = () => {
</ButtonTooltip>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" className="px-1.5" icon={<MoreVertical />} />
+ <Button className="px-1.5" icon={<MoreVertical />} />
</DropdownMenuTrigger>
<DropdownMenuContent className="w-72" align="end">
<DropdownMenuItemTooltip
diff --git a/apps/studio/components/layouts/ProjectLayout/PausedState/DownloadBackupsSection.tsx b/apps/studio/components/layouts/ProjectLayout/PausedState/DownloadBackupsSection.tsx
index 12895300108..8cd448c4516 100644
--- a/apps/studio/components/layouts/ProjectLayout/PausedState/DownloadBackupsSection.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/PausedState/DownloadBackupsSection.tsx
@@ -124,7 +124,7 @@ export const DownloadBackupsSection = () => {
</div>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" icon={<Download />} iconRight={<ChevronDown />}>
+ <Button icon={<Download />} iconRight={<ChevronDown />}>
Download backups
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/layouts/ProjectLayout/PausedState/ProjectPausedState.tsx b/apps/studio/components/layouts/ProjectLayout/PausedState/ProjectPausedState.tsx
index cda99e5774f..1e0dceb7e0e 100644
--- a/apps/studio/components/layouts/ProjectLayout/PausedState/ProjectPausedState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/PausedState/ProjectPausedState.tsx
@@ -143,7 +143,7 @@ export const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {
{isFreePlan ? (
<UpgradePlanButton source="projectPausedStateRestore" />
) : (
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${ref}/settings/general`}>View project settings</Link>
</Button>
)}
diff --git a/apps/studio/components/layouts/ProjectLayout/PausingState.tsx b/apps/studio/components/layouts/ProjectLayout/PausingState.tsx
index d349a7dce7f..48e5e332191 100644
--- a/apps/studio/components/layouts/ProjectLayout/PausingState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/PausingState.tsx
@@ -106,7 +106,7 @@ export const PausingState = ({ project }: PausingStateProps) => {
</p>
{isTakingLongerThanExpected && (
<div className="flex justify-center">
- <Button asChild variant="default">
+ <Button asChild>
<SupportLink
queryParams={{
category: SupportCategories.DATABASE_UNRESPONSIVE,
diff --git a/apps/studio/components/layouts/ProjectLayout/RestoreFailedState.tsx b/apps/studio/components/layouts/ProjectLayout/RestoreFailedState.tsx
index ade2b7c85b0..0ee426f49c7 100644
--- a/apps/studio/components/layouts/ProjectLayout/RestoreFailedState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/RestoreFailedState.tsx
@@ -91,7 +91,7 @@ export const RestoreFailedState = () => {
</div>
<div className="border-t border-overlay flex items-center justify-end py-4 px-8 gap-x-2">
- <Button asChild variant="default">
+ <Button asChild>
<SupportLink
queryParams={{
category: SupportCategories.DATABASE_UNRESPONSIVE,
@@ -104,7 +104,6 @@ export const RestoreFailedState = () => {
</Button>
<ButtonTooltip
- variant="default"
icon={<Download />}
disabled={isLoadingBackups}
loading={isDownloading || isLoadingBackups}
@@ -121,7 +120,7 @@ export const RestoreFailedState = () => {
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" className="w-7" icon={<MoreVertical />} />
+ <Button className="w-7" icon={<MoreVertical />} />
</DropdownMenuTrigger>
<DropdownMenuContent className="w-72" align="end">
<DropdownMenuItemTooltip
diff --git a/apps/studio/components/layouts/ProjectLayout/RestoringState.tsx b/apps/studio/components/layouts/ProjectLayout/RestoringState.tsx
index 35900878d44..a98799a1f9b 100644
--- a/apps/studio/components/layouts/ProjectLayout/RestoringState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/RestoringState.tsx
@@ -166,7 +166,7 @@ export const RestoringState = () => {
layout="responsive"
description="Contact support if this project remains in a restoring state."
actions={
- <Button asChild variant="default">
+ <Button asChild>
<SupportLink
queryParams={{
category: SupportCategories.DATABASE_UNRESPONSIVE,
@@ -187,7 +187,6 @@ export const RestoringState = () => {
</div>
<div className="border-t border-overlay flex items-center justify-end py-4 px-8 gap-x-2">
<ButtonTooltip
- variant="default"
icon={<Download />}
loading={isDownloading}
disabled={logicalBackups.length === 0}
diff --git a/apps/studio/components/layouts/ProjectLayout/UnhealthyState.tsx b/apps/studio/components/layouts/ProjectLayout/UnhealthyState.tsx
index 8d4c453309a..8372fd67c9d 100644
--- a/apps/studio/components/layouts/ProjectLayout/UnhealthyState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/UnhealthyState.tsx
@@ -66,7 +66,6 @@ export const UnhealthyState = () => {
</div>
<div>
<Button
- variant="default"
size="tiny"
disabled={!canRestartProject}
loading={isRestarting}
diff --git a/apps/studio/components/layouts/ProjectLayout/UpgradingState/index.tsx b/apps/studio/components/layouts/ProjectLayout/UpgradingState/index.tsx
index 83043a6c1a5..53283b73222 100644
--- a/apps/studio/components/layouts/ProjectLayout/UpgradingState/index.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/UpgradingState/index.tsx
@@ -112,7 +112,7 @@ export const UpgradingState = () => {
</p>
</div>
<div className="flex items-center mx-auto space-x-2">
- <Button asChild variant="default">
+ <Button asChild>
<SupportLink
queryParams={{
category: SupportCategories.DATABASE_UNRESPONSIVE,
diff --git a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
index 1b21a5fcf3e..a6f92847ac6 100644
--- a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
+++ b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
@@ -146,7 +146,6 @@ export const SQLEditorMenu = () => {
<DropdownMenuTrigger asChild>
<Button
data-testid="sql-editor-new-query-button"
- variant="default"
icon={<Plus className="text-foreground" />}
className="w-[26px]"
aria-label="Create a new query"
@@ -178,7 +177,7 @@ export const SQLEditorMenu = () => {
</div>
<div className="p-4 border-t sticky bottom-0 bg-studio">
- <Button asChild block variant="default">
+ <Button asChild block>
<Link href={`/project/${ref}/observability/connections`}>View running queries</Link>
</Button>
</div>
diff --git a/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
index 7dcf8969319..be3a545b185 100644
--- a/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
+++ b/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
@@ -195,7 +195,6 @@ export const TableEditorMenu = () => {
disabled={!canCreateTables}
size="tiny"
icon={<Plus size={14} strokeWidth={1.5} className="text-foreground-muted" />}
- variant="default"
className="justify-start"
onClick={() => snap.onAddTable()}
tooltip={{
@@ -278,7 +277,6 @@ export const TableEditorMenu = () => {
</div>
<Button
size="tiny"
- variant="default"
onClick={() => setVisibleTypes([value])}
className="transition opacity-0 group-hover:opacity-100 h-auto px-1 py-0.5"
>
diff --git a/apps/studio/components/layouts/TableEditorLayout/TableMenuFilterEmptyState.tsx b/apps/studio/components/layouts/TableEditorLayout/TableMenuFilterEmptyState.tsx
index 0860ce12fb2..95dcddc8a7b 100644
--- a/apps/studio/components/layouts/TableEditorLayout/TableMenuFilterEmptyState.tsx
+++ b/apps/studio/components/layouts/TableEditorLayout/TableMenuFilterEmptyState.tsx
@@ -8,7 +8,7 @@ export const TableMenuFilterEmptyState = ({ onResetFilters }: { onResetFilters:
description="All entity types are hidden."
className="mx-4"
>
- <Button variant="default" onClick={onResetFilters} className="mt-2">
+ <Button onClick={onResetFilters} className="mt-2">
Reset filters
</Button>
</InnerSideBarEmptyPanel>
diff --git a/apps/studio/components/layouts/Tabs/NewTab.tsx b/apps/studio/components/layouts/Tabs/NewTab.tsx
index 834c40f0e2b..99834b94e32 100644
--- a/apps/studio/components/layouts/Tabs/NewTab.tsx
+++ b/apps/studio/components/layouts/Tabs/NewTab.tsx
@@ -49,11 +49,7 @@ export function NewTab() {
<Card>
<CardHeader className="py-2 px-3 flex-row items-center justify-between w-full space-y-0">
<CardTitle className="text-foreground-light">Currently impersonating as</CardTitle>
- <Button
- variant="default"
- className="font-sans"
- onClick={() => roleState.setRole(undefined)}
- >
+ <Button className="font-sans" onClick={() => roleState.setRole(undefined)}>
Stop
</Button>
</CardHeader>
diff --git a/apps/studio/components/to-be-cleaned/ProductEmptyState.tsx b/apps/studio/components/to-be-cleaned/ProductEmptyState.tsx
index bbf66438bc5..f9339986b89 100644
--- a/apps/studio/components/to-be-cleaned/ProductEmptyState.tsx
+++ b/apps/studio/components/to-be-cleaned/ProductEmptyState.tsx
@@ -64,7 +64,7 @@ const ProductEmptyState = ({
</ButtonTooltip>
) : null}
{infoButtonUrl && infoButtonLabel ? (
- <Button variant="default" icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button icon={<ExternalLink strokeWidth={1.5} />}>
<a target="_blank" rel="noreferrer" href={infoButtonUrl}>
{infoButtonLabel}
</a>
diff --git a/apps/studio/components/ui/AIAssistantPanel/AIAssistantMetadataWarning.tsx b/apps/studio/components/ui/AIAssistantPanel/AIAssistantMetadataWarning.tsx
index 7e5c25ac003..fba455d0ced 100644
--- a/apps/studio/components/ui/AIAssistantPanel/AIAssistantMetadataWarning.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/AIAssistantMetadataWarning.tsx
@@ -47,7 +47,7 @@ export const AIAssistantMetadataWarning = ({
className="border-0 border-b rounded-none bg-background"
>
{!isHipaaProjectDisallowed && (
- <Button variant="default" className="w-fit mt-4" onClick={() => onVisibleChange(true)}>
+ <Button className="w-fit mt-4" onClick={() => onVisibleChange(true)}>
Permission settings
</Button>
)}
diff --git a/apps/studio/components/ui/AIAssistantPanel/AIOptInModal.tsx b/apps/studio/components/ui/AIAssistantPanel/AIOptInModal.tsx
index 489870732e8..d1cf07b466a 100644
--- a/apps/studio/components/ui/AIAssistantPanel/AIOptInModal.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/AIOptInModal.tsx
@@ -69,7 +69,7 @@ export const AIOptInModal = ({ visible, onCancel }: AIOptInModalProps) => {
</p>
)}
<div className="flex items-center gap-x-2">
- <Button variant="default" disabled={isUpdating} onClick={onCancel}>
+ <Button disabled={isUpdating} onClick={onCancel}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/ui/AIAssistantPanel/AssistantChat.tsx b/apps/studio/components/ui/AIAssistantPanel/AssistantChat.tsx
index afd612b6c0f..a1f5a2b0b62 100644
--- a/apps/studio/components/ui/AIAssistantPanel/AssistantChat.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/AssistantChat.tsx
@@ -582,26 +582,15 @@ export const AssistantChat = ({
additionalActions={
<div className="flex items-center gap-x-2 mr-auto">
{isContextExceededError ? (
- <Button
- variant="default"
- size="tiny"
- onClick={onNewChat}
- className="text-xs"
- >
+ <Button size="tiny" onClick={onNewChat} className="text-xs">
New chat
</Button>
) : (
<>
- <Button
- variant="default"
- size="tiny"
- onClick={() => regenerate()}
- className="text-xs"
- >
+ <Button size="tiny" onClick={() => regenerate()} className="text-xs">
Retry
</Button>
<ButtonTooltip
- variant="default"
size="tiny"
onClick={handleClearMessages}
className="w-7 h-7"
diff --git a/apps/studio/components/ui/AIAssistantPanel/DeleteMessageConfirmModal.tsx b/apps/studio/components/ui/AIAssistantPanel/DeleteMessageConfirmModal.tsx
index ba036bb5820..967f3c761c4 100644
--- a/apps/studio/components/ui/AIAssistantPanel/DeleteMessageConfirmModal.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/DeleteMessageConfirmModal.tsx
@@ -41,9 +41,7 @@ export const DeleteMessageConfirmModal = ({
</DialogSection>
<DialogFooter padding="small">
- <Button variant="default" onClick={onCancel}>
- Cancel
- </Button>
+ <Button onClick={onCancel}>Cancel</Button>
<Button variant="danger" onClick={onConfirm}>
Delete
</Button>
diff --git a/apps/studio/components/ui/AIAssistantPanel/MessageMarkdown.tsx b/apps/studio/components/ui/AIAssistantPanel/MessageMarkdown.tsx
index 745fe9fdfc9..70f452668a2 100644
--- a/apps/studio/components/ui/AIAssistantPanel/MessageMarkdown.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/MessageMarkdown.tsx
@@ -97,9 +97,7 @@ export const Hyperlink = memo(({ href, children }: { href?: string; children?: R
<DialogFooter>
<DialogClose asChild>
- <Button variant="default" className="opacity-100">
- Cancel
- </Button>
+ <Button className="opacity-100">Cancel</Button>
</DialogClose>
<DialogClose asChild>
<Button asChild variant="primary" className="opacity-100">
diff --git a/apps/studio/components/ui/AIAssistantPanel/ModelSelector.tsx b/apps/studio/components/ui/AIAssistantPanel/ModelSelector.tsx
index 809f2cc79ff..5410167f27c 100644
--- a/apps/studio/components/ui/AIAssistantPanel/ModelSelector.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/ModelSelector.tsx
@@ -56,7 +56,6 @@ export const ModelSelector = ({ selectedModel, onSelectModel }: ModelSelectorPro
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button
- variant="default"
className="text-foreground-light"
iconRight={<ChevronsUpDown strokeWidth={1} size={12} />}
>
diff --git a/apps/studio/components/ui/AIAssistantPanel/NotebookProposalRenderer.tsx b/apps/studio/components/ui/AIAssistantPanel/NotebookProposalRenderer.tsx
index 72901332b1a..f91758dea8e 100644
--- a/apps/studio/components/ui/AIAssistantPanel/NotebookProposalRenderer.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/NotebookProposalRenderer.tsx
@@ -113,7 +113,7 @@ export const NotebookProposalRenderer = (props: NotebookProposalRendererProps) =
const canOpenNotebook = mode !== 'delete' && state === 'output-available'
const footerAction =
canOpenNotebook && parsedOutput.success && ref ? (
- <Button asChild variant="default" size="tiny">
+ <Button asChild size="tiny">
<Link href={`/project/${ref}/explorer/notebook/${parsedOutput.data.id}`}>
Open notebook
</Link>
@@ -178,7 +178,7 @@ function UpdateNotebookTerminalSummary({
<div className="flex items-center justify-between gap-2 my-2 mx-4 px-3 py-1.5 text-sm border rounded-md bg-surface-75">
<span className="text-foreground-light truncate">{label}</span>
{state === 'output-available' && parsedOutput.success && ref && (
- <Button asChild variant="default" size="tiny">
+ <Button asChild size="tiny">
<Link href={`/project/${ref}/explorer/notebook/${parsedOutput.data.id}`}>
Open notebook
</Link>
diff --git a/apps/studio/components/ui/AIAssistantPanel/SupportAssistantSuccessCardContent.tsx b/apps/studio/components/ui/AIAssistantPanel/SupportAssistantSuccessCardContent.tsx
index c01db7e5ce6..01313858bb5 100644
--- a/apps/studio/components/ui/AIAssistantPanel/SupportAssistantSuccessCardContent.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/SupportAssistantSuccessCardContent.tsx
@@ -159,12 +159,7 @@ export function SupportAssistantSuccessCardContent({
</div>
</CardHeader>
<CardContent>
- <Button
- asChild
- variant="default"
- size="tiny"
- iconRight={<ArrowUpRight size={14} strokeWidth={1.5} />}
- >
+ <Button asChild size="tiny" iconRight={<ArrowUpRight size={14} strokeWidth={1.5} />}>
<Link
href={`/project/${request.projectRef}?sidebar=ai-assistant&${ASSISTANT_HANDOFF_QUERY_PARAM}=${handoffToken}`}
onClick={() =>
diff --git a/apps/studio/components/ui/AIAssistantPanel/elements/Conversation.tsx b/apps/studio/components/ui/AIAssistantPanel/elements/Conversation.tsx
index dd0b6acc89c..5260059ad25 100644
--- a/apps/studio/components/ui/AIAssistantPanel/elements/Conversation.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/elements/Conversation.tsx
@@ -50,7 +50,6 @@ export const ConversationScrollButton = ({
className={cn('absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full', className)}
onClick={handleScrollToBottom}
size="tiny"
- variant="default"
{...props}
>
<ArrowDownIcon className="size-4" />
diff --git a/apps/studio/components/ui/AdvisorPanel/AdvisorSignalDetail.tsx b/apps/studio/components/ui/AdvisorPanel/AdvisorSignalDetail.tsx
index ae495fc34bd..9d5a316a099 100644
--- a/apps/studio/components/ui/AdvisorPanel/AdvisorSignalDetail.tsx
+++ b/apps/studio/components/ui/AdvisorPanel/AdvisorSignalDetail.tsx
@@ -88,17 +88,13 @@ export const AdvisorSignalDetail = ({ item }: AdvisorSignalDetailProps) => {
telemetrySource="advisor_signal_detail"
/>
{item.actions.map((action) => (
- <Button key={`${item.dismissalKey}-${action.href}`} variant="default" asChild>
+ <Button key={`${item.dismissalKey}-${action.href}`} asChild>
<Link href={action.href}>
<span className="flex items-center gap-2">{action.label}</span>
</Link>
</Button>
))}
- <Button
- variant="default"
- icon={<EyeOff size={14} strokeWidth={1.5} />}
- onClick={onDismissSignal}
- >
+ <Button icon={<EyeOff size={14} strokeWidth={1.5} />} onClick={onDismissSignal}>
Dismiss
</Button>
</div>
diff --git a/apps/studio/components/ui/AdvisorPanel/NotificationDetail.tsx b/apps/studio/components/ui/AdvisorPanel/NotificationDetail.tsx
index 8952da6e26f..41bd0323745 100644
--- a/apps/studio/components/ui/AdvisorPanel/NotificationDetail.tsx
+++ b/apps/studio/components/ui/AdvisorPanel/NotificationDetail.tsx
@@ -79,7 +79,7 @@ export const NotificationDetail = ({ notification, onUpdateStatus }: Notificatio
? action.url.replace('[slug]', organization?.slug ?? data.org_slug ?? '_')
: action.url
return (
- <Button key={key} variant="default" icon={<ExternalLink strokeWidth={1.5} />} asChild>
+ <Button key={key} icon={<ExternalLink strokeWidth={1.5} />} asChild>
<Link href={url} target="_blank" rel="noreferrer">
{action.label}
</Link>
@@ -87,11 +87,7 @@ export const NotificationDetail = ({ notification, onUpdateStatus }: Notificatio
)
} else if (action.action_type !== undefined) {
return (
- <Button
- key={key}
- variant="default"
- onClick={() => onButtonAction(action.action_type)}
- >
+ <Button key={key} onClick={() => onButtonAction(action.action_type)}>
{action.label}
</Button>
)
@@ -101,7 +97,6 @@ export const NotificationDetail = ({ notification, onUpdateStatus }: Notificatio
})}
{notification.status === 'archived' ? (
<Button
- variant="default"
icon={<ArchiveRestoreIcon size={14} strokeWidth={1.5} />}
onClick={() => onUpdateStatus(notification.id, 'seen')}
>
@@ -109,7 +104,6 @@ export const NotificationDetail = ({ notification, onUpdateStatus }: Notificatio
</Button>
) : (
<Button
- variant="default"
icon={<Archive size={14} strokeWidth={1.5} />}
onClick={() => onUpdateStatus(notification.id, 'archived')}
>
diff --git a/apps/studio/components/ui/AlertError.tsx b/apps/studio/components/ui/AlertError.tsx
index 9506899bff5..a20a4ab1c99 100644
--- a/apps/studio/components/ui/AlertError.tsx
+++ b/apps/studio/components/ui/AlertError.tsx
@@ -31,7 +31,7 @@ export const ContactSupportButton = ({
error?: { message: string } | null
}) => {
return (
- <Button asChild variant="default" className="w-min">
+ <Button asChild className="w-min">
<SupportLink
queryParams={{
category: SupportCategories.DASHBOARD_BUG,
diff --git a/apps/studio/components/ui/AlphaNotice.tsx b/apps/studio/components/ui/AlphaNotice.tsx
index 38c12d00ff4..fdc2627c9f2 100644
--- a/apps/studio/components/ui/AlphaNotice.tsx
+++ b/apps/studio/components/ui/AlphaNotice.tsx
@@ -24,12 +24,7 @@ export const AlphaNotice = ({
type="note"
layout="horizontal"
actions={
- <Button
- asChild
- variant="default"
- icon={<ExternalLink strokeWidth={1.5} />}
- className="mt-2"
- >
+ <Button asChild icon={<ExternalLink strokeWidth={1.5} />} className="mt-2">
<Link target="_blank" rel="noopener noreferrer" href={feedbackUrl}>
Share feedback
</Link>
diff --git a/apps/studio/components/ui/AutoEnableRLSNotice.tsx b/apps/studio/components/ui/AutoEnableRLSNotice.tsx
index 31cc83fee46..2cb1070dc97 100644
--- a/apps/studio/components/ui/AutoEnableRLSNotice.tsx
+++ b/apps/studio/components/ui/AutoEnableRLSNotice.tsx
@@ -117,13 +117,12 @@ const CreateEnsureRLSTriggerDialog = ({ iconOnly }: { iconOnly?: boolean }) => {
<DialogTrigger asChild>
{iconOnly ? (
<ButtonTooltip
- variant="default"
icon={<ShieldCheck />}
className="w-7"
tooltip={{ content: { side: 'bottom', text: 'Auto-enable RLS for new tables' } }}
/>
) : (
- <Button variant="default">Set up trigger</Button>
+ <Button>Set up trigger</Button>
)}
</DialogTrigger>
<DialogContent size="large">
@@ -156,7 +155,7 @@ const CreateEnsureRLSTriggerDialog = ({ iconOnly }: { iconOnly?: boolean }) => {
</CodeBlock>
<DialogFooter>
- <Button variant="default" disabled={isCreating} onClick={() => setOpen(false)}>
+ <Button disabled={isCreating} onClick={() => setOpen(false)}>
Cancel
</Button>
<ButtonTooltip
diff --git a/apps/studio/components/ui/BannerStack/Banners/BannerExplorer.tsx b/apps/studio/components/ui/BannerStack/Banners/BannerExplorer.tsx
index 70979ff5054..212efb9b3bc 100644
--- a/apps/studio/components/ui/BannerStack/Banners/BannerExplorer.tsx
+++ b/apps/studio/components/ui/BannerStack/Banners/BannerExplorer.tsx
@@ -78,7 +78,6 @@ export const BannerExplorer = () => {
</div>
<div className="flex gap-2">
<Button
- variant="default"
size="tiny"
onClick={() => {
selectFeaturePreview(LOCAL_STORAGE_KEYS.UI_PREVIEW_EXPLORER)
diff --git a/apps/studio/components/ui/BannerStack/Banners/BannerLogsAllDeprecation.tsx b/apps/studio/components/ui/BannerStack/Banners/BannerLogsAllDeprecation.tsx
index 4a8ebb66193..f508aaed00c 100644
--- a/apps/studio/components/ui/BannerStack/Banners/BannerLogsAllDeprecation.tsx
+++ b/apps/studio/components/ui/BannerStack/Banners/BannerLogsAllDeprecation.tsx
@@ -38,7 +38,7 @@ export const BannerLogsAllDeprecation = () => {
Management API endpoint need to migrate. Dashboard logs are unchanged.
</p>
</div>
- <Button variant="default" size="tiny" className="w-min" asChild>
+ <Button size="tiny" className="w-min" asChild>
<a href={MIGRATION_GUIDE_URL} target="_blank" rel="noreferrer noopener">
Learn more
</a>
diff --git a/apps/studio/components/ui/BannerStack/Banners/BannerSelect2026.tsx b/apps/studio/components/ui/BannerStack/Banners/BannerSelect2026.tsx
index 7e67a86157b..0c8ed7f9492 100644
--- a/apps/studio/components/ui/BannerStack/Banners/BannerSelect2026.tsx
+++ b/apps/studio/components/ui/BannerStack/Banners/BannerSelect2026.tsx
@@ -50,7 +50,6 @@ export const BannerSelect2026 = () => {
</div>
<Button
asChild
- variant="default"
size="tiny"
className="relative z-[2] w-min"
iconRight={<ArrowUpRight size={14} strokeWidth={1.5} />}
diff --git a/apps/studio/components/ui/BannerStack/Banners/BannerTOSUpdate.tsx b/apps/studio/components/ui/BannerStack/Banners/BannerTOSUpdate.tsx
index c73539ac929..304157c5e60 100644
--- a/apps/studio/components/ui/BannerStack/Banners/BannerTOSUpdate.tsx
+++ b/apps/studio/components/ui/BannerStack/Banners/BannerTOSUpdate.tsx
@@ -59,9 +59,7 @@ const UpdatedTermsOfServiceDialog = () => {
return (
<Dialog>
<DialogTrigger asChild>
- <Button variant="default" className="w-min">
- Learn more
- </Button>
+ <Button className="w-min">Learn more</Button>
</DialogTrigger>
<DialogContent>
<DialogHeader>
@@ -112,11 +110,7 @@ const UpdatedTermsOfServiceDialog = () => {
<DialogFooter>
<DialogClose asChild>
- <Button
- variant="default"
- className="opacity-100"
- onClick={() => setTOSUpdateAcknowledged(true)}
- >
+ <Button className="opacity-100" onClick={() => setTOSUpdateAcknowledged(true)}>
Understood
</Button>
</DialogClose>
diff --git a/apps/studio/components/ui/BannerStack/Banners/BannerTableEditorQueueOperations.tsx b/apps/studio/components/ui/BannerStack/Banners/BannerTableEditorQueueOperations.tsx
index ce687336672..1aa4468144e 100644
--- a/apps/studio/components/ui/BannerStack/Banners/BannerTableEditorQueueOperations.tsx
+++ b/apps/studio/components/ui/BannerStack/Banners/BannerTableEditorQueueOperations.tsx
@@ -61,7 +61,7 @@ export const BannerTableEditorQueueOperations = () => {
Batch multiple row edits and review them before saving to your database
</p>
</div>
- <Button asChild variant="default" className="w-min">
+ <Button asChild className="w-min">
<Link href={DASHBOARD_SETTINGS_URL}>
{isQueueOperationsEnabled ? 'View' : 'Enable in'} preferences
</Link>
diff --git a/apps/studio/components/ui/Charts/ChartHeader.tsx b/apps/studio/components/ui/Charts/ChartHeader.tsx
index d896e2f92b2..fb42f23c9db 100644
--- a/apps/studio/components/ui/Charts/ChartHeader.tsx
+++ b/apps/studio/components/ui/Charts/ChartHeader.tsx
@@ -279,7 +279,6 @@ export const ChartHeader = ({
<div className="flex items-center gap-2">
{sql ? (
<ButtonTooltip
- variant="default"
className="px-1.5"
asChild
tooltip={{
@@ -297,7 +296,6 @@ export const ChartHeader = ({
{!hideChartType && onChartStyleChange && (
<ButtonTooltip
- variant="default"
className="px-1.5"
icon={chartStyle === 'bar' ? <Activity /> : <BarChartIcon />}
onClick={() => onChartStyleChange(chartStyle === 'bar' ? 'line' : 'bar')}
diff --git a/apps/studio/components/ui/Charts/ReportSettings.tsx b/apps/studio/components/ui/Charts/ReportSettings.tsx
index 17248926ddf..d67912a2566 100644
--- a/apps/studio/components/ui/Charts/ReportSettings.tsx
+++ b/apps/studio/components/ui/Charts/ReportSettings.tsx
@@ -17,7 +17,6 @@ export const ReportSettings = ({ chartId }: ReportSettingsProps) => {
<Popover open={isOpen} onOpenChange={setIsOpen}>
<PopoverTrigger asChild>
<ButtonTooltip
- variant="default"
icon={<Settings />}
className="w-7"
tooltip={{ content: { side: 'bottom', text: 'Report settings' } }}
diff --git a/apps/studio/components/ui/ComputeBadgeWrapper.tsx b/apps/studio/components/ui/ComputeBadgeWrapper.tsx
index 9f8924a3b59..ebbcf77fc0b 100644
--- a/apps/studio/components/ui/ComputeBadgeWrapper.tsx
+++ b/apps/studio/components/ui/ComputeBadgeWrapper.tsx
@@ -185,7 +185,6 @@ export const ComputeBadgeWrapper = ({
<div>
<Button
asChild
- variant="default"
onClick={() => {
track('compute_badge_upgrade_clicked', {
computeSize: computeSize ?? 'unknown',
diff --git a/apps/studio/components/ui/DataGridResults/ResultCell.tsx b/apps/studio/components/ui/DataGridResults/ResultCell.tsx
index 3b77a9b6b88..9abe2b1e8a0 100644
--- a/apps/studio/components/ui/DataGridResults/ResultCell.tsx
+++ b/apps/studio/components/ui/DataGridResults/ResultCell.tsx
@@ -27,7 +27,6 @@ export const ResultCell = ({ column, value, onContextMenu, onExpand }: ResultCel
<Tooltip>
<TooltipTrigger asChild>
<Button
- variant="default"
size="tiny"
className="absolute right-1 top-1/2 -translate-y-1/2 px-1 opacity-0 group-hover/cell:opacity-100 focus-visible:opacity-100"
icon={<Expand size={10} />}
diff --git a/apps/studio/components/ui/DataTable/DataTableInfinite.tsx b/apps/studio/components/ui/DataTable/DataTableInfinite.tsx
index 179558cd4c0..aa443913f5a 100644
--- a/apps/studio/components/ui/DataTable/DataTableInfinite.tsx
+++ b/apps/studio/components/ui/DataTable/DataTableInfinite.tsx
@@ -223,7 +223,6 @@ export function DataTableInfinite<TData, TValue, TMeta>({
disabled={isFetching}
onClick={() => fetchNextPage()}
size="tiny"
- variant="default"
icon={
isFetching ? <LoaderCircle className="mr-2 h-4 w-4 animate-spin" /> : null
}
diff --git a/apps/studio/components/ui/DataTable/DataTableResetButton.tsx b/apps/studio/components/ui/DataTable/DataTableResetButton.tsx
index 158326bb76f..d49e929c290 100644
--- a/apps/studio/components/ui/DataTable/DataTableResetButton.tsx
+++ b/apps/studio/components/ui/DataTable/DataTableResetButton.tsx
@@ -28,7 +28,7 @@ export function DataTableResetButton({ onReset }: DataTableResetButtonProps) {
label="Reset filters"
side="left"
>
- <Button variant="default" size="tiny" onClick={reset} icon={<X />}>
+ <Button size="tiny" onClick={reset} icon={<X />}>
Reset
</Button>
</ShortcutTooltip>
diff --git a/apps/studio/components/ui/DataTable/DataTableViewOptions.tsx b/apps/studio/components/ui/DataTable/DataTableViewOptions.tsx
index cd20a57a1ea..ab2bb95b202 100644
--- a/apps/studio/components/ui/DataTable/DataTableViewOptions.tsx
+++ b/apps/studio/components/ui/DataTable/DataTableViewOptions.tsx
@@ -38,7 +38,6 @@ export function DataTableViewOptions() {
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<ButtonTooltip
- variant="default"
size="tiny"
role="combobox"
aria-expanded={open}
diff --git a/apps/studio/components/ui/DataTable/FilterSideBar.tsx b/apps/studio/components/ui/DataTable/FilterSideBar.tsx
index 09f408c004c..1c7ccb4481b 100644
--- a/apps/studio/components/ui/DataTable/FilterSideBar.tsx
+++ b/apps/studio/components/ui/DataTable/FilterSideBar.tsx
@@ -86,7 +86,7 @@ export function FilterSideBar({
</div>
}
actions={
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${ref}/settings/log-drains`}>Go to Log Drains</Link>
</Button>
}
diff --git a/apps/studio/components/ui/DataTable/RefreshButton.tsx b/apps/studio/components/ui/DataTable/RefreshButton.tsx
index 17632181c50..4f9e09b8087 100644
--- a/apps/studio/components/ui/DataTable/RefreshButton.tsx
+++ b/apps/studio/components/ui/DataTable/RefreshButton.tsx
@@ -33,7 +33,6 @@ export const RefreshButton = ({ isLoading, onRefresh, shortcutId }: RefreshButto
>
<Button
size="tiny"
- variant="default"
disabled={isLoading}
onClick={onRefresh}
className="w-[26px]"
@@ -47,7 +46,6 @@ export const RefreshButton = ({ isLoading, onRefresh, shortcutId }: RefreshButto
return (
<ButtonTooltip
size="tiny"
- variant="default"
disabled={isLoading}
onClick={onRefresh}
className="w-[26px]"
diff --git a/apps/studio/components/ui/DatabaseSelector.tsx b/apps/studio/components/ui/DatabaseSelector.tsx
index b31eac61d47..d34c61e8bf9 100644
--- a/apps/studio/components/ui/DatabaseSelector.tsx
+++ b/apps/studio/components/ui/DatabaseSelector.tsx
@@ -95,7 +95,6 @@ export const DatabaseSelector = ({
</span>
)}
<Button
- variant="default"
icon={isLoading && <Loader2 className="animate-spin" />}
iconRight={<ChevronDown strokeWidth={1.5} size={12} />}
{...buttonProps}
diff --git a/apps/studio/components/ui/DatePicker/index.tsx b/apps/studio/components/ui/DatePicker/index.tsx
index e9086944082..a1ddf9b5a43 100644
--- a/apps/studio/components/ui/DatePicker/index.tsx
+++ b/apps/studio/components/ui/DatePicker/index.tsx
@@ -316,11 +316,7 @@ export function DatePicker({
})}
<PopoverSeparator />
<div className="flex items-center justify-end gap-2 py-2 px-3 pb-4">
- {!hideClear && (
- <Button variant="default" onClick={() => handleClear()}>
- Clear
- </Button>
- )}
+ {!hideClear && <Button onClick={() => handleClear()}>Clear</Button>}
<Button variant="primary" onClick={() => handleSubmit()}>
Apply
</Button>
diff --git a/apps/studio/components/ui/DateRangePicker.tsx b/apps/studio/components/ui/DateRangePicker.tsx
index 3ed8f71000b..8d7931ca8aa 100644
--- a/apps/studio/components/ui/DateRangePicker.tsx
+++ b/apps/studio/components/ui/DateRangePicker.tsx
@@ -227,7 +227,7 @@ export const DateRangePicker = ({
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="default" iconRight={<ChevronDown />}>
+ <Button iconRight={<ChevronDown />}>
<span>{timePeriod && options.find((x) => x.key === timePeriod)?.label}</span>
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/ui/EditorPanel/EditorPanel.tsx b/apps/studio/components/ui/EditorPanel/EditorPanel.tsx
index 65314d8200e..0aa1a7f94ea 100644
--- a/apps/studio/components/ui/EditorPanel/EditorPanel.tsx
+++ b/apps/studio/components/ui/EditorPanel/EditorPanel.tsx
@@ -403,7 +403,6 @@ export const EditorPanel = () => {
<PopoverTrigger asChild>
<Button
size="tiny"
- variant="default"
role="combobox"
className="mr-2"
aria-expanded={isTemplatesOpen}
@@ -583,12 +582,7 @@ export const EditorPanel = () => {
<span className="font-mono">
{results.length} rows{results.length >= 100 && ` (Limited to only 100 rows)`}
</span>
- <Button
- size="tiny"
- variant="default"
- className="ml-2"
- onClick={() => setShowResults((prev) => !prev)}
- >
+ <Button size="tiny" className="ml-2" onClick={() => setShowResults((prev) => !prev)}>
{showResults ? 'Hide Results' : 'Show Results'}
</Button>
</div>
@@ -624,7 +618,6 @@ export const EditorPanel = () => {
</div>
)}
<Button
- variant="default"
size="tiny"
disabled={
!currentValue ||
@@ -636,7 +629,6 @@ export const EditorPanel = () => {
}
onClick={() => {
if (!ref || !profile || !project) return
-
if (activeSnippet) {
setSaveStatus('idle')
upsertContent({
diff --git a/apps/studio/components/ui/EditorPanel/SaveSnippetDialog.tsx b/apps/studio/components/ui/EditorPanel/SaveSnippetDialog.tsx
index c8278d9f47c..ffc8df9e106 100644
--- a/apps/studio/components/ui/EditorPanel/SaveSnippetDialog.tsx
+++ b/apps/studio/components/ui/EditorPanel/SaveSnippetDialog.tsx
@@ -77,7 +77,6 @@ export const SaveSnippetDialog = ({ open, sql, onOpenChange, onSave }: SaveSnipp
</div>
<div className="flex justify-end">
<ButtonTooltip
- variant="default"
size="tiny"
disabled={isGenerating || !isApiKeySet || isHipaaProjectDisallowed || isAiOptedOut}
onClick={() => generateTitle({ sql })}
@@ -105,9 +104,7 @@ export const SaveSnippetDialog = ({ open, sql, onOpenChange, onSave }: SaveSnipp
</DialogSection>
<DialogSectionSeparator />
<DialogFooter className="px-5 py-4">
- <Button variant="default" onClick={() => onOpenChange(false)}>
- Cancel
- </Button>
+ <Button onClick={() => onOpenChange(false)}>Cancel</Button>
<Button variant="primary" disabled={!name.trim()} onClick={handleSave}>
Save snippet
</Button>
diff --git a/apps/studio/components/ui/ErrorBoundary/ClientSideExceptionHandler.tsx b/apps/studio/components/ui/ErrorBoundary/ClientSideExceptionHandler.tsx
index 1b4534fa392..314c79f6075 100644
--- a/apps/studio/components/ui/ErrorBoundary/ClientSideExceptionHandler.tsx
+++ b/apps/studio/components/ui/ErrorBoundary/ClientSideExceptionHandler.tsx
@@ -80,7 +80,7 @@ export const ClientSideExceptionHandler = ({
</Admonition>
<div className={cn('w-full mx-auto grid gap-2', 'grid-cols-2 sm:w-1/2')}>
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<SupportLink
queryParams={{
category: SupportCategories.DASHBOARD_BUG,
diff --git a/apps/studio/components/ui/ErrorBoundary/ErrorBoundary.tsx b/apps/studio/components/ui/ErrorBoundary/ErrorBoundary.tsx
index 56b16321fb1..e11449476cd 100644
--- a/apps/studio/components/ui/ErrorBoundary/ErrorBoundary.tsx
+++ b/apps/studio/components/ui/ErrorBoundary/ErrorBoundary.tsx
@@ -28,11 +28,11 @@ const ErrorFallback = ({
<AlertTitle>{message}</AlertTitle>
<AlertDescription>We've been notified and will review and fix this issue.</AlertDescription>
<div className="mt-4 flex gap-2">
- <Button variant="default" onClick={resetErrorBoundary} className="text-sm">
+ <Button onClick={resetErrorBoundary} className="text-sm">
Try again
</Button>
{actions?.map((action, index) => (
- <Button key={index} variant="default" onClick={action.onClick} className="text-sm">
+ <Button key={index} onClick={action.onClick} className="text-sm">
{action.label}
</Button>
))}
diff --git a/apps/studio/components/ui/ErrorBoundary/InsertBeforeRemoveChildErrorHandler.tsx b/apps/studio/components/ui/ErrorBoundary/InsertBeforeRemoveChildErrorHandler.tsx
index 21c0b0adf50..e960c0b6c7b 100644
--- a/apps/studio/components/ui/ErrorBoundary/InsertBeforeRemoveChildErrorHandler.tsx
+++ b/apps/studio/components/ui/ErrorBoundary/InsertBeforeRemoveChildErrorHandler.tsx
@@ -54,7 +54,7 @@ export const InsertBeforeRemoveChildErrorHandler = ({
</div>
<div className="flex gap-x-2 justify-center items-center">
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<a
target="_blank"
rel="noreferrer"
diff --git a/apps/studio/components/ui/FileExplorerAndEditor/index.tsx b/apps/studio/components/ui/FileExplorerAndEditor/index.tsx
index a1ce9578e5c..c9a5cbebd1c 100644
--- a/apps/studio/components/ui/FileExplorerAndEditor/index.tsx
+++ b/apps/studio/components/ui/FileExplorerAndEditor/index.tsx
@@ -398,7 +398,7 @@ export const FileExplorerAndEditor = ({
Files
</h3>
{IS_PLATFORM && (
- <Button size="tiny" variant="default" icon={<Plus size={14} />} onClick={addNewFile}>
+ <Button size="tiny" icon={<Plus size={14} />} onClick={addNewFile}>
Add File
</Button>
)}
diff --git a/apps/studio/components/ui/FilterPopover.tsx b/apps/studio/components/ui/FilterPopover.tsx
index e79b916ed43..1ec5d6dbc4f 100644
--- a/apps/studio/components/ui/FilterPopover.tsx
+++ b/apps/studio/components/ui/FilterPopover.tsx
@@ -271,7 +271,6 @@ export const FilterPopover = <T extends Record<string, any>>({
<div className="flex items-center justify-end gap-2 border-t border-overlay bg-surface-200 py-2 px-3">
<Button
size="tiny"
- variant="default"
onClick={() => {
onSaveFilters([])
setSelectedOptions([])
diff --git a/apps/studio/components/ui/Forms/FormActions.tsx b/apps/studio/components/ui/Forms/FormActions.tsx
index d30a5468ce7..c800f28c002 100644
--- a/apps/studio/components/ui/Forms/FormActions.tsx
+++ b/apps/studio/components/ui/Forms/FormActions.tsx
@@ -31,7 +31,7 @@ export const FormActions = ({
>
{helper && <span className="text-sm text-foreground-lighter">{helper}</span>}
<div className="flex items-center gap-2">
- <Button disabled={isDisabled} variant="default" type="reset" onClick={() => handleReset()}>
+ <Button disabled={isDisabled} type="reset" onClick={() => handleReset()}>
Cancel
</Button>
<Button
diff --git a/apps/studio/components/ui/HighQueryCost.tsx b/apps/studio/components/ui/HighQueryCost.tsx
index eb78467da38..d6dd9d7787a 100644
--- a/apps/studio/components/ui/HighQueryCost.tsx
+++ b/apps/studio/components/ui/HighQueryCost.tsx
@@ -112,9 +112,7 @@ const HighQueryCostDialog = ({ error, suggestions = [] }: HighQueryCostErrorProp
href={`${DOCS_URL}/guides/troubleshooting/understanding-postgresql-explain-output-Un9dqX`}
/>
<DialogClose asChild>
- <Button variant="default" className="opacity-100">
- Understood
- </Button>
+ <Button className="opacity-100">Understood</Button>
</DialogClose>
</DialogFooter>
</DialogContent>
@@ -134,7 +132,7 @@ const LoadDataWarningDialog = ({
return (
<Dialog>
<DialogTrigger asChild>
- <Button variant="default">Load data</Button>
+ <Button>Load data</Button>
</DialogTrigger>
<DialogContent onOpenAutoFocus={(event) => event.preventDefault()}>
<DialogHeader>
@@ -167,9 +165,7 @@ const LoadDataWarningDialog = ({
</DialogSection>
<DialogFooter>
<DialogClose asChild>
- <Button variant="default" className="opacity-100">
- Cancel
- </Button>
+ <Button className="opacity-100">Cancel</Button>
</DialogClose>
<DialogClose asChild>
<Button variant="warning" onClick={() => onSelectLoadData()}>
diff --git a/apps/studio/components/ui/InformationBox.tsx b/apps/studio/components/ui/InformationBox.tsx
index ab386bee982..769c4371b60 100644
--- a/apps/studio/components/ui/InformationBox.tsx
+++ b/apps/studio/components/ui/InformationBox.tsx
@@ -75,7 +75,7 @@ const InformationBox = forwardRef<HTMLDivElement, InformationBoxProps>(
{url && (
<div>
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<Link href={url} target="_blank" rel="noreferrer">
{urlLabel}
</Link>
diff --git a/apps/studio/components/ui/Logs/ChartIntervalDropdown.tsx b/apps/studio/components/ui/Logs/ChartIntervalDropdown.tsx
index 02512903ca2..c3acd2612ce 100644
--- a/apps/studio/components/ui/Logs/ChartIntervalDropdown.tsx
+++ b/apps/studio/components/ui/Logs/ChartIntervalDropdown.tsx
@@ -48,7 +48,7 @@ export const ChartIntervalDropdown = ({
return (
<DropdownMenu open={open} onOpenChange={onOpenChange}>
<DropdownMenuTrigger asChild>
- <Button variant="default" iconRight={<ChevronDown size={14} />}>
+ <Button iconRight={<ChevronDown size={14} />}>
<span>{selectedInterval.label}</span>
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/ui/Logs/LogsExplorerHeader.tsx b/apps/studio/components/ui/Logs/LogsExplorerHeader.tsx
index 26e7b376dc1..8da6e6538a5 100644
--- a/apps/studio/components/ui/Logs/LogsExplorerHeader.tsx
+++ b/apps/studio/components/ui/Logs/LogsExplorerHeader.tsx
@@ -83,11 +83,7 @@ const LogsExplorerHeader = ({ subtitle }: LogsExplorerHeaderProps) => {
onCancel={() => setShowReference(false)}
hideFooter
triggerElement={
- <Button
- variant="default"
- onClick={() => setShowReference(true)}
- icon={<BookOpen strokeWidth={1.5} />}
- >
+ <Button onClick={() => setShowReference(true)} icon={<BookOpen strokeWidth={1.5} />}>
<span>Field Reference</span>
</Button>
}
@@ -128,7 +124,6 @@ const LogsExplorerHeader = ({ subtitle }: LogsExplorerHeaderProps) => {
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button
- variant="default"
role="combobox"
size={'small'}
aria-expanded={open}
diff --git a/apps/studio/components/ui/NoSearchResults.tsx b/apps/studio/components/ui/NoSearchResults.tsx
index 368af842d8f..891ee647eba 100644
--- a/apps/studio/components/ui/NoSearchResults.tsx
+++ b/apps/studio/components/ui/NoSearchResults.tsx
@@ -31,11 +31,7 @@ export const NoSearchResults = ({
{description ?? `Your search for “${searchString}” did not return any results`}
</p>
</div>
- {onResetFilter !== undefined && (
- <Button variant="default" onClick={() => onResetFilter()}>
- Reset filter
- </Button>
- )}
+ {onResetFilter !== undefined && <Button onClick={() => onResetFilter()}>Reset filter</Button>}
</div>
)
}
diff --git a/apps/studio/components/ui/OrganizationProjectSelector.tsx b/apps/studio/components/ui/OrganizationProjectSelector.tsx
index fb3028e4d2e..d834de38e34 100644
--- a/apps/studio/components/ui/OrganizationProjectSelector.tsx
+++ b/apps/studio/components/ui/OrganizationProjectSelector.tsx
@@ -276,7 +276,6 @@ export const OrganizationProjectSelector = ({
) : (
<Button
block
- variant="default"
role="combobox"
size="small"
aria-expanded={open}
diff --git a/apps/studio/components/ui/Panel.tsx b/apps/studio/components/ui/Panel.tsx
index 6387e97d8b6..0e9a92a8bf7 100644
--- a/apps/studio/components/ui/Panel.tsx
+++ b/apps/studio/components/ui/Panel.tsx
@@ -134,7 +134,7 @@ const PanelNotice = forwardRef<
)}
</div>
{href && (
- <Button size="tiny" variant="default" className="text-xs" asChild>
+ <Button size="tiny" className="text-xs" asChild>
<a href={href} target="_blank" rel="noreferrer noopener">
{buttonText ?? 'Read the accouncement'}
</a>
diff --git a/apps/studio/components/ui/PartnerManagedResource.tsx b/apps/studio/components/ui/PartnerManagedResource.tsx
index 3162fbafb4d..0b8f8bf6464 100644
--- a/apps/studio/components/ui/PartnerManagedResource.tsx
+++ b/apps/studio/components/ui/PartnerManagedResource.tsx
@@ -86,7 +86,7 @@ function PartnerManagedResource({
{details && <div className="text-sm text-foreground-light text-center">{details}</div>}
{showCta && (
- <Button asChild variant="default" iconRight={<ExternalLink />}>
+ <Button asChild iconRight={<ExternalLink />}>
<a href={ctaUrl} target="_blank" rel="noopener noreferrer">
{cta?.message || `View ${resource} on ${PARTNER_TO_NAME[managedBy]}`}
</a>
diff --git a/apps/studio/components/ui/ProjectSettings/ToggleLegacyApiKeys.tsx b/apps/studio/components/ui/ProjectSettings/ToggleLegacyApiKeys.tsx
index 68cbfd2ca26..c17890c255b 100644
--- a/apps/studio/components/ui/ProjectSettings/ToggleLegacyApiKeys.tsx
+++ b/apps/studio/components/ui/ProjectSettings/ToggleLegacyApiKeys.tsx
@@ -104,7 +104,6 @@ export const ToggleLegacyApiKeysPanel = () => {
</div>
<div className="flex items-center">
<ButtonTooltip
- variant="default"
onClick={
isLegacyKeysEnabled && (authorizedApps?.length || isAuthorizedAppsError)
? () => setIsAppsWarningOpen(true)
diff --git a/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx b/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx
index 510c2c8fcaa..03560061924 100644
--- a/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx
+++ b/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx
@@ -57,7 +57,7 @@ export const ProjectUpgradeFailedBanner = () => {
title={`Postgres version upgrade was not successful (Initiated at ${initiatedAt})`}
actions={
<>
- <Button asChild variant="default">
+ <Button asChild>
<SupportLink
queryParams={{
category: SupportCategories.DATABASE_UNRESPONSIVE,
diff --git a/apps/studio/components/ui/QueryBlock/QueryBlock.tsx b/apps/studio/components/ui/QueryBlock/QueryBlock.tsx
index 8fdbec57e03..22ad52e3fe9 100644
--- a/apps/studio/components/ui/QueryBlock/QueryBlock.tsx
+++ b/apps/studio/components/ui/QueryBlock/QueryBlock.tsx
@@ -375,7 +375,7 @@ export const QueryBlock = ({
Queries that involve any mutation will not be run in reports
</p>
{!!onRemoveChart && (
- <Button variant="default" className="mt-2" onClick={() => onRemoveChart()}>
+ <Button className="mt-2" onClick={() => onRemoveChart()}>
Remove chart
</Button>
)}
diff --git a/apps/studio/components/ui/RequestUpgradeToBillingOwners.tsx b/apps/studio/components/ui/RequestUpgradeToBillingOwners.tsx
index 51fd2776169..04f093858cf 100644
--- a/apps/studio/components/ui/RequestUpgradeToBillingOwners.tsx
+++ b/apps/studio/components/ui/RequestUpgradeToBillingOwners.tsx
@@ -236,7 +236,7 @@ export const RequestUpgradeToBillingOwners = ({
</DialogSection>
<DialogFooter>
- <Button variant="default" disabled={isSubmitting} onClick={() => setOpen(false)}>
+ <Button disabled={isSubmitting} onClick={() => setOpen(false)}>
Cancel
</Button>
<Button variant="primary" type="submit" form={formId} loading={isSubmitting}>
diff --git a/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx b/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx
index 9f665a1d0e5..7cbeb085ba5 100644
--- a/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx
+++ b/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx
@@ -209,11 +209,7 @@ export const ResourceExhaustionWarningBanner = () => {
{learnMoreUrl !== undefined && aiPrompt !== undefined ? (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button
- variant="default"
- icon={<Wrench size={14} />}
- iconRight={<ChevronDown size={14} />}
- >
+ <Button icon={<Wrench size={14} />} iconRight={<ChevronDown size={14} />}>
Troubleshoot
</Button>
</DropdownMenuTrigger>
@@ -247,15 +243,13 @@ export const ResourceExhaustionWarningBanner = () => {
</DropdownMenuContent>
</DropdownMenu>
) : learnMoreUrl !== undefined ? (
- <Button asChild variant="default" icon={<BookOpen size={14} />}>
+ <Button asChild icon={<BookOpen size={14} />}>
<a href={learnMoreUrl} target="_blank" rel="noreferrer">
Learn more
</a>
</Button>
) : aiPrompt !== undefined ? (
- <Button variant="default" onClick={handleAskAI}>
- Ask AI Assistant
- </Button>
+ <Button onClick={handleAskAI}>Ask AI Assistant</Button>
) : null}
{correctionUrl !== undefined && (
<Button
diff --git a/apps/studio/components/ui/SchemaSelector.tsx b/apps/studio/components/ui/SchemaSelector.tsx
index 922f68308f5..2871c566d62 100644
--- a/apps/studio/components/ui/SchemaSelector.tsx
+++ b/apps/studio/components/ui/SchemaSelector.tsx
@@ -104,7 +104,6 @@ export const SchemaSelector = forwardRef<HTMLDivElement, SchemaSelectorProps>(
<div ref={ref} className={className} {...rest}>
{isSchemasLoading && (
<Button
- variant="default"
key="schema-selector-skeleton"
className="w-full [&>span]:w-full"
size={size}
@@ -121,10 +120,10 @@ export const SchemaSelector = forwardRef<HTMLDivElement, SchemaSelectorProps>(
Error: {(schemasError as any)?.message}
</AlertDescription>
<div className="flex flex-wrap gap-2">
- <Button variant="default" size="tiny" onClick={() => refetchSchemas()}>
+ <Button size="tiny" onClick={() => refetchSchemas()}>
Reload schemas
</Button>
- <Button variant="default" size="tiny" onClick={() => setIsRestartDialogVisible(true)}>
+ <Button size="tiny" onClick={() => setIsRestartDialogVisible(true)}>
Restart database
</Button>
</div>
diff --git a/apps/studio/components/ui/SortDropdown.tsx b/apps/studio/components/ui/SortDropdown.tsx
index 6c202d62045..0e8f2d098bc 100644
--- a/apps/studio/components/ui/SortDropdown.tsx
+++ b/apps/studio/components/ui/SortDropdown.tsx
@@ -29,10 +29,7 @@ export const SortDropdown = ({ options, value, setValue }: SortDropdownProps) =>
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button
- variant="default"
- icon={sortOrder === 'desc' ? <ArrowDownWideNarrow /> : <ArrowDownNarrowWide />}
- >
+ <Button icon={sortOrder === 'desc' ? <ArrowDownWideNarrow /> : <ArrowDownNarrowWide />}>
Sorted by {columnLabel ?? sortColumn}
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/ui/SteppedFlow/SteppedFlow.tsx b/apps/studio/components/ui/SteppedFlow/SteppedFlow.tsx
index 0d149df260c..961ec6491e6 100644
--- a/apps/studio/components/ui/SteppedFlow/SteppedFlow.tsx
+++ b/apps/studio/components/ui/SteppedFlow/SteppedFlow.tsx
@@ -115,7 +115,6 @@ export const SteppedFlow = ({
{currentIndex > 0 ? (
<Button
type="button"
- variant="default"
disabled={navigationDisabled}
onClick={() => onStepChange(steps[currentIndex - 1].id)}
>
@@ -123,12 +122,7 @@ export const SteppedFlow = ({
</Button>
) : null}
{currentIndex === 0 && showCancel ? (
- <Button
- type="button"
- variant="default"
- disabled={navigationDisabled}
- onClick={onCancel}
- >
+ <Button type="button" disabled={navigationDisabled} onClick={onCancel}>
{cancelLabel}
</Button>
) : null}
diff --git a/apps/studio/components/ui/UnknownInterface.tsx b/apps/studio/components/ui/UnknownInterface.tsx
index 92b565f0ab2..747053bb0df 100644
--- a/apps/studio/components/ui/UnknownInterface.tsx
+++ b/apps/studio/components/ui/UnknownInterface.tsx
@@ -17,7 +17,7 @@ export const UnknownInterface = ({
title="Looking for something?"
description="We couldn't find the page that you're looking for"
>
- <Button asChild variant="default" className="mt-2">
+ <Button asChild className="mt-2">
<Link href={urlBack}>Head back</Link>
</Button>
</Admonition>
diff --git a/apps/studio/components/ui/org-selector.tsx b/apps/studio/components/ui/org-selector.tsx
index 1faff645c14..0edf5f1e5f5 100644
--- a/apps/studio/components/ui/org-selector.tsx
+++ b/apps/studio/components/ui/org-selector.tsx
@@ -158,7 +158,6 @@ export function OrganizationSelector({
setSearch('')
setShowAll(true)
}}
- variant="default"
>
Show all organizations
</Button>
@@ -172,7 +171,7 @@ export function OrganizationSelector({
<CardHeader className="border-none">
<CardTitle>Need a new organization?</CardTitle>
</CardHeader>
- <Button size="small" className="" asChild variant="default">
+ <Button size="small" className="" asChild>
<Link href={`/new?${searchParams.toString()}`}>New Organization</Link>
</Button>
</Card>
diff --git a/apps/studio/pages/account/tokens.tsx b/apps/studio/pages/account/tokens.tsx
index b8ad06552c4..d3d0de033cc 100644
--- a/apps/studio/pages/account/tokens.tsx
+++ b/apps/studio/pages/account/tokens.tsx
@@ -46,12 +46,12 @@ const UserAccessTokens: NextPageWithLayout = () => {
placeholder="Filter tokens"
/>
<div className="flex items-center gap-x-2">
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<a href={`${DOCS_URL}/reference/api/introduction`} target="_blank" rel="noreferrer">
API Docs
</a>
</Button>
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<a href={`${DOCS_URL}/reference/cli/start`} target="_blank" rel="noreferrer">
CLI docs
</a>
diff --git a/apps/studio/pages/cli/login.tsx b/apps/studio/pages/cli/login.tsx
index 04aba48ac85..45a5afd1ffe 100644
--- a/apps/studio/pages/cli/login.tsx
+++ b/apps/studio/pages/cli/login.tsx
@@ -206,7 +206,7 @@ export const CliLoginScreen = ({
isPlural ? 's' : ''
}: ${status.missingParameters.join(', ')}.`}
/>
- <Button variant="default" block asChild>
+ <Button block asChild>
<Link href="/organizations">Back to dashboard</Link>
</Button>
</div>
@@ -234,7 +234,7 @@ export const CliLoginScreen = ({
</>
}
/>
- <Button variant="default" block asChild>
+ <Button block asChild>
<Link href="/organizations">Back to dashboard</Link>
</Button>
</div>
diff --git a/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx b/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
index a01393288f3..cd98391a631 100644
--- a/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
+++ b/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
@@ -215,7 +215,7 @@ export function VercelConnectionError({
/>
</div>
<div className="flex h-12 items-center justify-end gap-x-2 border-t border-default bg-surface-100 px-card">
- <Button asChild variant="default">
+ <Button asChild>
<Link href={`/project/${projectRef}`}>Open project</Link>
</Button>
<Button variant="primary" onClick={onRetry}>
diff --git a/apps/studio/pages/org/[slug]/index.tsx b/apps/studio/pages/org/[slug]/index.tsx
index 26fbcb40c3a..112511cc9a8 100644
--- a/apps/studio/pages/org/[slug]/index.tsx
+++ b/apps/studio/pages/org/[slug]/index.tsx
@@ -36,7 +36,7 @@ const ProjectsPage: NextPageWithLayout = () => {
</>
}
actions={
- <Button asChild variant="default">
+ <Button asChild>
<Link href="/account/security">Set up MFA</Link>
</Button>
}
diff --git a/apps/studio/pages/partners/stripe/projects/login.tsx b/apps/studio/pages/partners/stripe/projects/login.tsx
index 37ae262f3d4..509ed6540a9 100644
--- a/apps/studio/pages/partners/stripe/projects/login.tsx
+++ b/apps/studio/pages/partners/stripe/projects/login.tsx
@@ -138,7 +138,7 @@ export const StripeProjectsLoginPage: NextPageWithLayout = () => {
</>
}
/>
- <Button variant="default" block onClick={() => signOut()}>
+ <Button block onClick={() => signOut()}>
Sign out
</Button>
</div>
@@ -215,7 +215,7 @@ export const StripeProjectsLoginPage: NextPageWithLayout = () => {
title="Unable to load authorization"
description={error?.message}
/>
- <Button variant="default" block onClick={() => signOut()}>
+ <Button block onClick={() => signOut()}>
Sign out
</Button>
</div>
diff --git a/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsx b/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsx
index 4f5254f12f8..d8195556aa9 100644
--- a/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsx
+++ b/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsx
@@ -181,7 +181,7 @@ const RedirectToTemplates = () => {
title="Unable to find template"
description={`${templateId ? `The template "${templateId}"` : 'This template'} doesn’t seem to exist.`}
>
- <Button asChild variant="default" className="mt-2">
+ <Button asChild className="mt-2">
<Link href={`/project/${ref}/auth/templates`}>Head back</Link>
</Button>
</Admonition>
@@ -260,9 +260,7 @@ const RedirectToTemplates = () => {
</CardContent>
<CardFooter className="justify-end space-x-2">
{templateForm.formState.isDirty && (
- <Button variant="default" onClick={() => templateForm.reset()}>
- Cancel
- </Button>
+ <Button onClick={() => templateForm.reset()}>Cancel</Button>
)}
<Button
variant="primary"
diff --git a/apps/studio/pages/project/[ref]/compute/index.tsx b/apps/studio/pages/project/[ref]/compute/index.tsx
index 85cf996816f..d035f401cf1 100644
--- a/apps/studio/pages/project/[ref]/compute/index.tsx
+++ b/apps/studio/pages/project/[ref]/compute/index.tsx
@@ -92,7 +92,6 @@ const ComputePage: NextPageWithLayout = () => {
subject="Failed to retrieve compute instances"
additionalActions={
<Button
- variant="default"
icon={<RefreshCw />}
loading={isManuallyRefreshing}
onClick={handleManualRefresh}
diff --git a/apps/studio/pages/project/[ref]/database/column-privileges.tsx b/apps/studio/pages/project/[ref]/database/column-privileges.tsx
index 78b6a3a2ae8..0cc7afb728a 100644
--- a/apps/studio/pages/project/[ref]/database/column-privileges.tsx
+++ b/apps/studio/pages/project/[ref]/database/column-privileges.tsx
@@ -353,7 +353,7 @@ const PrivilegesPage: NextPageWithLayout = () => {
You may access this feature by enabling it under dashboard feature previews.
</AlertDescription>
<div className="mt-4">
- <Button variant="default" onClick={() => toggleFeaturePreviewModal(true)}>
+ <Button onClick={() => toggleFeaturePreviewModal(true)}>
View feature previews
</Button>
</div>
diff --git a/apps/studio/pages/project/[ref]/database/indexes.tsx b/apps/studio/pages/project/[ref]/database/indexes.tsx
index fac07b3af62..a1b80fed4fa 100644
--- a/apps/studio/pages/project/[ref]/database/indexes.tsx
+++ b/apps/studio/pages/project/[ref]/database/indexes.tsx
@@ -34,7 +34,7 @@ const IndexesPage: NextPageWithLayout = () => {
className="no-underline"
href={`${DOCS_URL}/guides/database/query-optimization`}
/>
- <Button asChild variant="default" icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
<a
target="_blank"
rel="noreferrer"
diff --git a/apps/studio/pages/project/[ref]/functions/index.tsx b/apps/studio/pages/project/[ref]/functions/index.tsx
index b0a026a30a4..994374b978b 100644
--- a/apps/studio/pages/project/[ref]/functions/index.tsx
+++ b/apps/studio/pages/project/[ref]/functions/index.tsx
@@ -165,12 +165,7 @@ const EdgeFunctionsPage: NextPageWithLayout = () => {
shortcutId={SHORTCUT_IDS.FUNCTIONS_LIST_REFRESH}
side="bottom"
>
- <Button
- variant="default"
- icon={<RefreshCw />}
- loading={isFetching}
- onClick={() => refetch()}
- >
+ <Button icon={<RefreshCw />} loading={isFetching} onClick={() => refetch()}>
Refresh
</Button>
</ShortcutTooltip>
@@ -244,7 +239,7 @@ export const EdgeFunctionsIndexPageWrapper = ({ children }: PropsWithChildren) =
</PageHeaderSummary>
<PageHeaderAside>
<DocsButton href={`${DOCS_URL}/guides/functions`} />
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<a
target="_blank"
rel="noreferrer"
diff --git a/apps/studio/pages/project/[ref]/functions/new.tsx b/apps/studio/pages/project/[ref]/functions/new.tsx
index 14f527e7777..118bcd18e0b 100644
--- a/apps/studio/pages/project/[ref]/functions/new.tsx
+++ b/apps/studio/pages/project/[ref]/functions/new.tsx
@@ -299,7 +299,6 @@ const NewFunctionPage = () => {
<PopoverTrigger asChild>
<Button
size="tiny"
- variant="default"
role="combobox"
aria-expanded={open}
aria-controls={templatesListboxId}
@@ -346,12 +345,7 @@ const NewFunctionPage = () => {
</Command>
</PopoverContent>
</Popover>
- <Button
- size="tiny"
- variant="default"
- onClick={handleChat}
- icon={<AiIconAnimation size={16} />}
- >
+ <Button size="tiny" onClick={handleChat} icon={<AiIconAnimation size={16} />}>
Chat
</Button>
</>
diff --git a/apps/studio/pages/project/[ref]/logs/explorer/index.tsx b/apps/studio/pages/project/[ref]/logs/explorer/index.tsx
index 03f5e54e6cd..f74291b0d8c 100644
--- a/apps/studio/pages/project/[ref]/logs/explorer/index.tsx
+++ b/apps/studio/pages/project/[ref]/logs/explorer/index.tsx
@@ -517,7 +517,7 @@ export const LogsExplorerPage: NextPageWithLayout = () => {
Review the ClickHouse SQL rewrite before accepting it
</span>
<div className="flex items-center gap-2">
- <Button variant="default" size="tiny" onClick={discardRewrite}>
+ <Button size="tiny" onClick={discardRewrite}>
Discard
</Button>
<Button variant="primary" size="tiny" onClick={acceptRewrite}>
diff --git a/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx b/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx
index a1d26255e0e..3bf193ad750 100644
--- a/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx
+++ b/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx
@@ -26,7 +26,7 @@ export const LogsSavedPage: NextPageWithLayout = () => {
<>
<Table.th>Snippets</Table.th>
<Table.th className="w-24">
- <Button size="tiny" variant="default" onClick={() => setRecentLogSnippets([])}>
+ <Button size="tiny" onClick={() => setRecentLogSnippets([])}>
Clear history
</Button>
</Table.th>
diff --git a/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx b/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx
index d5af19ee7cd..7a960b9f3f4 100644
--- a/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx
+++ b/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx
@@ -81,7 +81,6 @@ const Template = ({ projectRef, template }: { projectRef?: string; template: Log
<PopoverTrigger asChild>
<Button
asChild
- variant="default"
onClick={(e) => {
e.preventDefault()
setShowPreview(!showPreview)
diff --git a/apps/studio/pages/project/[ref]/merge.tsx b/apps/studio/pages/project/[ref]/merge.tsx
index f662734cac2..ed85a6c78ae 100644
--- a/apps/studio/pages/project/[ref]/merge.tsx
+++ b/apps/studio/pages/project/[ref]/merge.tsx
@@ -390,7 +390,6 @@ const MergePage: NextPageWithLayout = () => {
overrideAction={
hasCurrentWorkflowFailed ? (
<Button
- variant="default"
asChild
icon={<GitBranchIcon size={16} strokeWidth={1.5} />}
className="shrink-0"
@@ -399,7 +398,6 @@ const MergePage: NextPageWithLayout = () => {
</Button>
) : hasCurrentWorkflowCompleted ? (
<Button
- variant="default"
onClick={handleCloseBranch}
loading={isDeleting}
icon={<X size={16} strokeWidth={1.5} />}
diff --git a/apps/studio/pages/project/[ref]/observability/auth.tsx b/apps/studio/pages/project/[ref]/observability/auth.tsx
index 92f0e5ff38f..900d0b18c87 100644
--- a/apps/studio/pages/project/[ref]/observability/auth.tsx
+++ b/apps/studio/pages/project/[ref]/observability/auth.tsx
@@ -225,7 +225,6 @@ const AuthUsage = () => {
side="bottom"
>
<Button
- variant="default"
disabled={isRefreshing}
icon={<RefreshCw className={isRefreshing ? 'animate-spin' : ''} />}
className="w-7"
diff --git a/apps/studio/pages/project/[ref]/observability/database.tsx b/apps/studio/pages/project/[ref]/observability/database.tsx
index 76a8973e216..344bb1c5591 100644
--- a/apps/studio/pages/project/[ref]/observability/database.tsx
+++ b/apps/studio/pages/project/[ref]/observability/database.tsx
@@ -242,7 +242,6 @@ const DatabaseUsage = () => {
>
<Button
aria-label="Refresh report"
- variant="default"
disabled={isRefreshing}
icon={<RefreshCw className={isRefreshing ? 'animate-spin' : ''} />}
className="w-7"
@@ -376,12 +375,11 @@ const DatabaseUsage = () => {
The DiskSizeConfigurationModal is old and might be obsolete
*/}
{project?.cloud_provider === 'AWS' && !isHighAvailability ? (
- <Button asChild variant="default">
+ <Button asChild>
<Link href={getInfrastructurePath(ref)}>Increase disk size</Link>
</Button>
) : (
<ButtonTooltip
- variant="default"
disabled={!canUpdateDiskSizeConfig || isHighAvailability}
onClick={() => setshowIncreaseDiskSizeModal(true)}
tooltip={{
@@ -467,7 +465,7 @@ const renderDatabaseSizeAdditionalInfo = () => {
is used when installing extensions, even if those extensions are inactive.
</p>
- <Button asChild variant="default" icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLink />}>
<Link
href={`${DOCS_URL}/guides/platform/database-size#disk-space-usage`}
target="_blank"
diff --git a/apps/studio/pages/project/[ref]/observability/edge-functions.tsx b/apps/studio/pages/project/[ref]/observability/edge-functions.tsx
index f4080121270..6c7f7c39798 100644
--- a/apps/studio/pages/project/[ref]/observability/edge-functions.tsx
+++ b/apps/studio/pages/project/[ref]/observability/edge-functions.tsx
@@ -162,7 +162,6 @@ const EdgeFunctionsUsage = () => {
side="bottom"
>
<Button
- variant="default"
disabled={isRefreshing}
icon={<RefreshCw className={isRefreshing ? 'animate-spin' : ''} />}
className="w-7"
diff --git a/apps/studio/pages/project/[ref]/observability/postgrest.tsx b/apps/studio/pages/project/[ref]/observability/postgrest.tsx
index 963799eb0fe..9c46c46442b 100644
--- a/apps/studio/pages/project/[ref]/observability/postgrest.tsx
+++ b/apps/studio/pages/project/[ref]/observability/postgrest.tsx
@@ -131,7 +131,6 @@ const PostgrestReport = () => {
side="bottom"
>
<Button
- variant="default"
disabled={isRefetching}
icon={<RefreshCw className={isRefetching ? 'animate-spin' : ''} />}
className="w-7"
diff --git a/apps/studio/pages/project/[ref]/observability/realtime.tsx b/apps/studio/pages/project/[ref]/observability/realtime.tsx
index dc07655c4a3..61be536ecd2 100644
--- a/apps/studio/pages/project/[ref]/observability/realtime.tsx
+++ b/apps/studio/pages/project/[ref]/observability/realtime.tsx
@@ -156,7 +156,6 @@ const RealtimeUsage = () => {
side="bottom"
>
<Button
- variant="default"
disabled={isRefreshing}
icon={<RefreshCw className={isRefreshing ? 'animate-spin' : ''} />}
className="w-7"
diff --git a/apps/studio/pages/project/[ref]/observability/storage.tsx b/apps/studio/pages/project/[ref]/observability/storage.tsx
index 1ba7eba2144..fe4f0790e55 100644
--- a/apps/studio/pages/project/[ref]/observability/storage.tsx
+++ b/apps/studio/pages/project/[ref]/observability/storage.tsx
@@ -104,7 +104,6 @@ export const StorageReport: NextPageWithLayout = () => {
side="bottom"
>
<Button
- variant="default"
disabled={report.isLoading}
icon={<RefreshCw className={report.isLoading ? 'animate-spin' : ''} />}
className="w-7"
diff --git a/apps/studio/pages/project/[ref]/settings/infrastructure/replica/[replicaId].tsx b/apps/studio/pages/project/[ref]/settings/infrastructure/replica/[replicaId].tsx
index 4724913bcb5..1e7e3323d1b 100644
--- a/apps/studio/pages/project/[ref]/settings/infrastructure/replica/[replicaId].tsx
+++ b/apps/studio/pages/project/[ref]/settings/infrastructure/replica/[replicaId].tsx
@@ -122,7 +122,6 @@ const InfrastructureReadReplicaPage: NextPageWithLayout = () => {
]}
secondaryActions={
<ButtonTooltip
- variant="default"
className="w-7"
icon={<Trash />}
disabled={!replica}
@@ -133,7 +132,7 @@ const InfrastructureReadReplicaPage: NextPageWithLayout = () => {
/>
}
primaryActions={[
- <Button asChild key="logs" variant="default">
+ <Button asChild key="logs">
<Link
href={`/project/${ref}/logs/postgres-logs${!!identifier ? `?db=${identifier}` : ''}`}
>
@@ -142,7 +141,6 @@ const InfrastructureReadReplicaPage: NextPageWithLayout = () => {
</Button>,
<Button
key="restart"
- variant="default"
disabled={status !== 'ACTIVE_HEALTHY'}
onClick={() => setShowConfirmRestart(true)}
>
diff --git a/apps/studio/pages/project/[ref]/sql/[id].tsx b/apps/studio/pages/project/[ref]/sql/[id].tsx
index 0f1514f93f2..022e8bce088 100644
--- a/apps/studio/pages/project/[ref]/sql/[id].tsx
+++ b/apps/studio/pages/project/[ref]/sql/[id].tsx
@@ -168,7 +168,6 @@ const SqlEditor: NextPageWithLayout = () => {
>
{!!tabId ? (
<Button
- variant="default"
className="mt-2"
onClick={() => {
tabs.handleTabClose({
@@ -182,12 +181,7 @@ const SqlEditor: NextPageWithLayout = () => {
Close tab
</Button>
) : (
- <Button
- asChild
- variant="default"
- className="mt-2"
- onClick={() => setLastVisitedSnippet(undefined)}
- >
+ <Button asChild className="mt-2" onClick={() => setLastVisitedSnippet(undefined)}>
<Link href={`/project/${ref}/sql`}>Head back</Link>
</Button>
)}
diff --git a/apps/studio/state/storage-explorer.tsx b/apps/studio/state/storage-explorer.tsx
index a2c7b089308..5247b77b846 100644
--- a/apps/studio/state/storage-explorer.tsx
+++ b/apps/studio/state/storage-explorer.tsx
@@ -1788,12 +1788,7 @@ function createStorageExplorerState({
progressPrefix={`${remainingTime && !isNaN(remainingTime) && isFinite(remainingTime) && remainingTime !== 0 ? `${formatTime(remainingTime)} remaining – ` : ''}`}
action={
toastId && (
- <Button
- size="tiny"
- variant="default"
- className="ml-6"
- onClick={() => state.abortUploads(toastId)}
- >
+ <Button size="tiny" className="ml-6" onClick={() => state.abortUploads(toastId)}>
Cancel
</Button>
)
diff --git a/apps/www/_go/events/accenture-reinvention-2026/contest.tsx b/apps/www/_go/events/accenture-reinvention-2026/contest.tsx
index 72cb63100b0..a0c3b136a0a 100644
--- a/apps/www/_go/events/accenture-reinvention-2026/contest.tsx
+++ b/apps/www/_go/events/accenture-reinvention-2026/contest.tsx
@@ -79,7 +79,7 @@ const page: GoPageInput = {
Learn about Supabase AI Tools
</Link>
</Button>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link
href="https://supabase.link/accenture-reinvention-2026-slides"
target="_blank"
@@ -103,7 +103,7 @@ const page: GoPageInput = {
<li>Load data into a Supabase database</li>
<li>Complete these steps by Monday, May 4, 2026 at 12:00 PM PST</li>
</ol>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link href="https://supabase.com/dashboard">Create your account</Link>
</Button>
<p className="text-xs text-foreground-lighter mt-4">
diff --git a/apps/www/_go/events/ai-engineer-europe-2026/contest-thank-you.tsx b/apps/www/_go/events/ai-engineer-europe-2026/contest-thank-you.tsx
index 807fd1e1dbf..80b4e3df8be 100644
--- a/apps/www/_go/events/ai-engineer-europe-2026/contest-thank-you.tsx
+++ b/apps/www/_go/events/ai-engineer-europe-2026/contest-thank-you.tsx
@@ -21,7 +21,7 @@ const page: GoPageInput = {
description: "If you haven't already, create your account and start building.",
children: (
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com/dashboard">Go to dashboard</Link>
</Button>
<Button asChild variant="outline" size="small">
diff --git a/apps/www/_go/events/ai-engineer-europe-2026/contest.tsx b/apps/www/_go/events/ai-engineer-europe-2026/contest.tsx
index 7c22c7d19ff..1547ed1e7bc 100644
--- a/apps/www/_go/events/ai-engineer-europe-2026/contest.tsx
+++ b/apps/www/_go/events/ai-engineer-europe-2026/contest.tsx
@@ -57,7 +57,7 @@ const page: GoPageInput = {
</p>
<p className="text-foreground-lighter text-sm">Supabase</p>
</div>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link
href="https://supabase.link/ai-engineer-europe-2026-slides"
target="_blank"
@@ -81,7 +81,7 @@ const page: GoPageInput = {
<li>Fill out the entry form below</li>
<li>Complete these steps by the contest deadline</li>
</ol>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link href="https://supabase.com/dashboard">Create your account</Link>
</Button>
<p className="text-xs text-foreground-lighter mt-4">
diff --git a/apps/www/_go/events/dash-2026/contest.tsx b/apps/www/_go/events/dash-2026/contest.tsx
index a0a96eb2925..aded5437805 100644
--- a/apps/www/_go/events/dash-2026/contest.tsx
+++ b/apps/www/_go/events/dash-2026/contest.tsx
@@ -57,7 +57,7 @@ const page: GoPageInput = {
</p>
<p className="text-foreground-lighter text-sm">Supabase</p>
</div>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link
href="https://supabase.link/dash-2026-slides"
target="_blank"
@@ -84,7 +84,7 @@ const page: GoPageInput = {
<li>Load data into a Supabase database</li>
<li>Complete these steps by the deadline in your post-event note</li>
</ol>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link href="https://supabase.com/dashboard">Create your account</Link>
</Button>
<p className="text-xs text-foreground-lighter mt-4">
diff --git a/apps/www/_go/events/dash-2026/exec-dinner-thank-you.tsx b/apps/www/_go/events/dash-2026/exec-dinner-thank-you.tsx
index a829c6a4294..fa43f3f1de1 100644
--- a/apps/www/_go/events/dash-2026/exec-dinner-thank-you.tsx
+++ b/apps/www/_go/events/dash-2026/exec-dinner-thank-you.tsx
@@ -22,7 +22,7 @@ const page: GoPageInput = {
description: 'Learn more about what we are building at Supabase.',
children: (
<div className="flex items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com">Visit supabase.com</Link>
</Button>
</div>
diff --git a/apps/www/_go/events/mcp-dev-nyc-2026/contest-thank-you.tsx b/apps/www/_go/events/mcp-dev-nyc-2026/contest-thank-you.tsx
index e787eb8264d..3ae184c25b9 100644
--- a/apps/www/_go/events/mcp-dev-nyc-2026/contest-thank-you.tsx
+++ b/apps/www/_go/events/mcp-dev-nyc-2026/contest-thank-you.tsx
@@ -21,7 +21,7 @@ const page: GoPageInput = {
description: "If you haven't already, create your account and start building.",
children: (
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com/dashboard">Go to dashboard</Link>
</Button>
<Button asChild variant="outline" size="small">
diff --git a/apps/www/_go/events/mcp-dev-nyc-2026/contest.tsx b/apps/www/_go/events/mcp-dev-nyc-2026/contest.tsx
index 19a088ebab7..af3ee0ccc23 100644
--- a/apps/www/_go/events/mcp-dev-nyc-2026/contest.tsx
+++ b/apps/www/_go/events/mcp-dev-nyc-2026/contest.tsx
@@ -57,7 +57,7 @@ const page: GoPageInput = {
</p>
<p className="text-foreground-lighter text-sm">Supabase</p>
</div>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link
href="https://mcp-dev-summit-presentation.vercel.app/"
target="_blank"
@@ -83,7 +83,7 @@ const page: GoPageInput = {
Complete these steps by the contest deadline, Monday April 13, 2026 at 12:00 PM PDT
</li>
</ol>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link href="https://supabase.com/dashboard">Create your account</Link>
</Button>
<p className="text-xs text-foreground-lighter mt-4">
diff --git a/apps/www/_go/events/pgconf-dev-2026/contest-thank-you.tsx b/apps/www/_go/events/pgconf-dev-2026/contest-thank-you.tsx
index 34704fc957d..f5354497172 100644
--- a/apps/www/_go/events/pgconf-dev-2026/contest-thank-you.tsx
+++ b/apps/www/_go/events/pgconf-dev-2026/contest-thank-you.tsx
@@ -21,7 +21,7 @@ const page: GoPageInput = {
description: "If you haven't already, create your account and start building.",
children: (
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com/dashboard">Go to dashboard</Link>
</Button>
<Button asChild variant="outline" size="small">
diff --git a/apps/www/_go/events/pgconf-dev-2026/contest.tsx b/apps/www/_go/events/pgconf-dev-2026/contest.tsx
index aadaed5f82b..652e82e44a7 100644
--- a/apps/www/_go/events/pgconf-dev-2026/contest.tsx
+++ b/apps/www/_go/events/pgconf-dev-2026/contest.tsx
@@ -57,7 +57,7 @@ const page: GoPageInput = {
</p>
<p className="text-foreground-lighter text-sm">Supabase</p>
</div>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link
href="https://supabase.link/pgconf-dev-2026-slides"
target="_blank"
@@ -83,7 +83,7 @@ const page: GoPageInput = {
Complete these steps by the contest deadline, Monday June 1, 2026 at 12:00 PM PDT
</li>
</ol>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link href="https://supabase.com/dashboard">Create your account</Link>
</Button>
<p className="text-xs text-foreground-lighter mt-4">
diff --git a/apps/www/_go/events/postgres-summit-2026/contest-thank-you.tsx b/apps/www/_go/events/postgres-summit-2026/contest-thank-you.tsx
index f4493cc57e6..c1d81ff7309 100644
--- a/apps/www/_go/events/postgres-summit-2026/contest-thank-you.tsx
+++ b/apps/www/_go/events/postgres-summit-2026/contest-thank-you.tsx
@@ -21,7 +21,7 @@ const page: GoPageInput = {
description: "If you haven't already, create your account and start building.",
children: (
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com/dashboard">Go to dashboard</Link>
</Button>
<Button asChild variant="outline" size="small">
diff --git a/apps/www/_go/events/postgres-summit-2026/contest.tsx b/apps/www/_go/events/postgres-summit-2026/contest.tsx
index ef5baea9c55..47274a84b88 100644
--- a/apps/www/_go/events/postgres-summit-2026/contest.tsx
+++ b/apps/www/_go/events/postgres-summit-2026/contest.tsx
@@ -48,7 +48,7 @@ const page: GoPageInput = {
<p className="text-foreground-light font-medium">Brian Brennglass</p>
<p className="text-foreground-lighter text-sm">Supabase</p>
</div>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link
href="https://postgresql.us/events/postgressummitus2026/schedule/session/2406-everything-to-know-about-postgres-locks/"
target="_blank"
@@ -74,7 +74,7 @@ const page: GoPageInput = {
Complete these steps by the contest deadline, Monday October 12, 2026 at 12:00 PM PDT
</li>
</ol>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link href="https://supabase.com/dashboard">Create your account</Link>
</Button>
<p className="text-xs text-foreground-lighter mt-4">
diff --git a/apps/www/_go/events/postgresconf-sjc-2026/contest-thank-you.tsx b/apps/www/_go/events/postgresconf-sjc-2026/contest-thank-you.tsx
index 70be9d30c48..632e1b99976 100644
--- a/apps/www/_go/events/postgresconf-sjc-2026/contest-thank-you.tsx
+++ b/apps/www/_go/events/postgresconf-sjc-2026/contest-thank-you.tsx
@@ -22,7 +22,7 @@ const page: GoPageInput = {
description: "If you haven't already, create your account and start building.",
children: (
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com/dashboard">Go to dashboard</Link>
</Button>
<Button asChild variant="outline" size="small">
diff --git a/apps/www/_go/events/postgresconf-sjc-2026/contest.tsx b/apps/www/_go/events/postgresconf-sjc-2026/contest.tsx
index 671ba223c64..4fe4c326781 100644
--- a/apps/www/_go/events/postgresconf-sjc-2026/contest.tsx
+++ b/apps/www/_go/events/postgresconf-sjc-2026/contest.tsx
@@ -93,7 +93,7 @@ const page: GoPageInput = {
Watch the webinar
</Link>
</Button>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link
href="https://supabase.link/postgresconf-sjc-2026-slides"
target="_blank"
@@ -118,7 +118,7 @@ const page: GoPageInput = {
<li>Fill out the entry form below</li>
<li>Complete these steps by Monday, September 14, 2026 at 12:00 PM PST</li>
</ol>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link href="https://supabase.com/dashboard">Create your account</Link>
</Button>
<p className="text-xs text-foreground-lighter mt-4">
diff --git a/apps/www/_go/events/select-2026/partner-day-thank-you.tsx b/apps/www/_go/events/select-2026/partner-day-thank-you.tsx
index 17e4e658ebe..eab5a91ecae 100644
--- a/apps/www/_go/events/select-2026/partner-day-thank-you.tsx
+++ b/apps/www/_go/events/select-2026/partner-day-thank-you.tsx
@@ -22,7 +22,7 @@ const page: GoPageInput = {
description: 'Learn more about what we are building at Supabase.',
children: (
<div className="flex items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com">Visit supabase.com</Link>
</Button>
</div>
diff --git a/apps/www/_go/events/select-2026/vip-dinner-thank-you.tsx b/apps/www/_go/events/select-2026/vip-dinner-thank-you.tsx
index 5413edb9444..2f29e152b27 100644
--- a/apps/www/_go/events/select-2026/vip-dinner-thank-you.tsx
+++ b/apps/www/_go/events/select-2026/vip-dinner-thank-you.tsx
@@ -22,7 +22,7 @@ const page: GoPageInput = {
description: 'Learn more about what we are building at Supabase.',
children: (
<div className="flex items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com">Visit supabase.com</Link>
</Button>
</div>
diff --git a/apps/www/_go/events/select-2026/vip-experience-thank-you.tsx b/apps/www/_go/events/select-2026/vip-experience-thank-you.tsx
index 805c214082c..d0145dd5733 100644
--- a/apps/www/_go/events/select-2026/vip-experience-thank-you.tsx
+++ b/apps/www/_go/events/select-2026/vip-experience-thank-you.tsx
@@ -22,7 +22,7 @@ const page: GoPageInput = {
description: 'Learn more about what we are building at Supabase.',
children: (
<div className="flex items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com">Visit supabase.com</Link>
</Button>
</div>
diff --git a/apps/www/_go/events/startup-grind-2026/contest.tsx b/apps/www/_go/events/startup-grind-2026/contest.tsx
index 295f37f9464..01c3afabc31 100644
--- a/apps/www/_go/events/startup-grind-2026/contest.tsx
+++ b/apps/www/_go/events/startup-grind-2026/contest.tsx
@@ -44,7 +44,7 @@ const page: GoPageInput = {
<li>Load data into a Supabase database</li>
<li>Complete these steps by Monday, May 11, 2026 at 12:00 PM PST</li>
</ol>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link href="https://supabase.com/dashboard">Create your account</Link>
</Button>
<p className="text-xs text-foreground-lighter mt-4">
diff --git a/apps/www/_go/events/stripe-sessions-2026/exec-dinner-thank-you.tsx b/apps/www/_go/events/stripe-sessions-2026/exec-dinner-thank-you.tsx
index 9696f8a9714..530ddd79d9b 100644
--- a/apps/www/_go/events/stripe-sessions-2026/exec-dinner-thank-you.tsx
+++ b/apps/www/_go/events/stripe-sessions-2026/exec-dinner-thank-you.tsx
@@ -22,7 +22,7 @@ const page: GoPageInput = {
description: 'Learn more about what we are building at Supabase.',
children: (
<div className="flex items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com">Visit supabase.com</Link>
</Button>
</div>
diff --git a/apps/www/_go/events/sxsw-2026/contest.tsx b/apps/www/_go/events/sxsw-2026/contest.tsx
index 93f703e2e6b..4d18e0f0f29 100644
--- a/apps/www/_go/events/sxsw-2026/contest.tsx
+++ b/apps/www/_go/events/sxsw-2026/contest.tsx
@@ -45,7 +45,7 @@ const page: GoPageInput = {
<li>Complete these steps by Monday, March 30, 2026 at 12:00 PM PST</li>
</ol>
<div className="flex flex-col sm:flex-row items-center gap-4">
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link href="https://supabase.com/dashboard">Create your Supabase account</Link>
</Button>
<Button asChild variant="outline" size="medium">
diff --git a/apps/www/_go/events/vercel-ship-sydney-2026/contest-thank-you.tsx b/apps/www/_go/events/vercel-ship-sydney-2026/contest-thank-you.tsx
index cbf774f48a7..ebd03445927 100644
--- a/apps/www/_go/events/vercel-ship-sydney-2026/contest-thank-you.tsx
+++ b/apps/www/_go/events/vercel-ship-sydney-2026/contest-thank-you.tsx
@@ -21,7 +21,7 @@ const page: GoPageInput = {
description: "If you haven't already, create your account and start building.",
children: (
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com/dashboard">Go to dashboard</Link>
</Button>
<Button asChild variant="outline" size="small">
diff --git a/apps/www/_go/events/vercel-ship-sydney-2026/contest.tsx b/apps/www/_go/events/vercel-ship-sydney-2026/contest.tsx
index bb403eb2a5b..f3ed1a4b347 100644
--- a/apps/www/_go/events/vercel-ship-sydney-2026/contest.tsx
+++ b/apps/www/_go/events/vercel-ship-sydney-2026/contest.tsx
@@ -42,7 +42,7 @@ const page: GoPageInput = {
<li>Fill out the entry form below</li>
<li>Complete these steps by the contest deadline</li>
</ol>
- <Button asChild variant="default" size="medium">
+ <Button asChild size="medium">
<Link href="https://supabase.com/dashboard">Create your account</Link>
</Button>
<p className="text-xs text-foreground-lighter mt-4">
diff --git a/apps/www/_go/thank-you/example-thank-you.tsx b/apps/www/_go/thank-you/example-thank-you.tsx
index 58df5e564b6..80641077db9 100644
--- a/apps/www/_go/thank-you/example-thank-you.tsx
+++ b/apps/www/_go/thank-you/example-thank-you.tsx
@@ -21,7 +21,7 @@ const page: GoPageInput = {
'Explore our documentation and tutorials to get started with Supabase right away.',
children: (
<div className="flex items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com/docs">Read the docs</Link>
</Button>
<Button asChild variant="text" size="small">
diff --git a/apps/www/_go/webinar/agency-webinar-mar2026-thankyou.tsx b/apps/www/_go/webinar/agency-webinar-mar2026-thankyou.tsx
index 60f1c88bc6a..d5c8b91727c 100644
--- a/apps/www/_go/webinar/agency-webinar-mar2026-thankyou.tsx
+++ b/apps/www/_go/webinar/agency-webinar-mar2026-thankyou.tsx
@@ -21,7 +21,7 @@ const page: GoPageInput = {
'Explore Supabase and get ready to build production-ready applications with AI coding tools.',
children: (
<div className="flex items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com/docs">Read the docs</Link>
</Button>
<Button asChild variant="text" size="small">
diff --git a/apps/www/_go/webinar/bolt-webinar-thank-you.tsx b/apps/www/_go/webinar/bolt-webinar-thank-you.tsx
index d58fe053b77..88a4369adbc 100644
--- a/apps/www/_go/webinar/bolt-webinar-thank-you.tsx
+++ b/apps/www/_go/webinar/bolt-webinar-thank-you.tsx
@@ -20,7 +20,7 @@ const page: GoPageInput = {
description: 'Explore Supabase and get ready to build with AI-assisted development.',
children: (
<div className="flex items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com/docs">Read the docs</Link>
</Button>
<Button asChild variant="text" size="small">
diff --git a/apps/www/_go/webinar/figma-webinar-may2026-thankyou.tsx b/apps/www/_go/webinar/figma-webinar-may2026-thankyou.tsx
index 9b6b44b7bd2..310700cf987 100644
--- a/apps/www/_go/webinar/figma-webinar-may2026-thankyou.tsx
+++ b/apps/www/_go/webinar/figma-webinar-may2026-thankyou.tsx
@@ -21,7 +21,7 @@ const page: GoPageInput = {
'Explore Supabase and get ready to build production-ready applications with Figma Make.',
children: (
<div className="flex items-center justify-center gap-4">
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://supabase.com/docs">Read the docs</Link>
</Button>
<Button asChild variant="text" size="small">
diff --git a/apps/www/app/(home)/_components/CTASection.tsx b/apps/www/app/(home)/_components/CTASection.tsx
index 1e15823b1e5..1423c100f41 100644
--- a/apps/www/app/(home)/_components/CTASection.tsx
+++ b/apps/www/app/(home)/_components/CTASection.tsx
@@ -32,7 +32,7 @@ export function CTASection() {
Start your project
</Link>
</Button>
- <Button asChild size="medium" variant="default">
+ <Button asChild size="medium">
<Link
href="/contact/sales"
onClick={() =>
diff --git a/apps/www/app/(home)/_components/CommunitySectionV2.tsx b/apps/www/app/(home)/_components/CommunitySectionV2.tsx
index 8aacba3f67c..8f86731d8e7 100644
--- a/apps/www/app/(home)/_components/CommunitySectionV2.tsx
+++ b/apps/www/app/(home)/_components/CommunitySectionV2.tsx
@@ -47,7 +47,7 @@ export function CommunitySectionV2() {
<p className="text-foreground-lighter text-center">
Discover what our community has to say about their Supabase experience.
</p>
- <Button asChild variant="default" size="small" className="mt-2">
+ <Button asChild size="small" className="mt-2">
<Link href="https://discord.supabase.com/" target="_blank" rel="noopener noreferrer">
Join us on Discord
</Link>
diff --git a/apps/www/app/(home)/_components/Hero.tsx b/apps/www/app/(home)/_components/Hero.tsx
index c2ee0898b68..bce7a78f7de 100644
--- a/apps/www/app/(home)/_components/Hero.tsx
+++ b/apps/www/app/(home)/_components/Hero.tsx
@@ -39,7 +39,7 @@ export function Hero() {
Start your project
</Link>
</Button>
- <Button asChild size="medium" variant="default">
+ <Button asChild size="medium">
<Link
href="/contact/sales"
onClick={() =>
diff --git a/apps/www/app/(home)/_components/OpenSourceSection.tsx b/apps/www/app/(home)/_components/OpenSourceSection.tsx
index 7abf14f5b99..e5047b2a673 100644
--- a/apps/www/app/(home)/_components/OpenSourceSection.tsx
+++ b/apps/www/app/(home)/_components/OpenSourceSection.tsx
@@ -170,7 +170,6 @@ export function OpenSourceSection() {
<Button
asChild
size="small"
- variant="default"
icon={
<svg viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
diff --git a/apps/www/app/(products)/auth/_components/Hero.tsx b/apps/www/app/(products)/auth/_components/Hero.tsx
index 3d99c400e12..ccd37f2cb40 100644
--- a/apps/www/app/(products)/auth/_components/Hero.tsx
+++ b/apps/www/app/(products)/auth/_components/Hero.tsx
@@ -20,7 +20,7 @@ export function Hero() {
</div>
<div className="flex items-center gap-2">
<StartYourProjectButton />
- <Button asChild size="medium" variant="default">
+ <Button asChild size="medium">
<Link href="/docs/guides/auth">Documentation</Link>
</Button>
</div>
diff --git a/apps/www/app/(products)/auth/_components/HighlightsSection.tsx b/apps/www/app/(products)/auth/_components/HighlightsSection.tsx
index 78e062e23f0..4e379c3d424 100644
--- a/apps/www/app/(products)/auth/_components/HighlightsSection.tsx
+++ b/apps/www/app/(products)/auth/_components/HighlightsSection.tsx
@@ -64,7 +64,7 @@ export function HighlightsSection() {
</ul>
</div>
<div className="mt-6">
- <Button variant="default" size="small" asChild>
+ <Button size="small" asChild>
<Link href={highlight.cta.href}>{highlight.cta.label}</Link>
</Button>
</div>
diff --git a/apps/www/app/(products)/database/_components/Hero.tsx b/apps/www/app/(products)/database/_components/Hero.tsx
index 778c147e7f9..0854c325efa 100644
--- a/apps/www/app/(products)/database/_components/Hero.tsx
+++ b/apps/www/app/(products)/database/_components/Hero.tsx
@@ -20,7 +20,7 @@ export function Hero() {
</div>
<div className="flex items-center gap-2">
<StartYourProjectButton />
- <Button asChild size="medium" variant="default">
+ <Button asChild size="medium">
<Link href="/docs/guides/database/overview">Documentation</Link>
</Button>
</div>
diff --git a/apps/www/app/(products)/database/_components/HighlightsSection.tsx b/apps/www/app/(products)/database/_components/HighlightsSection.tsx
index a64273bd9ad..481acf1c5d2 100644
--- a/apps/www/app/(products)/database/_components/HighlightsSection.tsx
+++ b/apps/www/app/(products)/database/_components/HighlightsSection.tsx
@@ -74,7 +74,7 @@ export function HighlightsSection() {
</ul>
</div>
<div className="mt-6">
- <Button variant="default" size="small" asChild>
+ <Button size="small" asChild>
<Link href={highlight.cta.href}>{highlight.cta.label}</Link>
</Button>
</div>
diff --git a/apps/www/app/(products)/edge-functions/_components/CTASection.tsx b/apps/www/app/(products)/edge-functions/_components/CTASection.tsx
index af5f4df924a..c1b921f5f39 100644
--- a/apps/www/app/(products)/edge-functions/_components/CTASection.tsx
+++ b/apps/www/app/(products)/edge-functions/_components/CTASection.tsx
@@ -83,7 +83,7 @@ export function CTASection() {
<div className="flex items-center gap-2">
<StartYourProjectButton />
- <Button asChild size="medium" variant="default">
+ <Button asChild size="medium">
<Link href="/docs/guides/functions/quickstart">Quickstart guide</Link>
</Button>
</div>
diff --git a/apps/www/app/(products)/edge-functions/_components/Hero.tsx b/apps/www/app/(products)/edge-functions/_components/Hero.tsx
index a5973d1d731..57665fcfc2e 100644
--- a/apps/www/app/(products)/edge-functions/_components/Hero.tsx
+++ b/apps/www/app/(products)/edge-functions/_components/Hero.tsx
@@ -21,7 +21,7 @@ export function Hero() {
</div>
<div className="flex items-center gap-2">
<StartYourProjectButton />
- <Button asChild size="medium" variant="default">
+ <Button asChild size="medium">
<Link href="/docs/guides/functions">Documentation</Link>
</Button>
</div>
diff --git a/apps/www/app/(products)/realtime/_components/Hero.tsx b/apps/www/app/(products)/realtime/_components/Hero.tsx
index 121d517500b..7dd04c79cd3 100644
--- a/apps/www/app/(products)/realtime/_components/Hero.tsx
+++ b/apps/www/app/(products)/realtime/_components/Hero.tsx
@@ -20,7 +20,7 @@ export function Hero() {
</div>
<div className="flex items-center gap-2">
<StartYourProjectButton />
- <Button asChild size="medium" variant="default">
+ <Button asChild size="medium">
<Link href="/docs/guides/realtime">Documentation</Link>
</Button>
</div>
diff --git a/apps/www/app/(products)/storage/_components/BucketTypesSection.tsx b/apps/www/app/(products)/storage/_components/BucketTypesSection.tsx
index 5587e5e30f1..24ee0e94747 100644
--- a/apps/www/app/(products)/storage/_components/BucketTypesSection.tsx
+++ b/apps/www/app/(products)/storage/_components/BucketTypesSection.tsx
@@ -64,7 +64,7 @@ export function BucketTypesSection() {
</ul>
</div>
<div className="mt-6">
- <Button variant="default" size="small" asChild>
+ <Button size="small" asChild>
<Link href={bucket.cta.href}>{bucket.cta.label}</Link>
</Button>
</div>
diff --git a/apps/www/app/(products)/storage/_components/Hero.tsx b/apps/www/app/(products)/storage/_components/Hero.tsx
index d6147591b13..4e6d340841e 100644
--- a/apps/www/app/(products)/storage/_components/Hero.tsx
+++ b/apps/www/app/(products)/storage/_components/Hero.tsx
@@ -20,7 +20,7 @@ export function Hero() {
</div>
<div className="flex items-center gap-2">
<StartYourProjectButton />
- <Button asChild size="medium" variant="default">
+ <Button asChild size="medium">
<Link href="/docs/guides/storage">Documentation</Link>
</Button>
</div>
diff --git a/apps/www/app/partners/catalog/IntegrationsContent.tsx b/apps/www/app/partners/catalog/IntegrationsContent.tsx
index 6b4b18cb67e..f5779132da5 100644
--- a/apps/www/app/partners/catalog/IntegrationsContent.tsx
+++ b/apps/www/app/partners/catalog/IntegrationsContent.tsx
@@ -237,7 +237,7 @@ export default function IntegrationsContent({
{/* Mobile-only: opens bottom sheet with filters */}
<Sheet>
<SheetTrigger asChild>
- <Button variant="default" size="small" className="shrink-0 md:hidden flex">
+ <Button size="small" className="shrink-0 md:hidden flex">
<div className="flex gap-1.5 items-center text-foreground-lighter hover:text-foreground">
<Filter size={14} />
{activeFilterCount > 0 && (
diff --git a/apps/www/app/pricing/PricingContent.tsx b/apps/www/app/pricing/PricingContent.tsx
index a69bcb8d69e..2256f2e8c35 100644
--- a/apps/www/app/pricing/PricingContent.tsx
+++ b/apps/www/app/pricing/PricingContent.tsx
@@ -47,12 +47,7 @@ export default function PricingContent() {
Compare Plans
</Button>
</a>
- <Button
- size="tiny"
- variant="default"
- asChild
- iconRight={<ArrowUpRight className="w-4" />}
- >
+ <Button size="tiny" asChild iconRight={<ArrowUpRight className="w-4" />}>
<a
href="/docs/guides/platform/billing-on-supabase#organization-based-billing"
target="_blank"
diff --git a/apps/www/app/state-of-startups/StateOfStartups2026Content.tsx b/apps/www/app/state-of-startups/StateOfStartups2026Content.tsx
index 4f1f21b7798..6c88ce226c6 100644
--- a/apps/www/app/state-of-startups/StateOfStartups2026Content.tsx
+++ b/apps/www/app/state-of-startups/StateOfStartups2026Content.tsx
@@ -314,7 +314,7 @@ const CTABanner = forwardRef<HTMLElement>((props, ref) => {
Start your project
</Link>
</Button>
- <Button asChild size="medium" variant="default">
+ <Button asChild size="medium">
<Link
href="/contact/sales"
onClick={() =>
diff --git a/apps/www/app/state-of-startups/components/SurveyChart.tsx b/apps/www/app/state-of-startups/components/SurveyChart.tsx
index adc3063053e..0ee76f6b201 100644
--- a/apps/www/app/state-of-startups/components/SurveyChart.tsx
+++ b/apps/www/app/state-of-startups/components/SurveyChart.tsx
@@ -151,12 +151,7 @@ export function SurveyChart({
{view === 'chart' && !isExpanded && chartData.length > 3 && (
<div className="absolute bottom-0 left-0 right-0 flex items-center justify-center py-4 bg-linear-to-b from-transparent to-background">
- <Button
- variant="default"
- size="tiny"
- onClick={() => setIsExpanded(true)}
- className="shadow-xs"
- >
+ <Button size="tiny" onClick={() => setIsExpanded(true)} className="shadow-xs">
Show more
</Button>
</div>
diff --git a/apps/www/components/Blog/BlogFilters.tsx b/apps/www/components/Blog/BlogFilters.tsx
index 0941f3e0486..c330e5cbc7b 100644
--- a/apps/www/components/Blog/BlogFilters.tsx
+++ b/apps/www/components/Blog/BlogFilters.tsx
@@ -193,7 +193,6 @@ function BlogFilters({ view, setView, onFilterChange, onSearch }: Props) {
<Button
className="px-2 h-full"
size="medium"
- variant="default"
aria-label="Search posts"
onClick={() => setShowSearchInput(true)}
>
diff --git a/apps/www/components/BuiltWithSupabase/index.tsx b/apps/www/components/BuiltWithSupabase/index.tsx
index a420ec38104..768e7d484c3 100644
--- a/apps/www/components/BuiltWithSupabase/index.tsx
+++ b/apps/www/components/BuiltWithSupabase/index.tsx
@@ -16,12 +16,11 @@ const BuiltWithSupabase = () => {
Kickstart your next project with templates built by us and our community.
</p>
<div className="flex justify-center gap-2 py-4">
- <Button asChild variant="default" size="small" className="h-full">
+ <Button asChild size="small" className="h-full">
<Link href="/docs/guides/examples">View all examples</Link>
</Button>
<Button
asChild
- variant="default"
icon={<IconGitHubSolid size="tiny" className="w-full! h-full!" />}
size="small"
>
diff --git a/apps/www/components/CTABanner/index.tsx b/apps/www/components/CTABanner/index.tsx
index e1ade8f0e3b..5434aa39f1b 100644
--- a/apps/www/components/CTABanner/index.tsx
+++ b/apps/www/components/CTABanner/index.tsx
@@ -43,7 +43,7 @@ const CTABanner = ({ darkerBg, className }: Props) => {
Start your project
</Link>
</Button>
- <Button asChild size="medium" variant="default">
+ <Button asChild size="medium">
<Link
href="/contact/sales"
onClick={() =>
diff --git a/apps/www/components/CTASection.tsx b/apps/www/components/CTASection.tsx
index 1e15823b1e5..1423c100f41 100644
--- a/apps/www/components/CTASection.tsx
+++ b/apps/www/components/CTASection.tsx
@@ -32,7 +32,7 @@ export function CTASection() {
Start your project
</Link>
</Button>
- <Button asChild size="medium" variant="default">
+ <Button asChild size="medium">
<Link
href="/contact/sales"
onClick={() =>
diff --git a/apps/www/components/Changelog/ChangelogLlmMarkdownButton.tsx b/apps/www/components/Changelog/ChangelogLlmMarkdownButton.tsx
index bdb99914951..6df76c0d019 100644
--- a/apps/www/components/Changelog/ChangelogLlmMarkdownButton.tsx
+++ b/apps/www/components/Changelog/ChangelogLlmMarkdownButton.tsx
@@ -39,7 +39,6 @@ export function ChangelogLlmMarkdownButton({ className, markdownPath = '/changel
return (
<div className={cn('flex items-center', className)}>
<Button
- variant="default"
className="rounded-r-none hover:z-10 focus-visible:z-10 focus-visible:rounded-r-sm"
icon={
copied ? (
@@ -59,7 +58,6 @@ export function ChangelogLlmMarkdownButton({ className, markdownPath = '/changel
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
icon={<ChevronDown className="h-4 w-4" strokeWidth={2} aria-hidden />}
aria-label="Open LLM options for this changelog page"
diff --git a/apps/www/components/Contribute/RepliesList.tsx b/apps/www/components/Contribute/RepliesList.tsx
index ba4e7b3ca3a..2421813055d 100644
--- a/apps/www/components/Contribute/RepliesList.tsx
+++ b/apps/www/components/Contribute/RepliesList.tsx
@@ -88,12 +88,7 @@ export function RepliesList({ replies, questionAuthor, totalReplyCount }: Replie
</CardContent>
{hasMoreThanThree && (
<CardFooter className="flex justify-center">
- <Button
- variant="default"
- size="tiny"
- onClick={() => setIsExpanded(!isExpanded)}
- className="w-min"
- >
+ <Button size="tiny" onClick={() => setIsExpanded(!isExpanded)} className="w-min">
{isExpanded
? 'Show fewer replies'
: `Show ${replies.length - 3} more ${replies.length - 3 === 1 ? 'reply' : 'replies'}`}
diff --git a/apps/www/components/Contribute/UnansweredThreadsTable.tsx b/apps/www/components/Contribute/UnansweredThreadsTable.tsx
index 74ce6882af7..4cf05f0954e 100644
--- a/apps/www/components/Contribute/UnansweredThreadsTable.tsx
+++ b/apps/www/components/Contribute/UnansweredThreadsTable.tsx
@@ -322,7 +322,7 @@ export function UnansweredThreadsTable({
allProductAreas={allProductAreas}
allStacks={allStacks}
trigger={
- <Button variant="default" icon={<Filter size={12} />}>
+ <Button icon={<Filter size={12} />}>
<span className="flex items-center gap-2">
Filters
{activeFilterCount > 0 && (
@@ -340,7 +340,6 @@ export function UnansweredThreadsTable({
{hasMore && (
<div className="flex justify-center mt-4">
<Button
- variant="default"
size="tiny"
onClick={handleLoadMore}
loading={isLoadingMore}
diff --git a/apps/www/components/Contribute/UserProfile.tsx b/apps/www/components/Contribute/UserProfile.tsx
index b72717c74d3..6eb78db8069 100644
--- a/apps/www/components/Contribute/UserProfile.tsx
+++ b/apps/www/components/Contribute/UserProfile.tsx
@@ -1,9 +1,9 @@
-import Link from 'next/link'
-import { notFound } from 'next/navigation'
-import { Badge, Button } from 'ui'
import { DiscordIcon, GitHubIcon, RedditIcon } from '~/components/Contribute/Icons'
import { getUserActivity } from '~/data/contribute'
import type { ThreadRow } from '~/types/contribute'
+import Link from 'next/link'
+import { notFound } from 'next/navigation'
+import { Badge, Button } from 'ui'
function ThreadCard({ thread }: { thread: ThreadRow }) {
return (
@@ -77,7 +77,7 @@ function ReplyCard({ reply, thread }: { reply: Reply; thread?: ThreadRow }) {
</span>
)}
{reply.external_activity_url && (
- <Button asChild variant="default" size="tiny">
+ <Button asChild size="tiny">
<a
href={reply.external_activity_url}
target="_blank"
diff --git a/apps/www/components/CustomerStories/index.tsx b/apps/www/components/CustomerStories/index.tsx
index a5000a9a5d3..b0bf73ecc04 100644
--- a/apps/www/components/CustomerStories/index.tsx
+++ b/apps/www/components/CustomerStories/index.tsx
@@ -31,7 +31,7 @@ const CustomerStories = () => (
<Button asChild>
<Link href="/customers">View all stories</Link>
</Button>
- <Button asChild variant="default">
+ <Button asChild>
<Link href="/events">View events</Link>
</Button>
</div>
diff --git a/apps/www/components/Events/EventsFilters.tsx b/apps/www/components/Events/EventsFilters.tsx
index 9f4a368f7bc..fb852432e89 100644
--- a/apps/www/components/Events/EventsFilters.tsx
+++ b/apps/www/components/Events/EventsFilters.tsx
@@ -237,12 +237,7 @@ function EventFilters({ allEvents, setEvents, categories, onDemandEvents }: Prop
animate={{ opacity: 1 }}
exit={{ opacity: 0, transition: { duration: 0.05 } }}
>
- <Button
- className="px-2 w-9 h-9"
- size="large"
- variant="default"
- onClick={() => setShowSearchInput(true)}
- >
+ <Button className="px-2 w-9 h-9" size="large" onClick={() => setShowSearchInput(true)}>
<Search size="14" />
</Button>
</motion.div>
diff --git a/apps/www/components/Examples/ExamplesCarousel.tsx b/apps/www/components/Examples/ExamplesCarousel.tsx
index 4ded7ff0d56..187d082df20 100644
--- a/apps/www/components/Examples/ExamplesCarousel.tsx
+++ b/apps/www/components/Examples/ExamplesCarousel.tsx
@@ -31,7 +31,7 @@ const ExamplesCarousel = ({
<div className="w-full flex flex-col lg:flex-row justify-between items-start lg:items-end gap-4">
<h3 className="h2 mb-0!">{title}</h3>
{cta && (
- <Button asChild variant="default" size="tiny">
+ <Button asChild size="tiny">
<Link href={cta.href}>{cta.label}</Link>
</Button>
)}
diff --git a/apps/www/components/LaunchWeek/11/Releases/PrizeActions.tsx b/apps/www/components/LaunchWeek/11/Releases/PrizeActions.tsx
index c14a785daa3..a51de086f38 100644
--- a/apps/www/components/LaunchWeek/11/Releases/PrizeActions.tsx
+++ b/apps/www/components/LaunchWeek/11/Releases/PrizeActions.tsx
@@ -7,7 +7,7 @@ export default function PrizeActions() {
<Button onClick={() => null} variant="secondary" size="tiny" asChild>
<Link href="/ga-week#ticket">Claim your ticket</Link>
</Button>
- <Button onClick={() => null} variant="default" size="tiny">
+ <Button onClick={() => null} size="tiny">
<Link href="/blog/supabase-oss-hackathon">Join Hackathon</Link>
</Button>
</div>
diff --git a/apps/www/components/LaunchWeek/12/Releases/PrizeActions.tsx b/apps/www/components/LaunchWeek/12/Releases/PrizeActions.tsx
index c14a785daa3..a51de086f38 100644
--- a/apps/www/components/LaunchWeek/12/Releases/PrizeActions.tsx
+++ b/apps/www/components/LaunchWeek/12/Releases/PrizeActions.tsx
@@ -7,7 +7,7 @@ export default function PrizeActions() {
<Button onClick={() => null} variant="secondary" size="tiny" asChild>
<Link href="/ga-week#ticket">Claim your ticket</Link>
</Button>
- <Button onClick={() => null} variant="default" size="tiny">
+ <Button onClick={() => null} size="tiny">
<Link href="/blog/supabase-oss-hackathon">Join Hackathon</Link>
</Button>
</div>
diff --git a/apps/www/components/LaunchWeek/13/Releases/PrizeActions.tsx b/apps/www/components/LaunchWeek/13/Releases/PrizeActions.tsx
index c14a785daa3..a51de086f38 100644
--- a/apps/www/components/LaunchWeek/13/Releases/PrizeActions.tsx
+++ b/apps/www/components/LaunchWeek/13/Releases/PrizeActions.tsx
@@ -7,7 +7,7 @@ export default function PrizeActions() {
<Button onClick={() => null} variant="secondary" size="tiny" asChild>
<Link href="/ga-week#ticket">Claim your ticket</Link>
</Button>
- <Button onClick={() => null} variant="default" size="tiny">
+ <Button onClick={() => null} size="tiny">
<Link href="/blog/supabase-oss-hackathon">Join Hackathon</Link>
</Button>
</div>
diff --git a/apps/www/components/LaunchWeek/5/ScheduleInfo.tsx b/apps/www/components/LaunchWeek/5/ScheduleInfo.tsx
index abaa3149ea0..163f1c6d6a8 100644
--- a/apps/www/components/LaunchWeek/5/ScheduleInfo.tsx
+++ b/apps/www/components/LaunchWeek/5/ScheduleInfo.tsx
@@ -1,5 +1,5 @@
-import { Button } from 'ui'
import Link from 'next/link'
+import { Button } from 'ui'
export function ScheduleInfo() {
return (
@@ -22,7 +22,7 @@ export function ScheduleInfo() {
</p>
</div>
<div className="px-10">
- <Button asChild variant="default">
+ <Button asChild>
<Link href="/launch-week-register">Get a ticket</Link>
</Button>
</div>
diff --git a/apps/www/components/Nav/MobileMenu.tsx b/apps/www/components/Nav/MobileMenu.tsx
index a5c2c842a70..6350a133a51 100644
--- a/apps/www/components/Nav/MobileMenu.tsx
+++ b/apps/www/components/Nav/MobileMenu.tsx
@@ -275,7 +275,7 @@ export const MobileMenu = ({ open, setOpen, menu }: Props) => {
})
}
>
- <Button block variant="default" asChild>
+ <Button block asChild>
<a type={undefined} className="h-10 py-4">
Sign in
</a>
diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsx
index d2051647a65..5525081ffbd 100644
--- a/apps/www/components/Nav/index.tsx
+++ b/apps/www/components/Nav/index.tsx
@@ -167,7 +167,7 @@ const Nav = ({ hideNavbar, stickyNavbar = true }: Props) => {
</>
) : (
<>
- <Button variant="default" className="hidden lg:block" asChild>
+ <Button className="hidden lg:block" asChild>
<Link
href="https://supabase.com/dashboard"
onClick={() =>
diff --git a/apps/www/components/Pricing/PricingAddons.tsx b/apps/www/components/Pricing/PricingAddons.tsx
index 339c65fb027..e95472af019 100644
--- a/apps/www/components/Pricing/PricingAddons.tsx
+++ b/apps/www/components/Pricing/PricingAddons.tsx
@@ -96,12 +96,7 @@ const AddonCard = ({ addon }: any) => {
</p>
</div>
<div className="flex items-center gap-4 mt-4">
- <Button
- asChild
- size="tiny"
- variant="default"
- iconRight={<ArrowUpRight className="w-4 h-4" />}
- >
+ <Button asChild size="tiny" iconRight={<ArrowUpRight className="w-4 h-4" />}>
<Link href={addon.ctaLink} target={addon.ctaTarget}>
{addon.ctaText}
</Link>
diff --git a/apps/www/components/Pricing/PricingComputeSection.tsx b/apps/www/components/Pricing/PricingComputeSection.tsx
index 1d3ff037f7f..9a1ec88d130 100644
--- a/apps/www/components/Pricing/PricingComputeSection.tsx
+++ b/apps/www/components/Pricing/PricingComputeSection.tsx
@@ -128,7 +128,7 @@ const PricingComputeSection = () => {
</h3>
</div>
- <Button asChild size="tiny" variant="default">
+ <Button asChild size="tiny">
<Link href="https://supabase.com/docs/guides/platform/compute-add-ons">
Learn about Compute add-ons
</Link>
diff --git a/apps/www/components/Pricing/PricingDiskSection.tsx b/apps/www/components/Pricing/PricingDiskSection.tsx
index a62f563fd33..1cabb993f40 100644
--- a/apps/www/components/Pricing/PricingDiskSection.tsx
+++ b/apps/www/components/Pricing/PricingDiskSection.tsx
@@ -1,7 +1,8 @@
+import { ArrowUpRight } from 'lucide-react'
+import Link from 'next/link'
import { Button } from 'ui'
+
import Panel from '../Panel'
-import Link from 'next/link'
-import { ArrowUpRight } from 'lucide-react'
const diskTypes = [
{
@@ -101,7 +102,7 @@ const PricingDiskSection = () => (
</div>
</Panel>
<div className="mt-8 flex justify-center">
- <Button asChild size="tiny" variant="default" iconRight={<ArrowUpRight className="w-4" />}>
+ <Button asChild size="tiny" iconRight={<ArrowUpRight className="w-4" />}>
<Link href="https://supabase.com/docs/guides/platform/compute-and-disk#disk">
Learn about advanced disk config
</Link>
diff --git a/apps/www/components/Pricing/UpgradePlan.tsx b/apps/www/components/Pricing/UpgradePlan.tsx
index 103e15894b5..ca464d068c6 100644
--- a/apps/www/components/Pricing/UpgradePlan.tsx
+++ b/apps/www/components/Pricing/UpgradePlan.tsx
@@ -60,7 +60,6 @@ const UpgradePlan = ({ organizations = [], onClick, size = 'large', planId }: Up
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button
- variant="default"
role="combobox"
size={'small'}
aria-expanded={open}
diff --git a/apps/www/components/Sections/APISection.tsx b/apps/www/components/Sections/APISection.tsx
index 273fb92070d..8cc7c9c20bd 100644
--- a/apps/www/components/Sections/APISection.tsx
+++ b/apps/www/components/Sections/APISection.tsx
@@ -44,7 +44,7 @@ function APISection(props: Props) {
<h2 className="h2">{props.title}</h2>
<div className="p">{props.text}</div>
{props.documentation_link && (
- <Button asChild size="small" className="mt-4" variant="default" icon={<ArrowUpRight />}>
+ <Button asChild size="small" className="mt-4" icon={<ArrowUpRight />}>
<Link href={props.documentation_link} as={props.documentation_link}>
{props.ctaLabel ? props.ctaLabel : 'Explore documentation'}
</Link>
diff --git a/apps/www/components/Sections/FeaturesSection.tsx b/apps/www/components/Sections/FeaturesSection.tsx
index d3e5b7a6896..7951da6102e 100644
--- a/apps/www/components/Sections/FeaturesSection.tsx
+++ b/apps/www/components/Sections/FeaturesSection.tsx
@@ -50,7 +50,7 @@ const FeaturesSection = ({
</h2>
<p className="text-lighter mb-4">{paragraph}</p>
{cta && (
- <Button asChild variant="default" size="small" icon={<ArrowUpRight />}>
+ <Button asChild size="small" icon={<ArrowUpRight />}>
<Link href={cta.link}>{cta.label ?? 'Explore documentation'}</Link>
</Button>
)}
diff --git a/apps/www/components/Sections/FunctionsUsecases.tsx b/apps/www/components/Sections/FunctionsUsecases.tsx
index 57e48e518ae..ae03290e84b 100644
--- a/apps/www/components/Sections/FunctionsUsecases.tsx
+++ b/apps/www/components/Sections/FunctionsUsecases.tsx
@@ -80,7 +80,7 @@ function FunctionsUsecases(props: Props) {
)
})}
{props.documentation_link && (
- <Button asChild size="small" className="mt-4" variant="default" icon={<ArrowUpRight />}>
+ <Button asChild size="small" className="mt-4" icon={<ArrowUpRight />}>
<Link href={props.documentation_link} as={props.documentation_link}>
Explore documentation
</Link>
diff --git a/apps/www/components/Sections/GithubExamples.tsx b/apps/www/components/Sections/GithubExamples.tsx
index 998d5a2b7f7..58eaed6dabb 100644
--- a/apps/www/components/Sections/GithubExamples.tsx
+++ b/apps/www/components/Sections/GithubExamples.tsx
@@ -26,10 +26,10 @@ function GithubExamples() {
Supported by a network of early advocates, contributors, and champions.
</p>
<div className="flex items-center justify-center gap-2 py-4">
- <Button asChild size="small" variant="default" icon={<BookOpen size={12} />}>
+ <Button asChild size="small" icon={<BookOpen size={12} />}>
<Link href="/docs/guides/resources/examples">View guides</Link>
</Button>
- <Button asChild size="small" variant="default" icon={<Github size={12} />}>
+ <Button asChild size="small" icon={<Github size={12} />}>
<Link
href="https://github.com/supabase/supabase/tree/master/examples"
as="https://github.com/supabase/supabase/tree/master/examples"
diff --git a/apps/www/components/Sections/ParagraphSection.tsx b/apps/www/components/Sections/ParagraphSection.tsx
index 882fd1a66fd..3d0e5e1c025 100644
--- a/apps/www/components/Sections/ParagraphSection.tsx
+++ b/apps/www/components/Sections/ParagraphSection.tsx
@@ -41,7 +41,7 @@ const FeaturesSection = ({
</h2>
<p className="text-lighter mb-4 font-mono">{paragraph}</p>
{cta && (
- <Button asChild variant="default" size="small" icon={<ArrowUpRight />}>
+ <Button asChild size="small" icon={<ArrowUpRight />}>
<Link href={cta.link}>{cta.label ?? 'Explore documentation'}</Link>
</Button>
)}
diff --git a/apps/www/components/Sections/ProductHeader.tsx b/apps/www/components/Sections/ProductHeader.tsx
index 32618266e48..9ccce0c8b6e 100644
--- a/apps/www/components/Sections/ProductHeader.tsx
+++ b/apps/www/components/Sections/ProductHeader.tsx
@@ -67,7 +67,7 @@ const ProductHeader = (props: Types) => {
</Link>
</Button>
{props.documentation_url && (
- <Button asChild variant="default" size="medium" icon={<BookOpen />}>
+ <Button asChild size="medium" icon={<BookOpen />}>
<Link
href={props.documentation_url}
as={props.documentation_url}
diff --git a/apps/www/components/Sections/ProductHeaderCentered.tsx b/apps/www/components/Sections/ProductHeaderCentered.tsx
index 61b69b84ebf..56aab49f078 100644
--- a/apps/www/components/Sections/ProductHeaderCentered.tsx
+++ b/apps/www/components/Sections/ProductHeaderCentered.tsx
@@ -88,14 +88,14 @@ const ProductHeaderCentered = (props: Types) => (
</Button>
)}
{props.video && (
- <Button variant="default" size="medium" icon={<PlayCircle />} asChild>
+ <Button size="medium" icon={<PlayCircle />} asChild>
<Link href={props.video} as={props.video}>
Watch video
</Link>
</Button>
)}
{props.secondaryCta && (
- <Button variant="default" size="medium" iconRight={props.secondaryCta.icon} asChild>
+ <Button size="medium" iconRight={props.secondaryCta.icon} asChild>
<Link href={props.secondaryCta.link} as={props.secondaryCta.link}>
{props.secondaryCta.label}
</Link>
diff --git a/apps/www/components/Sections/ProductModulesHeader.tsx b/apps/www/components/Sections/ProductModulesHeader.tsx
index bde6d07f9cf..43da166e737 100644
--- a/apps/www/components/Sections/ProductModulesHeader.tsx
+++ b/apps/www/components/Sections/ProductModulesHeader.tsx
@@ -110,14 +110,14 @@ const ProductModulesHeader = (props: Types) => (
</Button>
)}
{props.video && (
- <Button variant="default" size="small" icon={<PlayCircle />} asChild>
+ <Button size="small" icon={<PlayCircle />} asChild>
<Link href={props.video} as={props.video}>
Watch video
</Link>
</Button>
)}
{props.secondaryCta && (
- <Button variant="default" size="small" asChild>
+ <Button size="small" asChild>
<Link href={props.secondaryCta.link} as={props.secondaryCta.link}>
{props.secondaryCta.label}
</Link>
diff --git a/apps/www/components/Sections/ProductsCta2.tsx b/apps/www/components/Sections/ProductsCta2.tsx
index dc85a0aa3e9..c8528fe2210 100644
--- a/apps/www/components/Sections/ProductsCta2.tsx
+++ b/apps/www/components/Sections/ProductsCta2.tsx
@@ -31,7 +31,7 @@ function ProductsCta(props: Props) {
<StartYourProjectButton size="small" className="h-full" variant="primary">
Start for free
</StartYourProjectButton>
- <Button asChild variant="default" size="small">
+ <Button asChild size="small">
<Link href="https://forms.supabase.com/enterprise">Contact Enterprise</Link>
</Button>
</div>
diff --git a/apps/www/components/Sections/TimedTabsSection.tsx b/apps/www/components/Sections/TimedTabsSection.tsx
index 919fadc95c2..3c8d17eac58 100644
--- a/apps/www/components/Sections/TimedTabsSection.tsx
+++ b/apps/www/components/Sections/TimedTabsSection.tsx
@@ -139,7 +139,7 @@ const TimedTabsSection = ({
</h2>
<p className="text-foreground-lighter mb-4 max-w-sm">{paragraph}</p>
{cta && (
- <Button asChild variant="default" size="small" icon={<ArrowUpRight />}>
+ <Button asChild size="small" icon={<ArrowUpRight />}>
<Link href={cta.link}>{cta.label ?? 'Explore more'}</Link>
</Button>
)}
diff --git a/apps/www/components/Sections/UseCasesSection.tsx b/apps/www/components/Sections/UseCasesSection.tsx
index 1b1571e2250..1bf2ca9b202 100644
--- a/apps/www/components/Sections/UseCasesSection.tsx
+++ b/apps/www/components/Sections/UseCasesSection.tsx
@@ -82,11 +82,11 @@ const UseCase = ({
</div>
{useCase.cta &&
(useCase.cta.isDisabled ? (
- <Button size="tiny" variant="default" disabled className="justify-end">
+ <Button size="tiny" disabled className="justify-end">
{useCase.cta.label ?? 'View example'}
</Button>
) : (
- <Button asChild size="tiny" variant="default" iconRight={<ArrowUpRight />}>
+ <Button asChild size="tiny" iconRight={<ArrowUpRight />}>
<Link href={useCase.cta.link} target="_blank">
{useCase.cta.label ?? 'View example'}
</Link>
diff --git a/apps/www/components/Solutions/CtaSection.tsx b/apps/www/components/Solutions/CtaSection.tsx
index 362014210d6..0e54b4661a9 100644
--- a/apps/www/components/Solutions/CtaSection.tsx
+++ b/apps/www/components/Solutions/CtaSection.tsx
@@ -49,7 +49,7 @@ const CtaSection = ({
</Link>
</Button>
{secondaryCta && (
- <Button asChild size="medium" variant="default">
+ <Button asChild size="medium">
<Link href={secondaryCta.url}>{secondaryCta.label}</Link>
</Button>
)}
diff --git a/apps/www/components/Solutions/TwoColumnsSection.tsx b/apps/www/components/Solutions/TwoColumnsSection.tsx
index 5986cb24d36..8daa0f23ab2 100644
--- a/apps/www/components/Solutions/TwoColumnsSection.tsx
+++ b/apps/www/components/Solutions/TwoColumnsSection.tsx
@@ -54,7 +54,6 @@ const CodeSnippet = ({ prompt }: { prompt: AIPrompt }) => {
<Tooltip>
<TooltipTrigger asChild>
<Button
- variant="default"
className="text-foreground-light hover:text-foreground absolute top-2 right-2 w-7 h-7 p-1 shadow-lg"
onClick={async () => {
await navigator.clipboard.writeText(prompt.code)
diff --git a/apps/www/components/Solutions/WhatItTakesSection.tsx b/apps/www/components/Solutions/WhatItTakesSection.tsx
index 8331f2066c6..7bae5c538e9 100644
--- a/apps/www/components/Solutions/WhatItTakesSection.tsx
+++ b/apps/www/components/Solutions/WhatItTakesSection.tsx
@@ -28,12 +28,7 @@ const WhatItTakesSection = ({ id, heading, items, className = '' }: WhatItTakesS
className="flex flex-col gap-3 p-6 rounded-lg border border-default bg-surface-75"
>
<p className="text-foreground-light">{item.description}</p>
- <Button
- asChild
- variant="default"
- size="tiny"
- icon={<ArrowUpRight className="w-3 h-3" />}
- >
+ <Button asChild size="tiny" icon={<ArrowUpRight className="w-3 h-3" />}>
<Link href={item.url}>{item.linkLabel ?? 'Read more'}</Link>
</Button>
</div>
diff --git a/apps/www/components/Supasquad/CtaSection.tsx b/apps/www/components/Supasquad/CtaSection.tsx
index fcf586d0959..65bdd6a847a 100644
--- a/apps/www/components/Supasquad/CtaSection.tsx
+++ b/apps/www/components/Supasquad/CtaSection.tsx
@@ -42,7 +42,7 @@ const CtaSection = ({ id, title, subtitle, primaryCta, secondaryCta, className }
</Link>
</Button>
{secondaryCta && (
- <Button asChild size="medium" variant="default">
+ <Button asChild size="medium">
<Link href={secondaryCta.url}>{secondaryCta.label}</Link>
</Button>
)}
diff --git a/apps/www/components/SurveyResults/SurveyChart.tsx b/apps/www/components/SurveyResults/SurveyChart.tsx
index 8dc7e236468..ed831b50a1f 100644
--- a/apps/www/components/SurveyResults/SurveyChart.tsx
+++ b/apps/www/components/SurveyResults/SurveyChart.tsx
@@ -475,12 +475,7 @@ export function SurveyChart({
!dataError &&
chartData.length > 3 && (
<div className="absolute bottom-0 left-0 right-0 flex items-center justify-center py-4 bg-linear-to-b from-transparent to-background">
- <Button
- variant="default"
- size="tiny"
- onClick={() => setIsExpanded(true)}
- className="shadow-xs"
- >
+ <Button size="tiny" onClick={() => setIsExpanded(true)} className="shadow-xs">
Show more
</Button>
</div>
@@ -529,7 +524,6 @@ function SurveyFilter({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
size="tiny"
iconRight={<ChevronsUpDown className="text-foreground-muted" strokeWidth={2} size={14} />}
>
diff --git a/apps/www/data/home/content.tsx b/apps/www/data/home/content.tsx
index 43477e46503..09448462a80 100644
--- a/apps/www/data/home/content.tsx
+++ b/apps/www/data/home/content.tsx
@@ -172,7 +172,7 @@ export default () => {
heading: 'Join the community',
subheading: 'Discover what our community has to say about their Supabase experience.',
ctas: (
- <Button asChild variant="default" size="small" icon={<IconDiscord />}>
+ <Button asChild size="small" icon={<IconDiscord />}>
<Link
href={'https://discord.supabase.com/'}
target="_blank"
diff --git a/apps/www/data/solutions/beginners.tsx b/apps/www/data/solutions/beginners.tsx
index e67c94e7802..1d6dafd4d18 100644
--- a/apps/www/data/solutions/beginners.tsx
+++ b/apps/www/data/solutions/beginners.tsx
@@ -1,5 +1,4 @@
import { CubeIcon } from '@heroicons/react/outline'
-import { DASHBOARD_SIGN_UP_URL } from '@/lib/dashboard-links'
import { useBreakpoint } from 'common'
import { Check, Sparkles, Timer } from 'lucide-react'
import dynamic from 'next/dynamic'
@@ -22,6 +21,7 @@ import type { MPCSectionProps } from '@/components/Solutions/MPCSection'
import type { PlatformSectionProps } from '@/components/Solutions/PlatformSection'
import type { TwoColumnsSectionProps } from '@/components/Solutions/TwoColumnsSection'
import type { TwitterSocialSectionProps } from '@/components/TwitterSocialSection'
+import { DASHBOARD_SIGN_UP_URL } from '@/lib/dashboard-links'
import { useSendTelemetryEvent } from '@/lib/telemetry'
const AuthVisual = dynamic(() => import('components/Products/AuthVisual'))
@@ -480,7 +480,7 @@ const data: () => {
heading: 'Fun projects built with Supabase',
subheading: 'Discover what our community has to say about their Supabase experience.',
ctas: (
- <Button asChild variant="default" size="small" icon={<IconDiscord />}>
+ <Button asChild size="small" icon={<IconDiscord />}>
<Link
href={'https://discord.supabase.com/'}
target="_blank"
diff --git a/apps/www/pages/assistant.tsx b/apps/www/pages/assistant.tsx
index e7f3c9e5d40..84e2d876921 100644
--- a/apps/www/pages/assistant.tsx
+++ b/apps/www/pages/assistant.tsx
@@ -688,7 +688,7 @@ function Assistant() {
</Link>
</Button>
)}
- <Button variant="default" size="medium" asChild>
+ <Button size="medium" asChild>
<Link
target="_blank"
rel="noreferrer noopener"
@@ -726,7 +726,6 @@ function Assistant() {
>
<Button
className="rounded-full"
- variant="default"
onClick={() => handleNewMessage(query.messages)}
>
{query.label}
diff --git a/apps/www/pages/aws-reinvent-2025.tsx b/apps/www/pages/aws-reinvent-2025.tsx
index 06851b725df..5d6ae07bd66 100644
--- a/apps/www/pages/aws-reinvent-2025.tsx
+++ b/apps/www/pages/aws-reinvent-2025.tsx
@@ -130,7 +130,6 @@ const AWSReInvent2025: NextPage = () => {
{event.cta && (
<Button
- variant="default"
size="small"
iconRight={<ChevronRight className="w-3 h-3" />}
asChild
@@ -170,7 +169,7 @@ const AWSReInvent2025: NextPage = () => {
<p className="text-foreground-light text-lg mb-8">
Accelerate your business growth and app development using Supabase scale.
</p>
- <Button variant="default" size="large" asChild>
+ <Button size="large" asChild>
<Link href={data.consultationSection.cta.href} target="_blank">
Book a meeting
</Link>
diff --git a/apps/www/pages/brand-assets.tsx b/apps/www/pages/brand-assets.tsx
index 79ab4716fa3..4a9844fb9c5 100644
--- a/apps/www/pages/brand-assets.tsx
+++ b/apps/www/pages/brand-assets.tsx
@@ -1,17 +1,14 @@
-import Container from 'components/Container'
-
-import CTABanner from 'components/CTABanner/index'
-import { Button } from 'ui'
import Layout from '~/components/Layouts/Default'
-
-import { useRouter } from 'next/router'
-
+import SectionContainer from '~/components/Layouts/SectionContainer'
import * as supabaseLogoPreview from 'common/assets/images/logo-preview.jpg'
+import Container from 'components/Container'
+import CTABanner from 'components/CTABanner/index'
import { Download } from 'lucide-react'
import { NextSeo } from 'next-seo'
import Image from 'next/image'
-import SectionContainer from '~/components/Layouts/SectionContainer'
import Link from 'next/link'
+import { useRouter } from 'next/router'
+import { Button } from 'ui'
const Index = () => {
// base path for images
@@ -71,7 +68,7 @@ const Index = () => {
</p>
</div>
<form method="get" action={`/brand-assets.zip`} className="mt-3">
- <Button type="submit" variant="default" iconRight={<Download />}>
+ <Button type="submit" iconRight={<Download />}>
Download logo kit
</Button>
</form>
@@ -110,7 +107,7 @@ const Index = () => {
action={`https://obuldanrptloktxcffvn.supabase.co/storage/v1/object/public/supabase-brand-assets/connect-supabase/connect-supabase.zip`}
className="mt-3"
>
- <Button type="submit" variant="default" iconRight={<Download />}>
+ <Button type="submit" iconRight={<Download />}>
Download button kit
</Button>
</form>
diff --git a/apps/www/pages/changelog.tsx b/apps/www/pages/changelog.tsx
index d91c86e625d..d1a7d23fbeb 100644
--- a/apps/www/pages/changelog.tsx
+++ b/apps/www/pages/changelog.tsx
@@ -261,7 +261,6 @@ function ChangelogIndex({ featured, restIndex, allIndex }: PageProps) {
<div className="w-full lg:w-auto flex flex-wrap items-center gap-1">
<div className="flex-1">
<Button
- variant="default"
size="tiny"
className={cn('shrink-0', !filterPanelOpen && 'px-1.5')}
aria-expanded={filterPanelOpen}
@@ -284,7 +283,6 @@ function ChangelogIndex({ featured, restIndex, allIndex }: PageProps) {
</div>
<Button
asChild
- variant="default"
className="shrink-0"
icon={<Rss className="h-4 w-4" strokeWidth={2} aria-hidden />}
>
diff --git a/apps/www/pages/customers/[slug].tsx b/apps/www/pages/customers/[slug].tsx
index ed3451e3936..7455192f142 100644
--- a/apps/www/pages/customers/[slug].tsx
+++ b/apps/www/pages/customers/[slug].tsx
@@ -219,7 +219,7 @@ function CaseStudyPage(props: any) {
<div>
<p>Ready to get started?</p>
<div>
- <Button asChild variant="default" iconRight={<ChevronRight />}>
+ <Button asChild iconRight={<ChevronRight />}>
<Link
href="https://supabase.com/contact/enterprise"
className="no-underline"
diff --git a/apps/www/pages/features/[slug].tsx b/apps/www/pages/features/[slug].tsx
index b47ffd0b964..8261e77f4af 100644
--- a/apps/www/pages/features/[slug].tsx
+++ b/apps/www/pages/features/[slug].tsx
@@ -227,12 +227,12 @@ const FeaturePage: React.FC<FeaturePageProps> = ({ feature, prevFeature, nextFea
{(feature.docsUrl || feature.blogUrl) && (
<div className="flex flex-wrap gap-2">
{feature.docsUrl && (
- <Button variant="default" iconRight={<ChevronRight />} asChild>
+ <Button iconRight={<ChevronRight />} asChild>
<Link href={feature.docsUrl}>Read Documentation</Link>
</Button>
)}
{feature.blogUrl && (
- <Button variant="default" iconRight={<ChevronRight />} asChild>
+ <Button iconRight={<ChevronRight />} asChild>
<Link href={feature.blogUrl}>Read Blog Post</Link>
</Button>
)}
diff --git a/apps/www/pages/legal/customer-resources/subprocessor-list.tsx b/apps/www/pages/legal/customer-resources/subprocessor-list.tsx
index 71ef1c89ed8..473057652b3 100644
--- a/apps/www/pages/legal/customer-resources/subprocessor-list.tsx
+++ b/apps/www/pages/legal/customer-resources/subprocessor-list.tsx
@@ -45,7 +45,7 @@ export default function SubprocessorListPage() {
<SectionContainer className="prose">
<div className="flex flex-col gap-4">
<div className="not-prose">
- <Button asChild variant="default" icon={<Download />}>
+ <Button asChild icon={<Download />}>
<a href={PDF_PATH} download target="_blank" rel="noopener noreferrer">
Subprocessor List - Updated {CURRENT_PDF.displayDate}
</a>
diff --git a/apps/www/pages/state-of-startups-2025.tsx b/apps/www/pages/state-of-startups-2025.tsx
index b033e1c36e1..cf8521371df 100644
--- a/apps/www/pages/state-of-startups-2025.tsx
+++ b/apps/www/pages/state-of-startups-2025.tsx
@@ -101,7 +101,6 @@ function StateOfStartupsPage() {
<div className="relative">
{/* Closed ToC */}
<Button
- variant="default"
size="small"
onClick={() => setIsTocOpen(true)}
className={cn(
@@ -324,7 +323,7 @@ const CTABanner = forwardRef<HTMLElement>((props, ref) => {
Start your project
</Link>
</Button>
- <Button asChild size="medium" variant="default">
+ <Button asChild size="medium">
<Link
href="/contact/sales"
onClick={() =>
diff --git a/packages/dev-tools/DevToolbar.tsx b/packages/dev-tools/DevToolbar.tsx
index 7f28bfd1abd..eccace58905 100644
--- a/packages/dev-tools/DevToolbar.tsx
+++ b/packages/dev-tools/DevToolbar.tsx
@@ -453,7 +453,6 @@ export function DevToolbar({ extraTabs = [] }: { extraTabs?: ExtraTab[] }) {
</InputGroupAddon>
</InputGroup>
<Button
- variant="default"
onClick={() => setEvents([])}
className="text-foreground-lighter hover:text-foreground"
>
diff --git a/packages/dev-tools/DevToolbarTrigger.tsx b/packages/dev-tools/DevToolbarTrigger.tsx
index b3bad0adeba..c1c54a1ee91 100644
--- a/packages/dev-tools/DevToolbarTrigger.tsx
+++ b/packages/dev-tools/DevToolbarTrigger.tsx
@@ -211,7 +211,6 @@ export function DevToolbarTrigger() {
return (
<div style={containerStyle}>
<Button
- variant="default"
rounded
className={cn(
'relative h-10 w-10 p-0 shadow-md',
diff --git a/packages/ui-patterns/src/Banners/LW15Banner.tsx b/packages/ui-patterns/src/Banners/LW15Banner.tsx
index 29593298609..e4e6e28f5f3 100644
--- a/packages/ui-patterns/src/Banners/LW15Banner.tsx
+++ b/packages/ui-patterns/src/Banners/LW15Banner.tsx
@@ -57,7 +57,7 @@ export function LW15Banner() {
{announcement.text}
</p>
<p className="text-sm hidden sm:block">{announcement.launch}</p>
- <Button size="tiny" variant="default" className="px-2 leading-none! text-xs" asChild>
+ <Button size="tiny" className="px-2 leading-none! text-xs" asChild>
<Link href={announcement.link}>{announcement.cta}</Link>
</Button>
</div>
diff --git a/packages/ui-patterns/src/Chart/index.tsx b/packages/ui-patterns/src/Chart/index.tsx
index cbc4dff4bc2..6ede284c26c 100644
--- a/packages/ui-patterns/src/Chart/index.tsx
+++ b/packages/ui-patterns/src/Chart/index.tsx
@@ -189,7 +189,6 @@ const ChartActions = React.forwardRef<HTMLDivElement, ChartActionsProps>(
<Tooltip key={index}>
<TooltipTrigger asChild>
<Button
- variant="default"
size="tiny"
className={cn('px-1.5 text-foreground-lighter', action.className)}
onClick={action.onClick}
diff --git a/packages/ui-patterns/src/CodeBlock/CodeBlock.tsx b/packages/ui-patterns/src/CodeBlock/CodeBlock.tsx
index 8d41e769e0b..0d40dd320b7 100644
--- a/packages/ui-patterns/src/CodeBlock/CodeBlock.tsx
+++ b/packages/ui-patterns/src/CodeBlock/CodeBlock.tsx
@@ -274,7 +274,6 @@ export const CodeBlock = ({
].join(' ')}
>
<Button
- variant="default"
className="px-1.5 dark:bg-200! dark:hover:bg-button! hover:bg-alternative!"
icon={copied ? <Check /> : <Copy />}
onClick={() => onSelectCopy(value || children)}
diff --git a/packages/ui-patterns/src/CommandMenu/prepackaged/DocsAi/DocsAiPage.tsx b/packages/ui-patterns/src/CommandMenu/prepackaged/DocsAi/DocsAiPage.tsx
index 113409ae90d..e012d265901 100644
--- a/packages/ui-patterns/src/CommandMenu/prepackaged/DocsAi/DocsAiPage.tsx
+++ b/packages/ui-patterns/src/CommandMenu/prepackaged/DocsAi/DocsAiPage.tsx
@@ -320,7 +320,7 @@ function ErrorState({ handleReset }: { handleReset: () => void }) {
Sorry, looks like Supabase AI is having a hard time!
</p>
<p className="text-sm text-foreground-lighter text-center">Please try again in a bit.</p>
- <Button size="tiny" variant="default" onClick={handleReset}>
+ <Button size="tiny" onClick={handleReset}>
Try again?
</Button>
</div>
diff --git a/packages/ui-patterns/src/CommandMenu/prepackaged/DocsSearch/DocsSearchPage.tsx b/packages/ui-patterns/src/CommandMenu/prepackaged/DocsSearch/DocsSearchPage.tsx
index 378b2fedbdc..fa764fddff8 100644
--- a/packages/ui-patterns/src/CommandMenu/prepackaged/DocsSearch/DocsSearchPage.tsx
+++ b/packages/ui-patterns/src/CommandMenu/prepackaged/DocsSearch/DocsSearchPage.tsx
@@ -301,7 +301,7 @@ const DocsSearchPage = () => {
<div className="p-6 flex flex-col items-center gap-6 mt-4 text-foreground-light">
<StatusIcon variant="default" />
<p className="text-sm text-foreground-light text-center">No results found.</p>
- <Button size="tiny" variant="default" onClick={handleResetPrompt}>
+ <Button size="tiny" onClick={handleResetPrompt}>
Try again?
</Button>
</div>
@@ -313,7 +313,7 @@ const DocsSearchPage = () => {
Sorry, looks like we&apos;re having some issues with search!
</p>
<p className="text-sm text-foreground-lighter">Please try again in a bit.</p>
- <Button size="tiny" variant="default" onClick={handleResetPrompt}>
+ <Button size="tiny" onClick={handleResetPrompt}>
Try again?
</Button>
</div>
diff --git a/packages/ui-patterns/src/ConsentToast/index.tsx b/packages/ui-patterns/src/ConsentToast/index.tsx
index 1f2af86f9ac..57588d7aafe 100644
--- a/packages/ui-patterns/src/ConsentToast/index.tsx
+++ b/packages/ui-patterns/src/ConsentToast/index.tsx
@@ -45,12 +45,7 @@ export const ConsentToast = ({ onAccept = noop, onOptOut = noop }: ConsentToastP
</div>
<div className="flex items-center space-x-2">
- <Button
- variant="default"
- onClick={onAccept}
- size={isMobile ? 'small' : 'tiny'}
- block={isMobile}
- >
+ <Button onClick={onAccept} size={isMobile ? 'small' : 'tiny'} block={isMobile}>
Accept
</Button>
<Button
diff --git a/packages/ui-patterns/src/Dialogs/ConfirmationModal.tsx b/packages/ui-patterns/src/Dialogs/ConfirmationModal.tsx
index 5e246f02c9b..1f18775e282 100644
--- a/packages/ui-patterns/src/Dialogs/ConfirmationModal.tsx
+++ b/packages/ui-patterns/src/Dialogs/ConfirmationModal.tsx
@@ -140,7 +140,6 @@ export const ConfirmationModal = forwardRef<
<Button
size="medium"
block
- variant="default"
disabled={loading}
onClick={() => (onAdditionalAction ?? onCancel)()}
>
diff --git a/packages/ui-patterns/src/Dialogs/TextConfirmModal.tsx b/packages/ui-patterns/src/Dialogs/TextConfirmModal.tsx
index 498178245f8..250021f5538 100644
--- a/packages/ui-patterns/src/Dialogs/TextConfirmModal.tsx
+++ b/packages/ui-patterns/src/Dialogs/TextConfirmModal.tsx
@@ -184,7 +184,6 @@ export const TextConfirmModal = forwardRef<
Type{' '}
{enableCopy ? (
<Button
- variant="default"
className="h-[23px] px-1.5 py-0 border-muted text-sm whitespace-pre break-all"
iconRight={
showCopied ? <Check strokeWidth={2} className="text-brand" /> : <Copy />
@@ -218,13 +217,7 @@ export const TextConfirmModal = forwardRef<
/>
<div className="flex gap-2">
{!blockDeleteButton && (
- <Button
- size="medium"
- block
- variant="default"
- disabled={loading}
- onClick={onCancel}
- >
+ <Button size="medium" block disabled={loading} onClick={onCancel}>
{cancelLabel}
</Button>
)}
diff --git a/packages/ui-patterns/src/McpUrlBuilder/components/ClientSelectDropdown.tsx b/packages/ui-patterns/src/McpUrlBuilder/components/ClientSelectDropdown.tsx
index e1f7dccf2e2..4fef2f2a76b 100644
--- a/packages/ui-patterns/src/McpUrlBuilder/components/ClientSelectDropdown.tsx
+++ b/packages/ui-patterns/src/McpUrlBuilder/components/ClientSelectDropdown.tsx
@@ -84,7 +84,6 @@ export const ClientSelectDropdown = ({
<PopoverTrigger asChild>
<Button
size="small"
- variant="default"
className="gap-0 rounded-l-none"
iconRight={
<ChevronDown
diff --git a/packages/ui-patterns/src/PromoToast/PromoToast.tsx b/packages/ui-patterns/src/PromoToast/PromoToast.tsx
index 7f9be18587f..b8c5ec515bc 100644
--- a/packages/ui-patterns/src/PromoToast/PromoToast.tsx
+++ b/packages/ui-patterns/src/PromoToast/PromoToast.tsx
@@ -57,9 +57,7 @@ const PromoToast = () => {
Claim your ticket
</Link>
</Button>
- <Button variant="default" onClick={handleHide}>
- Dismiss
- </Button>
+ <Button onClick={handleHide}>Dismiss</Button>
</div>
</div>
)
diff --git a/packages/ui-patterns/src/Row/index.tsx b/packages/ui-patterns/src/Row/index.tsx
index 478991d3fed..7069d9302d0 100644
--- a/packages/ui-patterns/src/Row/index.tsx
+++ b/packages/ui-patterns/src/Row/index.tsx
@@ -147,7 +147,6 @@ export const Row = forwardRef<HTMLDivElement, RowProps>(function Row(
<div ref={ref} className={cn('relative w-full', className)} {...rest}>
{showArrows && canScrollLeft && (
<Button
- variant="default"
onClick={scrollLeft}
className="absolute w-8 h-8 left-0 top-1/2 -translate-y-1/2 z-10 rounded-full p-2"
aria-label="Scroll left"
@@ -158,7 +157,6 @@ export const Row = forwardRef<HTMLDivElement, RowProps>(function Row(
{showArrows && canScrollRight && hasContentToScroll && (
<Button
- variant="default"
onClick={scrollRight}
className="absolute w-8 h-8 right-0 top-1/2 -translate-y-1/2 z-10 rounded-full p-2"
aria-label="Scroll right"
diff --git a/packages/ui-patterns/src/SimpleCodeBlock/SimpleCodeBlock.tsx b/packages/ui-patterns/src/SimpleCodeBlock/SimpleCodeBlock.tsx
index c49a75f6157..a9eb719e78f 100644
--- a/packages/ui-patterns/src/SimpleCodeBlock/SimpleCodeBlock.tsx
+++ b/packages/ui-patterns/src/SimpleCodeBlock/SimpleCodeBlock.tsx
@@ -99,7 +99,7 @@ export const SimpleCodeBlock = ({
</pre>
{showCopy && (
<div className="invisible absolute right-0 top-0 opacity-0 transition-opacity group-hover:visible group-hover:opacity-100">
- <Button size="tiny" variant="default" onClick={() => handleCopyCode(children)}>
+ <Button size="tiny" onClick={() => handleCopyCode(children)}>
{showCopied ? 'Copied' : 'Copy'}
</Button>
</div>
diff --git a/packages/ui-patterns/src/SkipToContent/SkipToContent.tsx b/packages/ui-patterns/src/SkipToContent/SkipToContent.tsx
index c07d20eb2a6..654f9cb1ce7 100644
--- a/packages/ui-patterns/src/SkipToContent/SkipToContent.tsx
+++ b/packages/ui-patterns/src/SkipToContent/SkipToContent.tsx
@@ -26,7 +26,7 @@ function SkipToContent({ href, children = 'Skip to content', className }: SkipTo
className
)}
>
- <Button size="tiny" variant="default" asChild>
+ <Button size="tiny" asChild>
<a href={href}>{children}</a>
</Button>
</div>
diff --git a/packages/ui-patterns/src/form/FormLayout2.tsx b/packages/ui-patterns/src/form/FormLayout2.tsx
index a8bbc05605f..1856fbce614 100644
--- a/packages/ui-patterns/src/form/FormLayout2.tsx
+++ b/packages/ui-patterns/src/form/FormLayout2.tsx
@@ -419,7 +419,7 @@ export const Page = () => {
/>
</SheetSection>
<SheetFooter>
- <Button variant="default">Cancel</Button>
+ <Button>Cancel</Button>
<Button variant="primary" type="submit">
Submit
</Button>
diff --git a/packages/ui-patterns/src/form/KeyValueFieldArray/KeyValueFieldArray.tsx b/packages/ui-patterns/src/form/KeyValueFieldArray/KeyValueFieldArray.tsx
index 98f5493efd7..12e6f949b8b 100644
--- a/packages/ui-patterns/src/form/KeyValueFieldArray/KeyValueFieldArray.tsx
+++ b/packages/ui-patterns/src/form/KeyValueFieldArray/KeyValueFieldArray.tsx
@@ -165,7 +165,6 @@ export const KeyValueFieldArray = <
/>
<Button
- variant="default"
size="tiny"
type="button"
icon={<Trash size={12} />}
@@ -180,7 +179,6 @@ export const KeyValueFieldArray = <
<div className="flex items-center">
<Button
- variant="default"
size="tiny"
type="button"
icon={<Plus />}
@@ -199,7 +197,6 @@ export const KeyValueFieldArray = <
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- variant="default"
size="tiny"
type="button"
icon={<ChevronDown size={14} />}