From 304cfea8a1982741a68219d83623183ddd0ec604 Mon Sep 17 00:00:00 2001 From: Joshua Graber Date: Tue, 12 Nov 2024 14:04:34 -0500 Subject: [PATCH] fix(components): update global focus state --- src/components/InputSelect/PdapInputSelect.vue | 2 +- src/styles/base.css | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/InputSelect/PdapInputSelect.vue b/src/components/InputSelect/PdapInputSelect.vue index 4cbe3e2..c32c575 100644 --- a/src/components/InputSelect/PdapInputSelect.vue +++ b/src/components/InputSelect/PdapInputSelect.vue @@ -261,7 +261,7 @@ watch( } .pdap-custom-select-option { - @apply text-neutral-950 dark:text-neutral-50 p-2 w-full max-w-full cursor-pointer border-2 border-solid; + @apply text-neutral-950 dark:text-neutral-50 p-2 w-full max-w-full cursor-pointer border-2 border-solid border-transparent; } .pdap-custom-select:focus, diff --git a/src/styles/base.css b/src/styles/base.css index 5da00ef..c3ebd96 100644 --- a/src/styles/base.css +++ b/src/styles/base.css @@ -137,4 +137,15 @@ pre code { @apply block border-[1px] border-opacity-20 border-solid border-brand-wine max-w-full overflow-scroll p-5 text-left text-xl whitespace-pre; } + + *:focus, + *:focus-visible { + @apply border-2 border-brand-gold-500 border-solid outline-none; + } + + button, + a, + [role="button"] { + @apply border-2 border-transparent border-solid outline-none; + } }