From 4fc7880187a60a55a7a3e0ec4fa51ea706fd5474 Mon Sep 17 00:00:00 2001 From: elvira Date: Tue, 3 Nov 2026 00:01:42 +0200 Subject: [PATCH] Markup: stable island targets for wishlist, account link and CSRF meta - x-wishlist-button gets data-wishlist-product on its form root; the server-rendered aria-pressed stays for now. - Both header account links (desktop and mobile menu) share [data-account-link]. - The CSRF meta tag gets id="csrf-token". No visible change. Co-Authored-By: Claude Opus 5.5 --- resources/views/components/header.blade.php | 5 ++++- resources/views/components/wishlist-button.blade.php | 5 +++++ resources/views/layouts/app.blade.php | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/resources/views/components/header.blade.php b/resources/views/components/header.blade.php index 99219aa..b418dcf 100644 --- a/resources/views/components/header.blade.php +++ b/resources/views/components/header.blade.php @@ -55,8 +55,10 @@ class="hidden lg:flex items-center justify-center w-10 h-10 hover:opacity-70 tra - {{-- Account — the account page, or login for guests --}} + {{-- Account — the account page, or login for guests. [data-account-link] + is the island target shared with the mobile menu's link. --}}
  • diff --git a/resources/views/components/wishlist-button.blade.php b/resources/views/components/wishlist-button.blade.php index ea306f8..ece8d6f 100644 --- a/resources/views/components/wishlist-button.blade.php +++ b/resources/views/components/wishlist-button.blade.php @@ -3,6 +3,10 @@ `wishlist` Stimulus controller turns the submit into a fetch and flips aria-pressed, which the CSS (group-aria-pressed) uses to swap the icons. + [data-wishlist-product] is the island target: the heart state will come + from the islands request. aria-pressed is still rendered server-side for + now. + Usage: --}} @props(['productId']) @@ -16,6 +20,7 @@
    - + {{-- Favicons --}}