Commit 3469e411 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

Merge branch 'fix/ecogestures-design' into 'dev'

fix(ecogestures): fix default displayed text + broken display

See merge request web-et-numerique/llle_project/ecolyo!445
parents adea7ccd ac687f4b
......@@ -136,7 +136,7 @@ const EcogestureList: React.FC<EcogestureListProps> = ({
}}
aria-controls="simple-menu"
aria-haspopup="true"
aria-label={t(`ecogesture.${activeFilter}`)}
aria-label={t(`ecogesture.MENU_TITLE`)}
onClick={toggleMenu}
variant="contained"
>
......@@ -146,7 +146,9 @@ const EcogestureList: React.FC<EcogestureListProps> = ({
openDropDown ? 'ecogestures opened' : 'ecogestures'
}
>
{t(`ecogesture.${activeFilter}`)}
{activeFilter === 'ALL'
? t(`ecogesture.MENU_TITLE`)
: t(`ecogesture.${activeFilter}`)}
</span>
</Button>
<Menu
......
......@@ -173,4 +173,5 @@ div.filter-menu {
}
.filter-menu-icon {
margin-left: auto;
min-width: 0;
}
......@@ -286,7 +286,8 @@
"ecogesture": {
"title_tab_1": "Tous les écogestes",
"title_tab_2": "Écogestes adaptés à votre profil",
"ALL": "Filtrer",
"MENU_TITLE": "Filtrer",
"ALL": "Tous les usages",
"HEATING": "Chauffage",
"AIR_CONDITIONING": "Climatisation",
"ECS": "Eau chaude",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment