Files
sure/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

8 lines
248 B
Plaintext

<% 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 %>