feat: fix light dark mode issue
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
3491b4b1ba
commit
cbed65de66
4 changed files with 66 additions and 25 deletions
|
|
@ -132,7 +132,7 @@ defmodule MvWeb.Layouts.SidebarTest do
|
|||
refute html =~ ~s(role="menuitem")
|
||||
|
||||
# Footer section should not be rendered
|
||||
refute html =~ "theme-controller"
|
||||
refute html =~ "data-theme-toggle"
|
||||
refute html =~ "locale-select"
|
||||
end
|
||||
|
||||
|
|
@ -253,8 +253,8 @@ defmodule MvWeb.Layouts.SidebarTest do
|
|||
# Check for language selector form
|
||||
assert html =~ ~s(action="/set_locale")
|
||||
|
||||
# Check for theme toggle
|
||||
assert has_class?(html, "theme-controller")
|
||||
# Check for theme toggle (using data attribute instead of class)
|
||||
assert html =~ "data-theme-toggle"
|
||||
|
||||
# Check for user menu/avatar
|
||||
assert has_class?(html, "avatar")
|
||||
|
|
@ -536,7 +536,7 @@ defmodule MvWeb.Layouts.SidebarTest do
|
|||
assert html =~ ~s(role="group")
|
||||
|
||||
# Footer section
|
||||
assert html =~ "theme-controller"
|
||||
assert html =~ "data-theme-toggle"
|
||||
assert html =~ ~s(action="/set_locale")
|
||||
|
||||
# Check that critical navigation exists (at least /members)
|
||||
|
|
@ -694,8 +694,8 @@ defmodule MvWeb.Layouts.SidebarTest do
|
|||
test "renders theme toggle" do
|
||||
html = render_sidebar(authenticated_assigns())
|
||||
|
||||
# Toggle is always visible
|
||||
assert has_class?(html, "theme-controller")
|
||||
# Toggle is always visible (using data attribute instead of class)
|
||||
assert html =~ "data-theme-toggle"
|
||||
assert html =~ "hero-sun"
|
||||
assert html =~ "hero-moon"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue