Skip to content

Commit e377f1c

Browse files
georgekettleGeorge Kettle
andauthored
Update to focus state and transition (#319)
Co-authored-by: George Kettle <[email protected]>
1 parent 7762d34 commit e377f1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ruby_ui/input/input.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ def default_attrs
2020
action: "input->ruby-ui--form-field#onInput invalid->ruby-ui--form-field#onInvalid"
2121
},
2222
class: [
23-
"flex h-9 w-full rounded-md border bg-background px-3 py-1 text-sm shadow-sm transition-colors border-border",
23+
"flex h-9 w-full rounded-md border bg-background px-3 py-1 text-sm shadow-xs transition-[color,box-shadow] border-border ring-0 ring-ring/0",
2424
"placeholder:text-muted-foreground",
2525
"disabled:cursor-not-allowed disabled:opacity-50",
2626
"file:border-0 file:bg-transparent file:text-sm file:font-medium",
27-
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
27+
"focus-visible:outline-none focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:border-ring focus-visible:shadow-sm",
2828
"aria-disabled:cursor-not-allowed aria-disabled:opacity-50 aria-disabled:pointer-events-none"
2929
]
3030
}

0 commit comments

Comments
 (0)