git.99rst.org
/
flatnotes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
55c733e
)
Use button component for toggle to aid accessibility
author
Adam Dullage
<redacted>
Thu, 4 Jul 2024 16:16:41 +0000
(17:16 +0100)
committer
Adam Dullage
<redacted>
Thu, 4 Jul 2024 16:16:41 +0000
(17:16 +0100)
client/components/Toggle.vue
patch
|
blob
|
history
diff --git
a/client/components/Toggle.vue
b/client/components/Toggle.vue
index 753bef8629a4064d99767ed135e15fb93253b250..c01d8534b9b8173fff6dfaf0f03f8ab62bf7b139 100644
(file)
--- a/
client/components/Toggle.vue
+++ b/
client/components/Toggle.vue
@@
-1,5
+1,5
@@
<template>
- <
div
+ <
button
class="flex cursor-pointer items-center text-nowrap rounded bg-theme-background px-2 py-1 text-theme-text-muted"
>
<span v-if="label" class="mr-2">{{ label }}</span>
@@
-11,7
+11,7
@@
height="1em"
viewBox="2 7 20 10"
></SvgIcon>
- </
div
>
+ </
button
>
</template>
<script setup>
git clone https://git.99rst.org/PROJECT