Replies: 2 comments 4 replies
-
Bonjour, Si vous n’utilisez pas directement et uniquement DsfrNavigation, c’est à vous de donner un |
Beta Was this translation helpful? Give feedback.
1 reply
-
Html du bouton généré lorsque je suis bien sur une page d'un des liens du menu |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bonjour,
Tout d'abord, merci pour ce portage du DSFR bien pratique.
Je cherche à utiliser le menu déroulant DsfrNavigationMenu. Mais lorsque je navigue sur une page en cliquant sur un lien du menu, le menu se ferme (fonctionnement normal) mais le bouton drop down n'est pas marqué comme actif pour signaler que l'on se situe bien sur une page du menu en question.
Mon code :
Script
`const navItems = ref(
{
title: 'Nom de menu original',
links: [
{
text: 'Valeur 1',
to: '/lien1',
},
{
text: 'Valeur 2',
to: '/lien2',
},
{
text: 'Valeur 3',
to: '/lien3',
},
],
}
const expandedMenuId = ref(undefined)
const toggle = (event:any) => {
expandedMenuId.value = event
}
`
Template :
`
`
j'ai l'impression que le bouton drop down n'a pas l'attribut aria-current="true" dans le html généré
Est-ce que vous pouvez m'aider ?
Beta Was this translation helpful? Give feedback.
All reactions