From c76cc873fe1255e92308050cb368caf6dd8d6769 Mon Sep 17 00:00:00 2001 From: jellydeck <91427591+jellydeck@users.noreply.github.com> Date: Sat, 7 Feb 2026 23:16:19 +0530 Subject: [PATCH 01/21] buttons & links style adjusted --- app/assets/main.css | 27 +++++++++++++++----- app/components/Button/Base.vue | 7 +++-- app/components/Button/Group.vue | 2 +- app/components/CallToAction.vue | 2 +- app/components/Header/AccountMenu.client.vue | 12 ++++++--- app/components/Link/Base.vue | 5 ++-- 6 files changed, 37 insertions(+), 18 deletions(-) diff --git a/app/assets/main.css b/app/assets/main.css index 2ed934ff8..cc7604dc6 100644 --- a/app/assets/main.css +++ b/app/assets/main.css @@ -186,13 +186,28 @@ body { line-height: 1.6; } -:focus-visible, :-moz-focusring { - /* weird Firefox behavior makes it necessary to add `!important` - or otherwise the selector would need to be more specific, - which it explicitly should not be. */ - outline: 2px solid var(--accent) !important; - outline-offset: 2px !important; + outline: auto; +} + +a { + border-radius: 4px; +} + +a:focus-visible, +button:focus-visible, +select:focus-visible { + outline: 2px solid var(--accent); + outline-offset: 2px; +} + +input:focus { + border: 1px solid var(--accent); +} + +input[type='text']:focus-visible, +input[type='search']:focus-visible { + outline: 2px solid color-mix(in oklch, var(--accent) 70%, transparent); } /* Reset dd margin (browser default is margin-left: 40px) */ diff --git a/app/components/Button/Base.vue b/app/components/Button/Base.vue index 0dd928003..53039406d 100644 --- a/app/components/Button/Base.vue +++ b/app/components/Button/Base.vue @@ -32,14 +32,13 @@ defineExpose({