Skip to content

Commit f762f98

Browse files
authored
Fix button styles in safari (#342)
Signed-off-by: Nik Nasr <[email protected]>
1 parent e92acc2 commit f762f98

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libs/ui/button/src/lib/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface ButtonProps {
2525

2626
const styles = tv({
2727
extend: focusRing,
28-
base: 'cursor-default rounded-xl border border-black/10 px-5 py-2 text-center text-sm shadow-xs transition dark:border-white/10 dark:shadow-none',
28+
base: 'cursor-default rounded-xl border border-black/10 px-5 py-2 text-center text-sm shadow-xs',
2929
variants: {
3030
variant: {
3131
primary:

libs/ui/link/src/lib/Link.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ interface LinkProps
3636

3737
const styles = tv({
3838
extend: focusRing,
39-
base: 'rounded underline transition disabled:cursor-default disabled:no-underline',
39+
base: 'rounded underline disabled:cursor-default disabled:no-underline',
4040
variants: {
4141
variant: {
4242
button:
43-
'rounded-xl border border-black/10 bg-linear-to-b from-blue-600/90 to-blue-600 px-5 py-2 text-center text-sm text-white no-underline shadow-[inset_0_1px_0_0_rgba(255,255,255,0.2)] drop-shadow-xs transition hover:from-blue-700 hover:to-blue-700 hover:shadow-none pressed:from-blue-800 pressed:to-blue-800 pressed:shadow-none',
43+
'inline-block rounded-xl border border-black/10 bg-linear-to-b from-blue-600/90 to-blue-600 px-5 py-2 text-center text-sm text-white no-underline shadow-[inset_0_1px_0_0_rgba(255,255,255,0.2)] drop-shadow-xs hover:from-blue-700 hover:to-blue-700 hover:shadow-none pressed:from-blue-800 pressed:to-blue-800 pressed:shadow-none',
4444
'secondary-button':
45-
'rounded-xl border bg-white px-5 py-2 text-center text-sm text-gray-800 no-underline shadow-xs transition hover:bg-gray-100 pressed:bg-gray-200',
45+
'inline-block rounded-xl border bg-white px-5 py-2 text-center text-sm text-gray-800 no-underline shadow-xs hover:bg-gray-100 pressed:bg-gray-200',
4646
'destructive-button':
47-
'rounded-xl border border-black/10 bg-linear-to-b from-red-700/95 to-red-700 px-5 py-2 text-center text-sm text-white no-underline shadow-[inset_0_1px_0_0_rgba(255,255,255,0.15)] drop-shadow-xs transition hover:from-red-800 hover:to-red-800 hover:shadow-none pressed:from-red-900 pressed:to-red-900 pressed:shadow-none',
47+
'inline-block rounded-xl border border-black/10 bg-linear-to-b from-red-700/95 to-red-700 px-5 py-2 text-center text-sm text-white no-underline shadow-[inset_0_1px_0_0_rgba(255,255,255,0.15)] drop-shadow-xs hover:from-red-800 hover:to-red-800 hover:shadow-none pressed:from-red-900 pressed:to-red-900 pressed:shadow-none',
4848
primary:
4949
'text-blue-600 decoration-blue-600/60 hover:decoration-blue-600 dark:text-blue-500',
5050
secondary:

0 commit comments

Comments
 (0)