Replace div element with actual button element for toast notification close
control. Adds type='button' and aria-label for accessibility. Maintains all
Alpine.js functionality via @click handler.
WCAG 2.1 AA compliance: 1.3.1 Info and Relationships
<template x-for="toast in toasts" :key="toast.id">
<div class="toast" :class="`toast-${toast.type}`" x-show="toasts.length > 0">
<span x-text="toast.message"></span>
- <div class="toast-close" @click="removeToast(toast.id)"></div>
+ <button class="toast-close" @click="removeToast(toast.id)" type="button" aria-label="Close notification"></button>
</div>
</template>
</div>