Skip to content

Conversation

@leo-naeka
Copy link
Contributor

🤔 Pourquoi ?

https://www.notion.so/plateforme-inclusion/Disparition-automatique-des-toasts-apr-s-un-certain-d-lais-e327e924783348b0a7d26a088fce6dd6?pvs=4

🍰 Comment ?

  • Suppression de l'affichage sticky par défaut
  • Initialisation des toasts + affichage au chargement de la page

💻 Captures d'écran

Enregistrement.de.l.ecran.2024-05-03.a.18.38.13.mp4

@leo-naeka leo-naeka added the modifié Modifié dans le changelog. label May 3, 2024
@leo-naeka leo-naeka self-assigned this May 3, 2024
@notion-workspace
Copy link

@leo-naeka leo-naeka added this pull request to the merge queue May 6, 2024
Merged via the queue into master with commit d7d4bb0 May 6, 2024
@leo-naeka leo-naeka deleted the leo/hide-toasts-after-6s branch May 6, 2024 07:54
});
});

document.querySelectorAll(".toast-container .toast").forEach(
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 l'impression que c'était le but du code JS juste au dessus qui a été cassé par https://github.com/gip-inclusion/les-emplois/pull/3102/files#diff-6a8880b38d2ee7e55beabe7d64088997af158b5afacc35bdb476513a5b343e85L58-R58 .
L'avantage de la version précédente était qu'elle gérait également (a priori) les toasts rajoutés en htmx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants