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

Allow overrides for flash message styles #491

Open
sevenseacat opened this issue Aug 6, 2024 · 0 comments
Open

Allow overrides for flash message styles #491

sevenseacat opened this issue Aug 6, 2024 · 0 comments

Comments

@sevenseacat
Copy link
Member

When using views that set flash messages, eg. resettable - the styling of the flash messages should be customizable to fit with the rest of the app.

At the moment these are hardcoded here -

class="fixed top-2 right-2 mr-2 w-80 sm:w-96 z-50 rounded-lg p-3 text-sm
bg-emerald-100 dark:bg-emerald-200 text-emerald-800"
role="alert"
phx-click="lv:clear-flash"
phx-value-key="info"
>
<%= Phoenix.Flash.get(@flash, :info) %>
</p>
<% end %>
<%= if Phoenix.Flash.get(@flash, :error) do %>
<p
class="fixed top-2 right-2 mr-2 w-80 sm:w-96 z-50 rounded-lg p-3 text-sm
bg-rose-100 dark:bg-rose-200 text-rose-900"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant