From 4a13b6d993346df6aadf5b6b24ec3b506908a04f Mon Sep 17 00:00:00 2001 From: Sean Doyle Date: Thu, 11 Nov 2021 10:05:08 -0500 Subject: [PATCH] Toggle `[aria-busy="true"]` during requests (#199) Toggle the `[aria-busy="true"]` attribute to be present on a `` element when its navigating, a `
` element when it's submitting, or on the `` element during any request, then remove the attribute after the submission or navigation completes. This is a change from the `turbo-frame[busy]` attribute, but aims to achieve the same purpose. For the sake of backwards compatibility, Turbo will continue to toggle the `[busy]` attribute during Frame navigations. By unifying a single, consistent attribute, consumer applications can use a single attribute CSS selector at different depths within their page to hide or show loading indicators. For example, consider a loading indication spinner animation within a submit button that animates while a submission is in progress: ```html