mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 20:14:08 +00: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:
@@ -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| %>
|
||||
|
||||
Reference in New Issue
Block a user