-
Notifications
You must be signed in to change notification settings - Fork 39
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
Unify messages styles #4374
Unify messages styles #4374
Conversation
</button> | ||
{% endif %} | ||
</div> | ||
{% heroicon_outline "check" stroke_width=2 class="inline-block w-4 h-4 me-1" aria_hidden=true %} |
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.
everything worked well, definitely feels much more consistent! super minor but the toast popup uses check-circle
, not sure if it matters to make the two the same
hypha/hypha/templates/includes/_toast-placeholder.html
Lines 120 to 122 in 88ccdc8
<span x-show="toast.type == 'success'" aria-hidden="true"> | |
{% heroicon_solid "check-circle" size=24 class="inline-block rounded-full" %} | |
</span> |
This updates the full page load to use the same mechanism to display the messages from `django.contrib.messages` as used during htmx request This is achieved by generating a javascript custom event for toast component instead of rendering html content. Add/update icons and color for different message types and handle long words and urls The web accessibility is maintained as the toast component handles it when it's is initialized. This is a further enhancement to #4374 to keep things DRY and consistent. --------- Co-authored-by: Fredrik Jonsson <[email protected]>
Fixes #4373
The htmx/toast messages and the django messages now use similar style and the same colours for error/success/info etc.
Also fixed some translations and related styling.
Test Steps