We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6e1df6 commit 8075092Copy full SHA for 8075092
app/routes/board.$id/components.tsx
@@ -9,6 +9,11 @@ export let SaveButton = forwardRef<
9
return (
10
<button
11
ref={ref}
12
+ // this makes it so the button takes focus on clicks in safari I can't
13
+ // remember if this is the proper workaround or not, it's been a while!
14
+ // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#clicking_and_focus
15
+ // https://bugs.webkit.org/show_bug.cgi?id=22261
16
+ tabIndex={0}
17
{...props}
18
className="text-sm rounded-lg text-left p-2 font-medium text-white bg-brand-blue"
19
/>
@@ -23,6 +28,7 @@ export let CancelButton = forwardRef<
23
28
24
29
25
30
type="button"
31
26
32
27
33
className="text-sm rounded-lg text-left p-2 font-medium hover:bg-slate-200 focus:bg-slate-200"
34
0 commit comments