mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-03 04:25:21 +02:00
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
This commit is contained in:
parent
0f886c6fd5
commit
4699423eb4
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<% flash.each do |type, msg| %>
|
||||
<div class="p-4 bg-<%= type == 'notice' ? 'blue' : 'red' %>-200 rounded-lg"><%= msg %></div>
|
||||
<div class="p-4 <%= type == 'notice' ? 'bg-blue-200' : 'bg-red-200' %> rounded-lg"><%= msg %></div>
|
||||
<% end %>
|
||||
|
||||
<% errors.each do |message| %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue