summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-20 14:10:58 +0200
committerDanilo M. <danix@danix.xyz>2026-04-20 14:10:58 +0200
commit2be9dd40a099542c73b2f0fa5d683a44883be9b9 (patch)
tree3fdead9e8d86f8f7cb0d1a3e699e612ba9b12e5c
parentb78c8bf241f8189e70097589fef5bf4244de88f9 (diff)
downloaddanixxyz-2be9dd40a099542c73b2f0fa5d683a44883be9b9.tar.gz
danixxyz-2be9dd40a099542c73b2f0fa5d683a44883be9b9.zip
fix: add x-data directive to search button for Alpine.js binding
Search icon button was missing x-data attribute, preventing Alpine.js from processing @click directive. Added minimal x-data to enable event dispatching. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
-rw-r--r--themes/danix-xyz-hacker/layouts/partials/header.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/layouts/partials/header.html b/themes/danix-xyz-hacker/layouts/partials/header.html
index 63151ba..739c776 100644
--- a/themes/danix-xyz-hacker/layouts/partials/header.html
+++ b/themes/danix-xyz-hacker/layouts/partials/header.html
@@ -23,6 +23,7 @@
<div class="flex items-center gap-4 md:gap-6">
<!-- Search button (desktop only) -->
<button
+ x-data
@click="$dispatch('open-search')"
aria-label="{{ i18n "searchArticles" }}"
class="hidden md:flex p-2 rounded hover:bg-surface transition-colors focus:outline-none focus:ring-2 focus:ring-accent"