Skip to content

Commit 1a8ba38

Browse files
committed
style: use accent colors for button and links
1 parent 930a25e commit 1a8ba38

4 files changed

Lines changed: 9 additions & 11 deletions

File tree

app/components/AppHeader.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,8 @@ onKeyStroke(
183183
:aria-label="$t('nav.open_menu')"
184184
:aria-expanded="showMobileMenu"
185185
@click="showMobileMenu = !showMobileMenu"
186-
>
187-
<span class="w-6 h-6 inline-block i-carbon:menu" aria-hidden="true" />
188-
</ButtonBase>
186+
iconclass="i-carbon:menu"
187+
/>
189188
</div>
190189
</nav>
191190

app/components/Button/Base.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ defineExpose({
3333
:class="{
3434
'text-sm px-4 py-2': variant !== 'tag',
3535
'text-xs px-2 py-0.5': variant === 'tag',
36-
'bg-bg-muted text-fg-muted hover:enabled:(text-fg border-border-hover)': variant === 'tag',
37-
'text-bg bg-fg hover:enabled:(bg-fg/90)': variant === 'primary',
38-
'bg-transparent text-fg hover:enabled:(bg-fg text-bg border-fg)': variant === 'secondary',
36+
'bg-transparent text-fg hover:enabled:(bg-accent/30 border-fg)':
37+
variant === 'tag' || variant === 'secondary',
38+
'text-bg bg-accent hover:enabled:(bg-accent/50)': variant === 'primary',
3939
}"
4040
:type="props.type"
4141
:disabled="disabled ? true : undefined"

app/components/Header/AccountMenu.client.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ function openAuthModal() {
5959
<div ref="accountMenuRef" class="relative flex min-w-24 justify-end">
6060
<ButtonBase
6161
type="button"
62-
class="relative flex items-center gap-2 px-2 py-1.5 rounded-md transition-colors duration-200 hover:bg-bg-subtle hover:text-accent focus-visible:outline-accent/70"
6362
:aria-expanded="isOpen"
6463
aria-haspopup="true"
6564
@click="isOpen = !isOpen"

app/components/Link/Base.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ const props = withDefaults(
5959
v-else
6060
class="group inline-flex gap-x-1 items-center justify-center"
6161
:class="{
62-
'text-fg underline-offset-[0.2rem] underline decoration-1 decoration-fg/50 hover:(no-underline text-fg/80) transition-colors duration-200':
62+
'text-fg underline-offset-[0.2rem] underline decoration-1 decoration-fg/50 hover:(no-underline text-accent) transition-colors duration-200':
6363
variant === 'link',
6464
'gap-x-1 font-mono border border-border rounded-md transition-all duration-200 aria-current:(bg-fg text-bg border-fg hover:enabled:(text-bg/50))':
6565
variant !== 'link',
6666
'text-sm px-4 py-2': variant !== 'tag' && variant !== 'link',
6767
'text-xs px-2 py-0.5': variant === 'tag',
68-
'bg-bg-muted text-fg-muted hover:(text-fg border-border-hover)': variant === 'tag',
69-
'text-bg bg-fg hover:(bg-fg/90)': variant === 'button-primary',
70-
'bg-transparent text-fg hover:(bg-fg text-bg border-fg)': variant === 'button-secondary',
68+
'bg-transparent text-fg hover:(bg-accent/30 border-fg)':
69+
variant === 'tag' || variant === 'button-secondary',
70+
'text-bg bg-fg hover:(bg-accent/90)': variant === 'button-primary',
7171
}"
7272
:to="to"
7373
:href="href"

0 commit comments

Comments
 (0)