Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Toggle [aria-busy] instead of [busy]
Since `<turbo-frame>` elements are custom elements, the framework has total control over the names of the attributes. There are existing semantics for what we've introduced as `[busy]`: the ARIA guidelines suggest toggling [aria-busy="true"][aria-busy] when an element is loading more content, and `aria-busy="false"` when the content is loaded. This provides an "interface" for loading styles through CSS attribute selectors, and hints to assistive technologies the state of the frame. As an alternative, we could continue to toggle the `[busy]` attribute, and encourage consumer applications to monitor mutations to the `[busy]` attribute (or listen to [`turbo:frame-visit` and `turbo:frame-load` events][events]) to toggle it themselves. [aria-busy]: https://www.w3.org/TR/wai-aria-1.1/#aria-busy [events]: #59
- Loading branch information