Skip to content

The VS Code of video editing, built for agents.

TypeScript

Enhance focus behavior and clean up UI components

konstantin-paulusb83d6e4b8083
diff --git a/apps/web/src/components/dashboard/ai-credits-view.tsx b/apps/web/src/components/dashboard/ai-credits-view.tsx
index 5842352e..db3a1149 100644
--- a/apps/web/src/components/dashboard/ai-credits-view.tsx
+++ b/apps/web/src/components/dashboard/ai-credits-view.tsx
@@ -124,7 +124,7 @@ function DashboardAiCreditsTopUpSection() {
}
}}
class={cx(
- "flex flex-col gap-0.5 rounded-md border p-3 outline-none transition-colors hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring",
+ "flex flex-col gap-0.5 rounded-md border p-3 outline-none transition-colors hover:bg-accent",
isSelected() ? "border-primary" : "border-input",
)}
>
diff --git a/apps/web/src/components/dashboard/home-view.tsx b/apps/web/src/components/dashboard/home-view.tsx
index aa1a824f..dc6f55a0 100644
--- a/apps/web/src/components/dashboard/home-view.tsx
+++ b/apps/web/src/components/dashboard/home-view.tsx
@@ -303,7 +303,7 @@ export function DashboardHomeView() {
as="button"
type="button"
aria-label="Choose the folder to work in"
- class="flex h-7 shrink-0 items-center rounded-md pl-0.5 pr-2 text-xs font-450 text-muted-foreground hover:bg-accent focus-ring"
+ class="flex h-7 shrink-0 items-center rounded-md pl-0.5 pr-2 text-xs font-450 text-muted-foreground hover:bg-accent"
>
<span class="grid size-6 shrink-0 place-items-center overflow-clip">
<Icon name="navigation.folder" />
@@ -425,7 +425,7 @@ export function DashboardHomeView() {
onClick={handleSubmit}
disabled={!canSubmit()}
aria-label="Send to the coding agent"
- class="grid size-7 shrink-0 place-items-center rounded-full bg-primary text-primary-foreground transition-opacity hover:bg-primary-hover disabled:pointer-events-none disabled:opacity-40 focus-ring"
+ class="grid size-7 shrink-0 place-items-center rounded-full bg-primary text-primary-foreground transition-opacity hover:bg-primary-hover disabled:pointer-events-none disabled:opacity-40"
>
<Show when={busy()} fallback={<Icon name="arrow-top" />}>
<Icon name="spinner-loader" class="animate-spin" />
diff --git a/apps/web/src/components/dashboard/shared.tsx b/apps/web/src/components/dashboard/shared.tsx
index e0e468c7..5bb827ff 100644
--- a/apps/web/src/components/dashboard/shared.tsx
+++ b/apps/web/src/components/dashboard/shared.tsx
@@ -496,7 +496,7 @@ export function DashboardCardButton(props: DashboardCardButtonProps) {
onDblClick={props.onDoubleClick}
onKeyDown={handleKeyDown}
class={cx(
- "flex min-w-0 flex-col gap-3 rounded-xl px-2 pt-2 pb-3 text-left outline-none transition-colors hover:bg-accent/50 focus-ring group",
+ "flex min-w-0 flex-col gap-3 rounded-xl px-2 pt-2 pb-3 text-left outline-none transition-colors hover:bg-accent/50 group",
props.active && "bg-primary/15 hover:bg-primary/15 ring-1 ring-inset ring-primary",
props.class,
)}
diff --git a/apps/web/src/components/dashboard/sidebar.tsx b/apps/web/src/components/dashboard/sidebar.tsx
index e2d58bea..5f083258 100644
--- a/apps/web/src/components/dashboard/sidebar.tsx
+++ b/apps/web/src/components/dashboard/sidebar.tsx
@@ -24,7 +24,7 @@ export function DashboardSidebarItem(props: DashboardSidebarItemProps) {
type="button"
onClick={props.onClick}
class={cx(
- "my-0.5 flex h-7 w-full shrink-0 items-center gap-1 rounded-md pl-0 pr-1 hover:bg-accent focus-ring",
+ "my-0.5 flex h-7 w-full shrink-0 items-center gap-1 rounded-md pl-0 pr-1 hover:bg-accent",
props.class,
)}
classList={{ "bg-accent": props.active }}
@@ -171,7 +171,7 @@ export function DashboardSidebarUser(props: DashboardSidebarUserProps) {
<button
type="button"
onClick={props.onClick}
- class="flex w-full items-center gap-2 rounded-md p-2 text-left hover:bg-accent focus-ring"
+ class="flex w-full items-center gap-2 rounded-md p-2 text-left hover:bg-accent"
>
<Show
when={avatarUrl()}
diff --git a/apps/web/src/components/sidebar-right/inspector/font-picker.tsx b/apps/web/src/components/sidebar-right/inspector/font-picker.tsx
index 0d42445c..f0d661c4 100644
--- a/apps/web/src/components/sidebar-right/inspector/font-picker.tsx
+++ b/apps/web/src/components/sidebar-right/inspector/font-picker.tsx
@@ -194,7 +194,7 @@ export function FontDropdown(props: FontDropdownProps) {
<PopoverTrigger
class={cx(
"bg-input h-7 hover:bg-input/80 text-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex w-full min-w-0 items-center gap-0 rounded-md pl-2 pr-0 text-xs whitespace-nowrap transition-colors outline-none",
- "relative overflow-hidden after:pointer-events-none after:absolute after:inset-0 after:rounded-md after:opacity-0 after:ring-1 after:ring-inset after:ring-ring after:z-20 focus-visible:after:opacity-100 justify-between",
+ "relative overflow-hidden after:pointer-events-none after:absolute after:inset-0 after:rounded-md after:opacity-0 after:ring-1 after:ring-inset after:ring-ring after:z-20 justify-between",
)}
>
<span class="truncate">{props.family}</span>
diff --git a/apps/web/src/components/sidebar-right/inspector/source.tsx b/apps/web/src/components/sidebar-right/inspector/source.tsx
index d0336e2b..2bd2df8c 100644
--- a/apps/web/src/components/sidebar-right/inspector/source.tsx
+++ b/apps/web/src/components/sidebar-right/inspector/source.tsx
@@ -109,7 +109,7 @@ export function SourceRows(props: SourceRowsProps) {
</div>
}
>
- <div class="flex h-7 w-full items-center overflow-hidden rounded-md border border-transparent bg-input text-foreground focus-within:border-primary">
+ <div class="flex h-7 w-full items-center overflow-hidden rounded-md border border-transparent bg-input text-foreground">
<button
class="flex h-full min-w-0 flex-1 items-center gap-2 pl-1 text-left"
onClick={() => setPicking("media")}
diff --git a/apps/web/src/components/sidebar-right/soundboard/soundboard.tsx b/apps/web/src/components/sidebar-right/soundboard/soundboard.tsx
index 25f1eaa3..5f94525c 100644
--- a/apps/web/src/components/sidebar-right/soundboard/soundboard.tsx
+++ b/apps/web/src/components/sidebar-right/soundboard/soundboard.tsx
@@ -134,7 +134,7 @@ export function Soundboard() {
<SelectItem item={itemProps.item}><LayerName entity={itemProps.item.rawValue} /></SelectItem>
)}
>
- <SelectTrigger class="text-xs text-muted-foreground hover:text-foreground bg-transparent hover:bg-transparent w-20 focus-visible:after:opacity-0">
+ <SelectTrigger class="text-xs text-muted-foreground hover:text-foreground bg-transparent hover:bg-transparent w-20">
<SelectValue<Entity>>{(state) => <LayerName entity={state.selectedOption()} />}</SelectValue>
</SelectTrigger>
<SelectPortal>
@@ -165,7 +165,7 @@ export function Soundboard() {
<SelectItem item={itemProps.item}><LayerName entity={itemProps.item.rawValue} /></SelectItem>
)}
>
- <SelectTrigger class="text-xs text-muted-foreground hover:text-foreground bg-transparent hover:bg-transparent w-20 focus-visible:after:opacity-0">
+ <SelectTrigger class="text-xs text-muted-foreground hover:text-foreground bg-transparent hover:bg-transparent w-20">
<SelectValue<Entity>>{(state) => <LayerName entity={state.selectedOption()} />}</SelectValue>
</SelectTrigger>
<SelectPortal>
diff --git a/apps/web/src/components/ui/badge.tsx b/apps/web/src/components/ui/badge.tsx
index a213a406..a9af8ae9 100644
--- a/apps/web/src/components/ui/badge.tsx
+++ b/apps/web/src/components/ui/badge.tsx
@@ -15,7 +15,7 @@ import { tw } from "@/lib/tw"
const invoiceStatusBadgeBase = tw`border-transparent rounded-full px-2 py-[2px] text-xs font-normal`
export const badgeVariants = cva({
- base: tw`inline-flex items-center justify-center border px-1.5 rounded-sm text-xs w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden`,
+ base: tw`inline-flex items-center justify-center border px-1.5 rounded-sm text-xs w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden`,
variants: {
variant: {
base:
diff --git a/apps/web/src/components/ui/button.tsx b/apps/web/src/components/ui/button.tsx
index 67da10b7..e337894e 100644
--- a/apps/web/src/components/ui/button.tsx
+++ b/apps/web/src/components/ui/button.tsx
@@ -17,7 +17,6 @@ export const buttonVariants = cva({
tw`inline-flex items-center justify-center gap-0 whitespace-nowrap rounded-md font-450 text-xs transition-all shrink-0 outline-none`,
tw`disabled:pointer-events-none disabled:opacity-50`,
tw`[&_svg]:pointer-events-none [&_svg]:shrink-0`,
- tw`focus-visible:border-ring focus-visible:ring-primary focus-visible:ring-[1px]`,
tw`aria-[invalid]:ring-destructive/20 aria-[invalid]:dark:ring-destructive/40 aria-[invalid]:border-destructive`,
],
@@ -29,7 +28,7 @@ export const buttonVariants = cva({
ghost: tw`hover:bg-accent active:bg-muted data-[expanded]:bg-accent`,
link: tw`px-0 bg-transparent text-muted-foreground hover:text-foreground active:text-foreground data-[expanded]:text-foreground`,
destructive:
- tw`bg-destructive text-destructive-foreground focus-visible:ring-destructive/20 focus-visible:dark:ring-destructive/40 hover:bg-destructive-hover active:bg-destructive-pressing data-[expanded]:bg-destructive-hover`,
+ tw`bg-destructive text-destructive-foreground hover:bg-destructive-hover active:bg-destructive-pressing data-[expanded]:bg-destructive-hover`,
outline: tw`bg-transparent border border-border-input text-foreground hover:bg-input`,
},
size: {
diff --git a/apps/web/src/components/ui/centered-select-menu.tsx b/apps/web/src/components/ui/centered-select-menu.tsx
index 994036d9..56171d01 100644
--- a/apps/web/src/components/ui/centered-select-menu.tsx
+++ b/apps/web/src/components/ui/centered-select-menu.tsx
@@ -76,7 +76,6 @@ export const CenteredSelectMenu = <Value extends string>(
class={cx(
"flex h-7 items-center rounded-md bg-input pl-2 pr-0 text-xs text-foreground outline-none transition-[box-shadow,border-color]",
"border border-transparent",
- "focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring",
"data-[expanded]:border-ring data-[expanded]:ring-1 data-[expanded]:ring-inset data-[expanded]:ring-ring",
props.triggerClass,
)}
diff --git a/apps/web/src/components/ui/checkbox.tsx b/apps/web/src/components/ui/checkbox.tsx
index 2adf15ae..5d92e77c 100644
--- a/apps/web/src/components/ui/checkbox.tsx
+++ b/apps/web/src/components/ui/checkbox.tsx
@@ -73,7 +73,7 @@ export const CheckboxInput = <T extends ValidComponent = "input">(
<CheckboxPrimitive.Input
data-slot="checkbox-input"
class={cx(
- "[&:focus-visible+div]:ring-ring/50 peer [&:focus-visible+div]:ring-[3px]",
+ "peer",
props.class,
)}
{...rest}
@@ -93,7 +93,7 @@ export const CheckboxControl = <T extends ValidComponent = "div">(
<CheckboxPrimitive.Control
data-slot="checkbox-control"
class={cx(
- "peer-focus-visible:border-ring border-muted dark:bg-input/30 data-[checked]:bg-primary data-[checked]:text-primary-foreground dark:data-[checked]:bg-primary data-[checked]:border-primary data-[invalid]:ring-destructive/20 dark:data-[invalid]:ring-destructive/40 data-[invalid]:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
+ "border-muted dark:bg-input/30 data-[checked]:bg-primary data-[checked]:text-primary-foreground dark:data-[checked]:bg-primary data-[checked]:border-primary data-[invalid]:ring-destructive/20 dark:data-[invalid]:ring-destructive/40 data-[invalid]:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
props.class,
)}
{...rest}
diff --git a/apps/web/src/components/ui/dialog.tsx b/apps/web/src/components/ui/dialog.tsx
index 40634cb8..a970130c 100644
--- a/apps/web/src/components/ui/dialog.tsx
+++ b/apps/web/src/components/ui/dialog.tsx
@@ -79,7 +79,7 @@ export const DialogContent = <T extends ValidComponent = "div">(
<Show when={local.showCloseButton}>
<DialogPrimitive.CloseButton
aria-label="Close"
- class="focus-visible:ring-ring absolute top-4 right-4 rounded-xs opacity-70 transition-[opacity,box-shadow] duration-200 hover:opacity-100 focus-visible:ring-2 focus-visible:outline-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
+ class="absolute top-4 right-4 rounded-xs opacity-70 transition-[opacity,box-shadow] duration-200 hover:opacity-100 outline-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
diff --git a/apps/web/src/components/ui/radio-group.tsx b/apps/web/src/components/ui/radio-group.tsx
index ed587f12..954d045b 100644
--- a/apps/web/src/components/ui/radio-group.tsx
+++ b/apps/web/src/components/ui/radio-group.tsx
@@ -96,7 +96,6 @@ export const RadioGroupItemControl = <T extends ValidComponent = "div">(
class={cx(
"border-input dark:bg-input/30 flex size-4 items-center justify-center rounded-full border shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50",
"data-[invalid]:ring-destructive/20 dark:data-[invalid]:ring-destructive/40 data-[invalid]:border-destructive",
- "peer-focus-visible/radio-group:ring-ring/50 peer-focus-visible/radio-group:border-ring peer-focus-visible/radio-group:ring-[3px]",
props.class,
)}
{...rest}
diff --git a/apps/web/src/components/ui/remove-button.tsx b/apps/web/src/components/ui/remove-button.tsx
index 1e039d6f..55833776 100644
--- a/apps/web/src/components/ui/remove-button.tsx
+++ b/apps/web/src/components/ui/remove-button.tsx
@@ -25,7 +25,7 @@ export function RemoveButton(props: RemoveButtonProps) {
type="button"
aria-label={props.label}
class={cx(
- "relative size-5 shrink-0 overflow-clip rounded-full border border-border bg-canvas text-foreground transition-colors hover:border-border-input hover:bg-muted focus-ring",
+ "relative size-5 shrink-0 overflow-clip rounded-full border border-border bg-canvas text-foreground transition-colors hover:border-border-input hover:bg-muted",
props.class,
)}
onClick={props.onClick}
diff --git a/apps/web/src/components/ui/segmented-control.tsx b/apps/web/src/components/ui/segmented-control.tsx
index 9a5d518f..c95767eb 100644
--- a/apps/web/src/components/ui/segmented-control.tsx
+++ b/apps/web/src/components/ui/segmented-control.tsx
@@ -121,8 +121,6 @@ export const SegmentedControlList = (props: SegmentedControlListProps) => {
role="presentation"
class={cx(
"bg-muted text-muted-foreground relative h-full w-fit rounded-lg",
- "has-[[data-slot=segmented-control-item-input]:focus-visible]:[&_[data-slot=segmented-control-indicator]]:ring-ring/50 has-[[data-slot=segmented-control-item-input]:focus-visible]:[&_[data-slot=segmented-control-indicator]]:outline-ring has-[[data-slot=segmented-control-item-input]:focus-visible]:[&_[data-slot=segmented-control-indicator]]:ring-[3px] has-[[data-slot=segmented-control-item-input]:focus-visible]:[&_[data-slot=segmented-control-indicator]]:outline-1",
- "group-[[data-invalid]]/segmented-control:has-[[data-slot=segmented-control-item-input]:focus-visible]:[&_[data-slot=segmented-control-indicator]]:ring-destructive/20 dark:group-[[data-invalid]]/segmented-control:has-[[data-slot=segmented-control-item-input]:focus-visible]:[&_[data-slot=segmented-control-indicator]]:ring-destructive/40",
props.class,
)}
{...rest}
diff --git a/apps/web/src/components/ui/select.tsx b/apps/web/src/components/ui/select.tsx
index 1ffe350c..2fc1d96d 100644
--- a/apps/web/src/components/ui/select.tsx
+++ b/apps/web/src/components/ui/select.tsx
@@ -66,7 +66,7 @@ export const SelectTrigger = <T extends ValidComponent = "button">(
data-size={local.size}
class={cx(
"bg-input hover:bg-input/80 text-foreground data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex w-full items-center gap-0 rounded-md pl-2 pr-0 text-xs whitespace-nowrap transition-colors outline-none disabled:cursor-not-allowed disabled:opacity-50",
- "relative overflow-hidden after:pointer-events-none after:absolute after:inset-0 after:rounded-md after:opacity-0 after:ring-1 after:ring-inset after:ring-ring after:z-20 focus-visible:after:opacity-100",
+ "relative overflow-hidden after:pointer-events-none after:absolute after:inset-0 after:rounded-md after:opacity-0 after:ring-1 after:ring-inset after:ring-ring after:z-20",
"data-[size=default]:h-7 data-[size=sm]:h-6",
"*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:min-w-0 *:data-[slot=select-value]:flex-1 *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",
local.class,
diff --git a/apps/web/src/components/ui/slider.tsx b/apps/web/src/components/ui/slider.tsx
index 18aaeb9d..7c6ed201 100644
--- a/apps/web/src/components/ui/slider.tsx
+++ b/apps/web/src/components/ui/slider.tsx
@@ -86,7 +86,7 @@ export const SliderThumb = <T extends ValidComponent = "span">(
<SliderPrimitive.Thumb
data-slot="slider-thumb"
class={cx(
- "border border-background bg-foreground ring-foreground/20 size-3 rounded-full shadow-sm transition-[color,box-shadow] hover:ring-3 hover:border-none focus-visible:ring-3 focus-visible:border-none focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[orientation=horizontal]:-top-1 data-[orientation=vertical]:-left-1",
+ "border border-background bg-foreground ring-foreground/20 size-3 rounded-full shadow-sm transition-[color,box-shadow] hover:ring-3 hover:border-none focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[orientation=horizontal]:-top-1 data-[orientation=vertical]:-left-1",
props.class,
)}
{...rest}
diff --git a/apps/web/src/components/ui/switch.tsx b/apps/web/src/components/ui/switch.tsx
index 9c94f31f..2e8a678c 100644
--- a/apps/web/src/components/ui/switch.tsx
+++ b/apps/web/src/components/ui/switch.tsx
@@ -33,7 +33,6 @@ export const switchControlVariants = cva({
base: [
"inline-flex items-center rounded-full border border-transparent transition-all",
"data-[checked]:bg-primary",
- "peer-focus-visible/switch-input:border-ring peer-focus-visible/switch-input:ring-ring/50 peer-focus-visible/switch-input:ring-[3px]",
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
],
variants: {
diff --git a/apps/web/src/components/ui/tabs.tsx b/apps/web/src/components/ui/tabs.tsx
index a2cebe1e..78692fb1 100644
--- a/apps/web/src/components/ui/tabs.tsx
+++ b/apps/web/src/components/ui/tabs.tsx
@@ -102,7 +102,7 @@ export const TabsIndicator = <T extends ValidComponent = "div">(
<TabsPrimitive.Indicator
data-slot="tabs-indicator"
class={cx(
- "bg-background dark:bg-input/30 dark:border-input peer-focus-visible:border-ring peer-focus-visible:ring-ring/50 peer-focus-visible:outline-ring absolute inset-0 rounded-lg border border-transparent shadow-sm transition-[box-shadow,transform,width,height] duration-200 peer-focus-visible:ring-[3px] peer-focus-visible:outline-1",
+ "bg-background dark:bg-input/30 dark:border-input absolute inset-0 rounded-lg border border-transparent shadow-sm transition-[box-shadow,transform,width,height] duration-200",
props.class,
)}
{...rest}
diff --git a/apps/web/src/components/ui/toggle-button.tsx b/apps/web/src/components/ui/toggle-button.tsx
index a1774fff..63524783 100644
--- a/apps/web/src/components/ui/toggle-button.tsx
+++ b/apps/web/src/components/ui/toggle-button.tsx
@@ -11,7 +11,7 @@ import type { VariantProps } from "cva"
import { cva } from "@/lib/cva"
export const toggleButtonVariants = cva({
- base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-450 hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[pressed]:bg-accent data-[pressed]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,background-color,box-shadow] whitespace-nowrap",
+ base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-450 hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[pressed]:bg-accent data-[pressed]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 outline-none transition-[color,background-color,box-shadow] whitespace-nowrap",
variants: {
variant: {
default: "bg-transparent",
diff --git a/apps/web/src/components/upgrade-dialog.tsx b/apps/web/src/components/upgrade-dialog.tsx
index 2d8b78f8..99ad7180 100644
--- a/apps/web/src/components/upgrade-dialog.tsx
+++ b/apps/web/src/components/upgrade-dialog.tsx
@@ -110,7 +110,7 @@ function ProUpgradeContent() {
<button
role="radio"
aria-checked={plan() === option}
- class="rounded-md border border-input p-3 flex items-center gap-2 font-normal transition-colors hover:bg-accent focus-ring"
+ class="rounded-md border border-input p-3 flex items-center gap-2 font-normal transition-colors hover:bg-accent"
classList={{ "border-primary": plan() === option }}
onClick={() => setPlan(option)}
>
@@ -180,7 +180,7 @@ function TopupContent() {
<For each={TOPUP_CREDIT_TIERS}>
{(tier) => (
<button
- class="rounded-md border border-input p-3 flex flex-col items-start gap-0.5 font-normal transition-colors hover:bg-accent data-checked:border-primary focus-ring"
+ class="rounded-md border border-input p-3 flex flex-col items-start gap-0.5 font-normal transition-colors hover:bg-accent data-checked:border-primary"
classList={{ "border-primary": selected() === tier }}
onClick={() => setSelected(tier)}
>
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index a3250234..a0fec9d5 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -262,6 +262,11 @@
/* overscroll-behavior: none; */
}
+ /* Focus rings only on text inputs; everything else stays quiet. */
+ :focus-visible:not(input, textarea, [contenteditable]) {
+ outline: none;
+ }
+
*::-webkit-scrollbar {
width: 0;
height: 0;