-
Notifications
You must be signed in to change notification settings - Fork 61
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
🐛 fix(sidemenu, navigation, header): correctif template ejs [DSFR-44] #1073
base: main
Are you sure you want to change the base?
Conversation
<%- include('./sidemenu-menu.ejs', { sidemenuItem : item }); %> | ||
<% } else {%> | ||
<% item.classes = item.kind === 'button' ? [`${prefix}-sidemenu__btn`] : [`${prefix}-sidemenu__link`]; %> | ||
<% item.classes = item.type === 'button' ? [`${prefix}-sidemenu__btn`] : [`${prefix}-sidemenu__link`]; %> | ||
<% if (item.active) item.attributes['aria-current'] = 'page'; %> | ||
<%- include('../../../../core/template/ejs/action/action', { action: { ...item } }) %> |
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.
J'ai pas testé, mais on risque pas de se retouver avec un au niveau du template action ?
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.
Oui, je me suis posé la question, mis dans le pire des cas on a un type button, ce qui marche sur action.
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.
c'est surtout que c'est raccord avec la navigation, si on veut changer, il faudrait changer partout, ce qui peut être bien également. on pourrait aussi appeler cette prop template, c'est au final ce qu'elle est.
Correctif des variables du sidemenu