Fix dashboard dark mode readability by using theme-aware text colors
- Use and instead of hardcoded zinc colors in EditorDashboardLive - Apply same fix to MicroprintsLive description paragraph - All titles now respect the active theme and remain readable in both light and dark modes
This commit is contained in:
@@ -86,5 +86,15 @@ defmodule FirehoseWeb.EditorDashboardLiveTest do
|
||||
{:ok, _view, html} = live(conn, ~p"/editor/dashboard")
|
||||
refute html =~ "Live Post"
|
||||
end
|
||||
|
||||
test "renders with app layout including menu", %{conn: conn} do
|
||||
{:ok, _view, html} = live(conn, ~p"/editor/dashboard")
|
||||
# Verify the app layout is applied by checking for menu elements
|
||||
assert html =~ "Willem's firehose"
|
||||
assert html =~ "Blog"
|
||||
assert html =~ "Releases"
|
||||
assert html =~ "Contact"
|
||||
assert html =~ "Dashboard" # This should be in the menu
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user