Skip to content

Commit 9241f2a

Browse files
committed
cleanup
1 parent 837c94b commit 9241f2a

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

app/components/Header/SearchBox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ defineExpose({ focus })
128128
@blur="isSearchFocused = false"
129129
size="small"
130130
/>
131-
<button type="submit" class="sr-only" tabindex="-1">{{ $t('search.button') }}</button>
131+
<button type="submit" class="sr-only">{{ $t('search.button') }}</button>
132132
</div>
133133
</div>
134134
</form>

app/components/Link/Base.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,18 @@ const isButtonMedium = computed(() => props.size === 'medium' && !isLink.value)
7979
:class="{
8080
'flex': block,
8181
'inline-flex': !block,
82-
'underline-offset-[0.2rem] underline decoration-1 decoration-fg/30': !isLinkAnchor && isLink,
83-
'font-mono text-fg hover:(decoration-accent) focus-visible:(text-accent outline-offset-2)':
82+
'underline-offset-[0.2rem] underline decoration-1 decoration-fg/30':
83+
!isLinkAnchor && isLink && !noUnderline,
84+
'justify-start font-mono text-fg hover:(decoration-accent) focus-visible:(text-accent outline-offset-2)':
8485
isLink,
85-
'justify-center border border-solid border-border rounded-md outline-offset-2': isButton,
86+
'justify-center font-mono border border-solid border-border rounded-md outline-offset-2':
87+
isButton,
8688
'text-sm px-4 py-2': isButtonMedium,
8789
'text-xs px-2 py-0.5': isButtonSmall,
88-
'text-bg bg-fg border-fg hover:(bg-fg/80)': variant === 'button-primary',
89-
'text-fg bg-bg hover:(bg-fg/10 border-fg/10)': variant === 'button-secondary',
90+
'text-bg bg-fg border-fg hover:(bg-fg/80) aria-[current=true]:(bg-fg/80)':
91+
variant === 'button-primary',
92+
'text-fg bg-bg hover:(bg-fg/10 border-fg/10) aria-[current=true]:(bg-fg/10 border-fg/10)':
93+
variant === 'button-secondary',
9094
}"
9195
:to="to"
9296
:aria-keyshortcuts="ariaKeyshortcuts"

0 commit comments

Comments
 (0)