Skip to content

Commit 1591a10

Browse files
committed
feat(ui): highlight slash keyboard shortcut on header/home search bars
1 parent f18d64e commit 1591a10

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

app/components/Header/SearchBox.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ defineExpose({ focus })
3838

3939
<div class="relative group" :class="{ 'is-focused': isSearchFocused }">
4040
<div class="search-box relative flex items-center">
41-
<span
42-
class="absolute inset-is-3 text-fg-subtle font-mono text-sm pointer-events-none transition-colors duration-200 motion-reduce:transition-none [.group:hover:not(:focus-within)_&]:text-fg/80 group-focus-within:text-accent z-1"
41+
<kbd
42+
class="absolute inset-is-3 text-fg-subtle font-mono text-sm pointer-events-none transition-colors duration-200 motion-reduce:transition-none [.group:hover:not(:focus-within)_&]:text-fg/80 group-focus-within:text-accent z-1 rounded"
4343
>
4444
/
45-
</span>
45+
</kbd>
4646

4747
<InputBase
4848
id="header-search"

app/pages/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ defineOgImageComponent('Default', {
6969
/>
7070

7171
<div class="search-box relative flex items-center">
72-
<span
73-
class="absolute inset-is-4 text-fg-subtle font-mono text-lg pointer-events-none transition-colors duration-200 motion-reduce:transition-none [.group:hover:not(:focus-within)_&]:text-fg/80 group-focus-within:text-accent z-1"
72+
<kbd
73+
class="absolute inset-is-4 text-fg-subtle font-mono text-lg pointer-events-none transition-colors duration-200 motion-reduce:transition-none [.group:hover:not(:focus-within)_&]:text-fg/80 group-focus-within:text-accent z-1 rounded"
7474
>
7575
/
76-
</span>
76+
</kbd>
7777

7878
<InputBase
7979
id="home-search"

0 commit comments

Comments
 (0)