mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 21:45:23 +02:00
Fix clean import dark mode styles
This commit is contained in:
parent
0c79b335f1
commit
adc5bf58d7
3 changed files with 6 additions and 6 deletions
|
@ -46,11 +46,11 @@ module ImportsHelper
|
|||
end
|
||||
|
||||
def cell_class(row, field)
|
||||
base = "text-sm focus:ring-gray-900 focus:border-gray-900 w-full max-w-full disabled:text-subdued"
|
||||
base = "bg-container text-sm focus:ring-gray-900 theme-dark:focus:ring-gray-100 focus:border-solid w-full max-w-full disabled:text-subdued"
|
||||
|
||||
row.valid? # populate errors
|
||||
|
||||
border = row.errors.key?(field) ? "border-red-500" : "border-transparent"
|
||||
border = row.errors.key?(field) ? "border-destructive" : "border-transparent"
|
||||
|
||||
[ base, border ].join(" ")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue