diff --git a/lib/berrypod_web/components/layouts/shop_root.html.heex b/lib/berrypod_web/components/layouts/shop_root.html.heex index 137eecb..7bb741e 100644 --- a/lib/berrypod_web/components/layouts/shop_root.html.heex +++ b/lib/berrypod_web/components/layouts/shop_root.html.heex @@ -80,19 +80,8 @@ This shop works without JavaScript, but some features work better with it enabled. -
+ <%!-- Data attributes live on .shop-container inside LiveView for live updates --%> +
{@inner_content}
diff --git a/test/berrypod_web/live/theme_css_consistency_test.exs b/test/berrypod_web/live/theme_css_consistency_test.exs index a2605a8..b080c08 100644 --- a/test/berrypod_web/live/theme_css_consistency_test.exs +++ b/test/berrypod_web/live/theme_css_consistency_test.exs @@ -26,7 +26,7 @@ defmodule BerrypodWeb.ThemeCSSConsistencyTest do {:ok, _view, html} = live(log_in_user(conn, user), ~p"/") # Verify themed element exists with theme data attributes - assert html =~ ~r/]*class="themed/ + assert html =~ ~r/class="[^"]*themed/ assert html =~ ~r/data-mood="/ assert html =~ ~r/data-typography="/ assert html =~ ~r/data-shape="/ @@ -39,7 +39,7 @@ defmodule BerrypodWeb.ThemeCSSConsistencyTest do {:ok, _view, html} = live(conn, ~p"/?edit=theme") # Verify themed element exists with theme data attributes - assert html =~ ~r/]*class="themed/ + assert html =~ ~r/class="[^"]*themed/ assert html =~ ~r/data-mood="/ assert html =~ ~r/data-typography="/ assert html =~ ~r/data-shape="/