Skip to content

Scheduling infrastructure for absolutely everyone.

fix: button shifting while focusing (#6521)

Nafees Nazik7cdd4539535a
diff --git a/apps/web/components/booking/pages/BookingPage.tsx b/apps/web/components/booking/pages/BookingPage.tsx
index c17fd5fb1df..888bffe5128 100644
--- a/apps/web/components/booking/pages/BookingPage.tsx
+++ b/apps/web/components/booking/pages/BookingPage.tsx
@@ -961,12 +961,7 @@ const BookingPage = ({
className="mr-auto"
/>
)}
- <Button
- color="minimal"
- type="button"
- onClick={() => router.back()}
- // We override this for this component only for now - as we don't support darkmode everywhere in the app
- className="dark:hover:bg-darkgray-200 dark:border-none dark:text-white">
+ <Button color="minimal" type="button" onClick={() => router.back()}>
{t("cancel")}
</Button>
<Button
diff --git a/packages/ui/components/button/Button.tsx b/packages/ui/components/button/Button.tsx
index cb22f17c3e8..3ff49f04d30 100644
--- a/packages/ui/components/button/Button.tsx
+++ b/packages/ui/components/button/Button.tsx
@@ -73,7 +73,7 @@ const buttonClasses = cva(
disabled: [undefined, false],
color: "primary",
className:
- "bg-brand-500 hover:bg-brand-400 focus:border focus:border-white focus:outline-none focus:ring-2 focus:ring-offset focus:ring-brand-500 dark:hover:bg-darkgray-600 dark:bg-darkgray-900",
+ "bg-brand-500 hover:bg-brand-400 focus:outline-none focus:ring-2 focus:ring-offset focus:ring-brand-500 dark:hover:bg-darkgray-600 dark:bg-darkgray-900",
}),
// Secondary variants
{