Rende leggibili card, badge e testi mute in tema scuro.
Le righe task di oggi restavano crema con testo chiaro; i badge e gli heading senza dark: si perdevano sullo sfondo. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
require "test_helper"
|
||||
|
||||
class ApplicationHelperTest < ActionView::TestCase
|
||||
test "priority badge includes dark theme colors" do
|
||||
html = priority_badge("high")
|
||||
|
||||
assert_includes html, "bg-amber-100"
|
||||
assert_includes html, "dark:bg-amber-950"
|
||||
assert_includes html, "dark:text-amber-200"
|
||||
end
|
||||
|
||||
test "stage badge includes dark theme colors" do
|
||||
html = stage_badge("interested")
|
||||
|
||||
assert_includes html, "dark:bg-amber-950"
|
||||
assert_includes html, "dark:text-amber-200"
|
||||
end
|
||||
|
||||
test "status badge includes dark theme colors" do
|
||||
html = status_badge("prospect")
|
||||
|
||||
assert_includes html, "dark:bg-sky-950"
|
||||
assert_includes html, "dark:text-sky-200"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user