* Render toast as aria-live region on page load
This tells the screen reader to announce updates that happen inside the
`span#toast` element.
* Update code sample in example text
* Use <output> element to announce form action
* Fix anchor id for 'Configuring Response Handling Examples' header
* Move heading anchor links to right of heading
To make sure they don't get cut off by weird browsers.
Also make the anchor link text the 'link' emoji which is more fun than
the hashtag.
* Keep anchor links on the left
* Make entire header the anchor link and show link emoji on hover
* Fix anchor link colour in dark mode
* Revert anchor link icon to hash character
---------
Co-authored-by: 1cg <469183+1cg@users.noreply.github.com>
docs: fix `this` binding in onClick .then handler with arrow fn
Update the `.then()` handler in the `onClick` attribute to use an arrow function instead of a traditional `function(arg)` expression.
This fixes the `this` binding within the lexical scope, ensuring that `this` is bound to the `button` instead of the `window` and resolving the issue.
Fixes/Closes issue #2257
* Minimize re-rendering of 'bulk update users' table
And use ARIA to announce a summary of the bulk update. By using a
checkbox input to represent the activation status, we don't need to
re-render it when it's changed, because the checkbox itself manages that
state.
Re: #1431
* Improve screen reader pronunciation
`keyup` only works with a keyboard, and ignores pasting with a right click or programmatically updating the value with JS.
`input` is a better event for detecting any "inputs to the input".
Co-authored-by: Sam Eaton <sam@eaton.party>
* Current behavior testing
Testing current library behavior
* Test should remove correct handler
* Add question in htmx:confirm event detail
* Allow skipping window.confirm
* Additional test without hx-confirm value
* Wrap htmx.off in finally
* More correct assertion in case of no calls to confirm
* Remove erroneously added formatting
* Remove erroneously added formatting
* Documentation, fix loop
---------
Co-authored-by: mat <matt@techspace.asia>
* add missing quotation mark
* make `.htmx-indicator` unsortable
* change cursors to indicate grabbable items
* bug fix:
bug:
when an item is dragged fast enough before the previous request was
completed, dropping after request completion resulted in the addition
of an extra item to the list.
fix:
disable sortable on End event, and re-enable it on htmx:afterSwap.
* add a few inline comments + better naming
* prevent binary data loss by restructuring forms.
* Update www/content/docs.md
Co-authored-by: Denis Palashevskii <20725046+Renerick@users.noreply.github.com>
* moved the example to example directory
* Updated documentation based on feedback
---------
Co-authored-by: gbourant <root@gbourant.com>
Co-authored-by: Denis Palashevskii <20725046+Renerick@users.noreply.github.com>