fix(dark mode): make a focused text only button actually readable
Resolves https://github.com/go-vikunja/api/issues/41
This commit is contained in:
parent
45b7434bda
commit
3ab58a015c
2 changed files with 12 additions and 8 deletions
|
@ -52,6 +52,7 @@ const props = defineProps({
|
|||
|
||||
|
||||
const componentNodeName = ref<Node['nodeName']>('button')
|
||||
|
||||
interface ElementBindings {
|
||||
type?: string;
|
||||
rel?: string;
|
||||
|
@ -92,6 +93,7 @@ watchEffect(() => {
|
|||
const isButton = computed(() => componentNodeName.value === 'button')
|
||||
|
||||
const button = ref()
|
||||
|
||||
function focus() {
|
||||
button.value.focus()
|
||||
}
|
||||
|
@ -123,7 +125,7 @@ defineExpose({
|
|||
user-select: none;
|
||||
pointer-events: auto; // disable possible resets
|
||||
|
||||
&:focus {
|
||||
&:focus, &.is-focused {
|
||||
outline: transparent;
|
||||
}
|
||||
|
||||
|
|
|
@ -291,9 +291,11 @@
|
|||
--table-row-hover-background-color: var(--grey-100);
|
||||
--dropdown-item-hover-background-color: var(--grey-100);
|
||||
--dropdown-item-hover-color: var(--text);
|
||||
--pre-background: var(--grey-200);
|
||||
--button-text-hover-background-color: var(--grey-200);
|
||||
--button-hover-color: var(--grey-600);
|
||||
--pre-background: var(--grey-200);
|
||||
--button-active-color: var(--grey-600);
|
||||
--button-focus-color: var(--grey-600);
|
||||
|
||||
// Custom color variables we need to override
|
||||
--card-border-color: hsla(var(--grey-100-hsl), 0.3);
|
||||
|
|
Loading…
Reference in a new issue