Skip to content

Commit

Permalink
fix(components): update global focus state
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuagraber committed Nov 12, 2024
1 parent 399dcf0 commit 304cfea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/InputSelect/PdapInputSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
11 changes: 11 additions & 0 deletions src/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 304cfea

Please sign in to comment.