Skip to content

Commit 991a179

Browse files
committed
Fix flash messages coloring
Previously, all flash messages were showing with the same (black) background. Internally, the flash object converts and stores keys as strings [1]. [1] https://github.com/rails/rails/blob/main/actionpack/lib/action_dispatch/middleware/flash.rb#L163
1 parent 7d380c9 commit 991a179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin/app/views/layouts/solidus_admin/application.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<div class="fixed inset-x-0 bottom-3 flex items-center justify-center flex-col gap-3 pointer-events-none" role="alert">
3131
<% flash.each do |key, message| %>
32-
<%= render component("ui/toast").new(text: message, scheme: key == :error ? :error : :default) %>
32+
<%= render component("ui/toast").new(text: message, scheme: key.to_sym == :error ? :error : :default) %>
3333
<% end %>
3434
</div>
3535
</body>

0 commit comments

Comments
 (0)