Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/modules/docs/components/docs.search.component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
class="docs-search__trigger text-none justify-start"
prepend-icon="fa-solid fa-magnifying-glass"
:block="block"
:size="size"
data-test="docs-search-trigger"
@click="open"
>
Expand Down Expand Up @@ -147,8 +148,10 @@ import { useDocsStore } from '../stores/docs.store';
import config from '@/config';

defineProps({
/** Render the trigger button full-width (used in the nav sidebar). */
/** Render the trigger button full-width (used in the nav sidebar + home hero). */
block: { type: Boolean, default: false },
/** Vuetify size for the trigger button (e.g. 'large' for the home hero). */
size: { type: String, default: undefined },
});

const router = useRouter();
Expand Down Expand Up @@ -382,7 +385,9 @@ defineExpose({ open, close });
</script>

<style scoped>
.docs-search__trigger {
/* Floor only the inline (non-block) trigger; block usages (nav sidebar + home
hero) fill their container, so this must not override Vuetify's block width. */
.docs-search__trigger:not(.v-btn--block) {
min-width: 180px;
}

Expand Down
12 changes: 7 additions & 5 deletions src/modules/docs/views/docs.home.view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
avatar-color="primary"
/>

<!-- Search affordance (⌘K / "/") -->
<v-row class="mt-1" justify="center">
<v-col cols="12" sm="8" md="6">
<DocsSearch data-test="docs-home-search" />
<!-- Primary search affordance (⌘K / "/"): the landing's main entry point.
Left-aligned to the header + door axis (not floated centre) and width
capped so it reads as a search bar, not a full-bleed band. -->
<v-row class="mt-5 mb-2">
<v-col cols="12" sm="9" md="6" lg="5">
<DocsSearch block size="large" data-test="docs-home-search" />
</v-col>
</v-row>

Expand All @@ -28,7 +30,7 @@

<template v-else>
<!-- Persona doors: one per audience, accent differentiates rather than repeats -->
<v-row class="mt-3" data-test="docs-home-personas">
<v-row class="mt-8" data-test="docs-home-personas">
<v-col
v-for="persona in personas"
:key="persona.key"
Expand Down
Loading