mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-28 18:51:06 +00:00
566a574c0a
* Add handler for `phx:page-loading-stop` that focuses either the first `<h1>` child of `<main>`, or `<main>` directly if no child `<h1>` is present. Make this our focus target. * Cache original `tabindex` of target, if any, and assign it a temporary `tabindex1 of -1. * Focus the target. * After a long timeout, either restore the target's original `tabindex` or remove the temporary -1 value. Short timeouts didn't seem to perform the focus step. Neither did nested `requestAnimationFrame` calls. |
||
---|---|---|
.. | ||
css | ||
js | ||
vendor | ||
package-lock.json | ||
package.json | ||
postcss.config.js | ||
tailwind.config.js |