From fe01807614a75f9b92150d4acb42e62182ba6d39 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 29 May 2026 16:10:49 -0500 Subject: [PATCH] consistent destructive button style remove text-white from individual buttons and add it to the variant --- .../classification/wizard/Step3ChooseExamples.tsx | 4 ++-- web/src/components/config-form/sections/BaseSection.tsx | 4 ++-- web/src/components/overlay/detail/SearchDetailDialog.tsx | 2 +- web/src/components/overlay/dialog/FrigatePlusDialog.tsx | 2 +- web/src/components/settings/PolygonItem.tsx | 3 ++- web/src/components/ui/button.tsx | 3 +-- web/src/pages/Exports.tsx | 2 -- web/src/pages/FaceLibrary.tsx | 1 - web/src/pages/Replay.tsx | 7 ++----- web/src/views/classification/ModelTrainingView.tsx | 1 - web/src/views/motion-search/MotionSearchView.tsx | 1 - web/src/views/settings/CameraManagementView.tsx | 2 +- web/src/views/settings/Go2RtcStreamsSettingsView.tsx | 5 +---- web/src/views/settings/ProfilesView.tsx | 4 ++-- web/src/views/settings/RegionGridSettingsView.tsx | 7 ++----- 15 files changed, 17 insertions(+), 31 deletions(-) diff --git a/web/src/components/classification/wizard/Step3ChooseExamples.tsx b/web/src/components/classification/wizard/Step3ChooseExamples.tsx index d2861affca..75f4d263f0 100644 --- a/web/src/components/classification/wizard/Step3ChooseExamples.tsx +++ b/web/src/components/classification/wizard/Step3ChooseExamples.tsx @@ -1,4 +1,4 @@ -import { Button } from "@/components/ui/button"; +import { Button, buttonVariants } from "@/components/ui/button"; import { useTranslation } from "react-i18next"; import { useState, useEffect, useCallback, useMemo } from "react"; import ActivityIndicator from "@/components/indicators/activity-indicator"; @@ -540,7 +540,7 @@ export default function Step3ChooseExamples({ {t("button.continue", { ns: "common" })} diff --git a/web/src/components/config-form/sections/BaseSection.tsx b/web/src/components/config-form/sections/BaseSection.tsx index b3261a5cc4..685b06ebe3 100644 --- a/web/src/components/config-form/sections/BaseSection.tsx +++ b/web/src/components/config-form/sections/BaseSection.tsx @@ -32,7 +32,7 @@ import { ProfileOverridesBadge } from "./ProfileOverridesBadge"; import { useSectionSchema } from "@/hooks/use-config-schema"; import type { FrigateConfig } from "@/types/frigateConfig"; import { Badge } from "@/components/ui/badge"; -import { Button } from "@/components/ui/button"; +import { Button, buttonVariants } from "@/components/ui/button"; import { LuChevronDown, LuChevronRight } from "react-icons/lu"; import Heading from "@/components/ui/heading"; import get from "lodash/get"; @@ -1236,7 +1236,7 @@ export function ConfigSection({ {t("button.cancel", { ns: "common" })} { onDeleteProfileSection?.(); setIsDeleteProfileDialogOpen(false); diff --git a/web/src/components/overlay/detail/SearchDetailDialog.tsx b/web/src/components/overlay/detail/SearchDetailDialog.tsx index 0747e6d08e..518b7e69e6 100644 --- a/web/src/components/overlay/detail/SearchDetailDialog.tsx +++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx @@ -1569,7 +1569,7 @@ function ObjectDetailsTab({ {t("button.yes", { ns: "common" })} @@ -106,10 +106,7 @@ export default function RegionGridSettingsView({ {t("button.cancel", { ns: "common" })} {t("maintenance.regionGrid.clear")}