Skip to content

Commit

Permalink
THE-1364 placement du selecteur de langues mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
clementdelafontaine committed Oct 10, 2024
1 parent 3b46bb2 commit 8e51a9e
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions components/common/HeaderMobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,17 @@
<!-- Menu burger mobile -->
<v-fade-transition>
<div v-show="showMenu" ref="expandedMenu" tabindex="0" class="expanded-search-bar-container white-containers" role="list">
<div class="languages-btn-container" role="list" :aria-label="$t('header.localeSelection')">
<v-btn flat @click="setLanguage('fr')" aria-label="Changer la langue du site en français"
:class="locale === 'fr' ? 'selected' : ''">FR</v-btn>
<v-divider vertical role="presentation"></v-divider>
<v-btn flat @click="setLanguage('en')" aria-label="Switch language to English"
:class="locale === 'en' ? 'selected' : ''">EN</v-btn>
<v-divider vertical role="presentation"></v-divider>
<v-btn flat @click="setLanguage('es')" aria-label="Cambiar el idioma a español"
:class="locale === 'es' ? 'selected' : ''">ES</v-btn>
<div class="languages-btn-layout-wrapper">
<div class="languages-btn-container" role="list" :aria-label="$t('header.localeSelection')">
<v-btn flat @click="setLanguage('fr')" aria-label="Changer la langue du site en français" density="compact" size="small"
:class="locale === 'fr' ? 'selected' : ''">FR</v-btn>
<v-divider vertical role="presentation"></v-divider>
<v-btn flat @click="setLanguage('en')" aria-label="Switch language to English" density="compact" size="small"
:class="locale === 'en' ? 'selected' : ''">EN</v-btn>
<v-divider vertical role="presentation"></v-divider>
<v-btn flat @click="setLanguage('es')" aria-label="Cambiar el idioma a español" density="compact" size="small"
:class="locale === 'es' ? 'selected' : ''">ES</v-btn>
</div>
</div>
<div class="expanded-burger-menu">
<div class="nav-bar-list-burger">
Expand Down Expand Up @@ -358,10 +360,22 @@ onMounted(() => {
.languages-btn-container {
padding-top: 10px;
display: inline-flex;
margin-bottom: 10px;
width: fit-content;
justify-self: center;
:deep(.v-btn--size-small) {
font-size: unset;
min-width: unset;
width: 2.3em;
}
}
.languages-btn-layout-wrapper {
width: 100%;
display: grid;
grid-template-columns: 3fr 2fr;
height: 35px;
display: inline-grid;
grid-template-columns: 1fr 1fr;
}
.languages-btn {
Expand Down

0 comments on commit 8e51a9e

Please sign in to comment.