Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Disable outline for all components

Hakan Shehuf238f15094d6
diff --git a/apps/desktop/src/renderer/components/ui/button.tsx b/apps/desktop/src/renderer/components/ui/button.tsx
index dd50fcdb..0c1b9f2b 100644
--- a/apps/desktop/src/renderer/components/ui/button.tsx
+++ b/apps/desktop/src/renderer/components/ui/button.tsx
@@ -5,7 +5,7 @@ import { cva, type VariantProps } from 'class-variance-authority';
import { cn } from '@/shared/lib/utils';
const buttonVariants = cva(
- 'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-0 focus-visible:outline-none focus-visible:ring-0 disabled:pointer-events-none disabled:opacity-50',
+ 'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-0 focus-visible:ring-0 disabled:pointer-events-none disabled:opacity-50',
{
variants: {
variant: {
diff --git a/apps/desktop/src/renderer/styles/index.css b/apps/desktop/src/renderer/styles/index.css
index a9158e7f..5aa3cb6b 100644
--- a/apps/desktop/src/renderer/styles/index.css
+++ b/apps/desktop/src/renderer/styles/index.css
@@ -82,6 +82,13 @@
body {
@apply bg-background text-foreground;
}
+ *:focus {
+ outline: none;
+ }
+
+ *:focus-visible {
+ outline: none;
+ }
}
@font-face {