mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 08:09:38 +02:00
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
7 lines
248 B
Text
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 %>
|