Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow aria-busy on submit buttons #60

Closed
dave-irvine opened this issue Nov 22, 2021 · 1 comment
Closed

Allow aria-busy on submit buttons #60

dave-irvine opened this issue Nov 22, 2021 · 1 comment

Comments

@dave-irvine
Copy link

Hi!

I've got a form with a submit button that I'd like to show a loading indicator https://picocss.com/docs/#loading when I submit the form, but I can see in the source that input's aren't allowed to have the indicator https://github.com/picocss/pico/blob/master/scss/utilities/_loading.scss#L12

<form>
<input type="submit" value="Submit" aria-busy="true" />
</form>

Is there anything I can do to make this work?

@dave-irvine
Copy link
Author

Ah, <input> can't have the necessary ::before pseudo element. Use a <button> with a type attribute instead:

<form>
<button type="submit">Submit</button>
</form>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant