Fix: Focus & styling on safari (#3650)

This commit is contained in:
Nelson Chan 2023-08-27 18:55:36 +08:00 committed by GitHub
parent c0e273df5b
commit 5f85d8f749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="dropdown" @focusin="open = true" @focusout="handleFocusOut"> <div tabindex="-1" class="dropdown" @focusin="open = true" @focusout="handleFocusOut">
<button type="button" class="filter-dropdown-status" :class="{ 'active': filterActive }" tabindex="0"> <button type="button" class="filter-dropdown-status" :class="{ 'active': filterActive }" tabindex="0">
<div class="px-1 d-flex align-items-center"> <div class="px-1 d-flex align-items-center">
<slot name="status"></slot> <slot name="status"></slot>
@ -107,6 +107,19 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
margin-left: 5px; margin-left: 5px;
color: $link-color;
.dark & {
color: $dark-font-color;
}
&:focus {
background-color: $highlight-white;
.dark & {
background-color: $dark-font-color2;
}
}
&.active { &.active {
border: 1px solid $highlight; border: 1px solid $highlight;