-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BREAKING] Rendre le bouton pour ouvrir la barre de navigation accessible (PIX-16754) #833
base: dev
Are you sure you want to change the base?
Conversation
Une fois l'application déployée, elle sera accessible à cette adresse https://ui-pr833.review.pix.fr |
386bec5
to
9a95cfb
Compare
@@ -58,7 +58,7 @@ module('Integration | Component | pix-navigation', function (hooks) { | |||
test('it hides the burger menu', async function (assert) { | |||
// when | |||
const screen = await render( | |||
hbs`<PixNavigation @navigationAriaLabel='label' @menuLabel='menu' />`, | |||
hbs`<PixNavigation @navigationAriaLabel='label' @openLabel='open' @closeLabel='close' />`, | |||
); | |||
assert.notOk(screen.queryByRole('button', { name: 'menu' })); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: on pourrait utiliser screen.getByRole("menu", {name: "open"})
pour valider qu'on a le bon label quand le menu et ouvert ou fermé
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sauf qu'on ne teste pas lorsque la taille d'écran nécessite d'afficher le bouton je crois:(
question : Est ce que l'attribut |
Ça dépend, est-ce qu'on veut pouvoir décider que la barre est affichée même lorsque le bouton est présent? |
9a95cfb
to
c87d3b3
Compare
c87d3b3
to
6e50fa9
Compare
💥 BREAKING_CHANGES
Dans le composant PixNavigation, l'attribut "menuLabel" est remplacé par:
🎄 Problème
Pour le composant PixNavigation, on avait un simple attribut menuLabel, qui permettait d'avoir un label sur le menu, mais pas de savoir s'il était ouvert ou fermé.
🎁 Proposition
Ajouter 2 paramètres à la place de menuLabel. Le openLabel sera le label à afficher lorsque la barre est fermée et closeLabel lorsqu'elle sera ouverte.
🌟 Remarques
On a pas mis des noms par défaut aux boutons.
🎅 Pour tester