Laravel Livewire Tables v4.1.0 adds keyboard navigation and focus trap support
The laravel-livewire-tables library released version 4.1.0 with two key accessibility improvements for datatables. Alpine.js's x-trap directive was integrated to manage focus inside popovers, ensuring keyboard users can tab within dropdowns and exit via ESC with focus returned to the trigger. Drag-to-reorder handles were upgraded into focusable buttons supporting ArrowUp and ArrowDown keys, making row reordering possible without a mouse. The release also introduces an opt-in client-side column visibility toggle that uses Alpine's x-show to switch columns instantly, avoiding a Livewire server round-trip. Automated Pest tests were added to guard the new ARIA attributes and focus-trap markup against accidental removal in future refactors.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in