Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

lab9fr
Copy link
Contributor

@lab9fr lab9fr commented Jan 23, 2025

Correctif des variables du sidemenu

@lab9fr lab9fr added the correctif Quelque chose ne fonctionne pas label Jan 23, 2025
@lab9fr lab9fr added this to the 1.13.1 milestone Jan 23, 2025
@lab9fr lab9fr self-assigned this Jan 23, 2025
Copy link

finalisation sidemenu

<%- 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 } }) %>
Copy link
Contributor

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 ?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@lab9fr lab9fr changed the title 🐛 fix(sidemenu): correctif template ejs [DSFR-44] 🐛 fix(sidemenu, navigation, header): correctif template ejs [DSFR-44] Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
correctif Quelque chose ne fonctionne pas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants