diff --git a/configs/ecospheres/config.yaml b/configs/ecospheres/config.yaml index 33720457c..18b3a49dc 100644 --- a/configs/ecospheres/config.yaml +++ b/configs/ecospheres/config.yaml @@ -29,7 +29,7 @@ website: # leave empty if not pertinent logo_operator: homepage: - title: 'La plateforme des données de la transition écologique' + title: subtitle: sections: - title: diff --git a/src/components/header/HeaderSearch.vue b/src/components/SearchComponent.vue similarity index 82% rename from src/components/header/HeaderSearch.vue rename to src/components/SearchComponent.vue index 8cefdfff2..d67179ee2 100644 --- a/src/components/header/HeaderSearch.vue +++ b/src/components/SearchComponent.vue @@ -14,12 +14,19 @@ defineProps({ searchLabel: { type: String, required: true + }, + placeholder: { + type: String, + default: '' + }, + id: { + type: String, + default: 'select-search' } }) const emits = defineEmits(['search']) -const placeholder = config.website.header_search.placeholder const dropdown = config.website.header_search.dropdown const query = ref('') const selectedMultiSearch = ref() @@ -58,18 +65,18 @@ const dropdownLabel = (text: string) => { />
-
@@ -115,6 +122,19 @@ const dropdownLabel = (text: string) => { .visible-label { margin-left: var(--icon-width); } + .multiselect__placeholder { + margin-inline-start: var(--icon-width); + font-style: italic; + color: var(--text-mention-grey); + white-space: nowrap; + text-overflow: ellipsis; + width: 100%; + overflow: hidden; + } + ::placeholder { + font-style: italic; + color: var(--text-mention-grey); + } } :deep(.multiselect__tags) { border: 0; diff --git a/src/components/header/HeaderComponent.vue b/src/components/header/HeaderComponent.vue index c1c5e1994..28ade0c56 100644 --- a/src/components/header/HeaderComponent.vue +++ b/src/components/header/HeaderComponent.vue @@ -9,8 +9,8 @@ import { type StyleValue } from 'vue' +import SearchComponent from '../SearchComponent.vue' import type { DsfrHeaderMenuLinkProps } from './DsfrHeaderMenuLink.vue' -import HeaderSearch from './HeaderSearch.vue' type DsfrHeaderProps = { serviceTitle?: string @@ -192,7 +192,7 @@ const badgeCss = 'fr-badge fr-badge--sm fr-badge--' + props.badgeStyle /> @@ -217,7 +217,7 @@ const badgeCss = 'fr-badge fr-badge--sm fr-badge--' + props.badgeStyle > Fermer - { router.push({ name: 'datasets', query: { q: query.value } }) } -const homepageTitle = config.website.homepage.title const searchConfig = config.website.search_bar useHead({ @@ -34,29 +34,22 @@ useHead({