From 26a689f4c2306bbfb55f6a272617c040b6af1df3 Mon Sep 17 00:00:00 2001 From: Benjamin Leonard Date: Tue, 1 Apr 2025 16:40:12 +0100 Subject: [PATCH 1/6] Surf it, scroll it, pause it, click it --- app/ui/styles/components/button.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/ui/styles/components/button.css b/app/ui/styles/components/button.css index 9575fde921..96c4918fe6 100644 --- a/app/ui/styles/components/button.css +++ b/app/ui/styles/components/button.css @@ -9,6 +9,9 @@ .ox-button { @apply relative; } +.ox-button:active { + @apply translate-y-px; +} .ox-button:after { content: ''; @apply absolute bottom-0 left-0 right-0 top-0 rounded border border-current opacity-[0.05]; From 4101df7443e17f1d8097ce400f05dad0078a6a92 Mon Sep 17 00:00:00 2001 From: Benjamin Leonard Date: Tue, 1 Apr 2025 16:46:09 +0100 Subject: [PATCH 2/6] Ignore disabled buttons --- app/ui/styles/components/button.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ui/styles/components/button.css b/app/ui/styles/components/button.css index 96c4918fe6..485d8851ea 100644 --- a/app/ui/styles/components/button.css +++ b/app/ui/styles/components/button.css @@ -9,7 +9,7 @@ .ox-button { @apply relative; } -.ox-button:active { +.ox-button:active:not(.visually-disabled) { @apply translate-y-px; } .ox-button:after { From 3d2c3e3970d64a0e9427428859aacc703b7c3cd8 Mon Sep 17 00:00:00 2001 From: Benjamin Leonard Date: Tue, 1 Apr 2025 16:49:43 +0100 Subject: [PATCH 3/6] Apply to more buttons --- app/components/MoreActionsMenu.tsx | 2 +- app/components/TopBar.tsx | 2 +- app/ui/lib/Button.tsx | 2 +- app/ui/styles/components/button.css | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/components/MoreActionsMenu.tsx b/app/components/MoreActionsMenu.tsx index f176cb534a..d369e132b2 100644 --- a/app/components/MoreActionsMenu.tsx +++ b/app/components/MoreActionsMenu.tsx @@ -30,7 +30,7 @@ export const MoreActionsMenu = ({ diff --git a/app/components/TopBar.tsx b/app/components/TopBar.tsx index e2660fcb68..e192c336a5 100644 --- a/app/components/TopBar.tsx +++ b/app/components/TopBar.tsx @@ -161,7 +161,7 @@ function SiloSystemPicker({ level }: { level: 'silo' | 'system' }) { return (
diff --git a/app/ui/lib/Button.tsx b/app/ui/lib/Button.tsx index e7b27f383d..a80d6acd61 100644 --- a/app/ui/lib/Button.tsx +++ b/app/ui/lib/Button.tsx @@ -36,7 +36,7 @@ export const buttonStyle = ({ variant = 'primary', }: ButtonStyleProps = {}) => { return cn( - 'ox-button elevation-1 rounded inline-flex items-center justify-center align-top disabled:cursor-default shrink-0', + 'ox-button active-clicked elevation-1 rounded inline-flex items-center justify-center align-top disabled:cursor-default shrink-0', `btn-${variant}`, sizeStyle[size], variant === 'danger' diff --git a/app/ui/styles/components/button.css b/app/ui/styles/components/button.css index 485d8851ea..037bea3b4f 100644 --- a/app/ui/styles/components/button.css +++ b/app/ui/styles/components/button.css @@ -9,7 +9,7 @@ .ox-button { @apply relative; } -.ox-button:active:not(.visually-disabled) { +.active-clicked:active:not(.visually-disabled) { @apply translate-y-px; } .ox-button:after { From 570ef837b49308c2e1620a4f71c6b8eff893d192 Mon Sep 17 00:00:00 2001 From: Benjamin Leonard Date: Tue, 1 Apr 2025 16:57:54 +0100 Subject: [PATCH 4/6] Update CopyToClipboard.tsx --- app/ui/lib/CopyToClipboard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ui/lib/CopyToClipboard.tsx b/app/ui/lib/CopyToClipboard.tsx index df0331f531..f00b2523a2 100644 --- a/app/ui/lib/CopyToClipboard.tsx +++ b/app/ui/lib/CopyToClipboard.tsx @@ -53,7 +53,7 @@ export const CopyToClipboard = ({ return (