discourse/app/assets/javascripts/float-kit/addon/lib
Joffrey JAFFEUX 552cf56afe
DEV: toasts improvements (#24046)
- more subtle animation when showing a toast
- resumes auto close when removing the mouse from the toast
- correctly follows reduced motion
- uses output with role status as element: https://web.dev/articles/building/a-toast-component
- shows toasts inside a section element
- prevents toast to all have the same width
- fixes a bug on mobile where we would limit the width and the close button wouldn't show correctly aligned

I would prefer to have tests for this, but the conjunction of css/animations and our helper changing `discourseLater` to 0 in tests is making it quite challenging for a rather low value. We have system specs using  toasts ensuring they show when they should.
2023-10-23 15:23:10 +02:00
..
constants.js DEV: toasts improvements (#24046) 2023-10-23 15:23:10 +02:00
d-menu-instance.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
d-toast-instance.js DEV: toasts improvements (#24046) 2023-10-23 15:23:10 +02:00
d-tooltip-instance.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
float-kit-instance.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
get-scroll-parent.js DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
update-position.js DEV: Sort imports 2023-10-10 21:46:54 +01:00