simpleshop_theme/lib/simpleshop_theme_web/components
Jamey Greenwood f29772010e fix: resolve nested HTML documents causing LiveView binding errors
The shop.html.heex and shop_root.html.heex were both full HTML documents.
When nested (root layout + live layout), this created invalid HTML with
duplicate <!DOCTYPE>, <html>, <head>, and <body> tags.

This caused:
- "Cannot bind multiple views to the same DOM element" console errors
- Failed Lighthouse audits
- Potential rendering issues

Fix:
- shop_root.html.heex: Now contains the full HTML document with theme
  settings, CSS variables, and data attributes
- shop.html.heex: Now just passes through @inner_content

Results:
- Console errors: Gone
- Best Practices: 96 → 100
- Total Blocking Time: 140ms → 30ms
- HTML validation: Passes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 20:20:39 +00:00
..
layouts fix: resolve nested HTML documents causing LiveView binding errors 2026-01-21 20:20:39 +00:00
page_templates feat: add mobile bottom navigation bar 2026-01-20 22:03:42 +00:00
core_components.ex mix phx.new simpleshop_theme --database sqlite3 --adapter bandit --binary-id 2025-12-30 12:26:26 +00:00
layouts.ex mix phx.new simpleshop_theme --database sqlite3 --adapter bandit --binary-id 2025-12-30 12:26:26 +00:00
page_templates.ex refactor: consolidate shop and preview page templates 2026-01-17 22:17:59 +00:00
shop_components.ex feat: add mobile bottom navigation bar 2026-01-20 22:03:42 +00:00