1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-25 08:09:38 +02:00
Maybe/app/views/shared/_auth_messages.html.erb
Rob Zolkos 4699423eb4
Fix dynamic classname generation (#287)
Tailwinds JIT compiler doesn't recognize concatenated partial class
names and will therefore not include these in the generated css.

Ref: https://tailwindcss.com/docs/content-configuration#dynamic-class-names
2024-02-03 21:01:58 -06:00

7 lines
248 B
Text

<% flash.each do |type, msg| %>
<div class="p-4 <%= type == 'notice' ? 'bg-blue-200' : 'bg-red-200' %> rounded-lg"><%= msg %></div>
<% end %>
<% errors.each do |message| %>
<div class="p-4 bg-red-200 rounded-lg"><%= message %></div>
<% end %>