Skip to content

Commit 8c0d280

Browse files
committed
chore(FontSwitcher): 🎨 styling
1 parent 212ff48 commit 8c0d280

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/FontSwitcher/FontSwitcherItem.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ const activeFont = useStorage('activeFont', '')
77

88
<template>
99
<div class="VPMenuLink" @click="activeFont = fontName">
10-
<span class="link" :class="[activeFont === fontName && 'active']">{{ fontName }}</span>
10+
<button class="link" :class="[activeFont === fontName && 'active']">
11+
{{ fontName }}
12+
</button>
1113
</div>
1214
</template>
1315

1416
<style lang="css" scoped>
1517
.link {
18+
width: 100%;
19+
text-align: left;
1620
display: block;
1721
border-radius: 6px;
1822
padding: 0 12px;
@@ -33,5 +37,7 @@ const activeFont = useStorage('activeFont', '')
3337
3438
.link.active {
3539
color: var(--vp-c-brand-1);
40+
background-color: unset;
41+
cursor: default;
3642
}
3743
</style>

0 commit comments

Comments
 (0)