-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
v4.2: Spinners! #22960
v4.2: Spinners! #22960
Conversation
@mdo I think the facebook, cube, dots, mats and puff would be nice to have them in Bootstrap :). |
If you want to see them in action check this pen |
@patrickhlauke Do we need something like |
apologies for the radio silence. will explore this in the coming days. dropping some initial thoughts here:
|
further note:
|
If I'm reading your pen right, there are a few things to update:
Do we need custom JS added, too? Does this belong in the button JS, a docs snippet, or something else? |
got more testing to do. but the main quandary is: the "live" aspect of live regions cannot properly be demonstrated unless it's in an actual live scenario. if your page already contains some with, say, then, there's so many different scenarios where authors may use spinners. do we want to demonstrate them all? or do we want to just say, basically: look, this is the raw markup for a spinner. depending on how you use it, you'll likely want to make sure that what these spinners convey visually is also conveyed to AT. there's many possibilities, but here's a few examples. maybe link out to a single demo/example page that shows various things in action, all with their specific approaches. perhaps an expanded version of what i've started (and will expand further) in my codepen. not sure we want/need to enshrine specific variants of buttons that flip/flop between ready/busy, or special kinds of dialogs, or similar. those are perhaps too implementation-specific to be made generic enough. |
btw, as an aside, after ranting a bit on twitter, i updated https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions to highlight the "you need to prime your live region first" thing about live regions, as it's a detail that's often overlooked by devs... |
@mdo see my question above #22960 (comment)
|
We prevent transitions if |
Why even generate the CSS in that case? :) EDIT: |
My gut reaction is to not hide spinners when reduced motion is enabled. A spinner is a more critical piece of user feedback than something sliding or fading in. |
agree, it's my understanding that issues relating to vestibular motion sensitivity are tied to large motion/movement/parallax effects. spinners should be relatively safe. |
Yup, they are rather "static", meditativ pieces which should not arouse tension. Especially because of their Unless some1 else enjoys supporting bootstrap by refactoring this PR, I can do it once I got several other issues fixed. |
65a5aeb
to
a480216
Compare
It would be nice to have a class like Bulma which adds the spinner, e.g: |
@sts-ryan-holton you can simply wrap the spinner in a
for example |
@midzer Absolutely, but not with JS I can't. In the case of Bulma, adding a |
This is our current implementation that will go in. You can submit a better
solution any time.
…On Sun, Nov 11, 2018, 21:03 sts-ryan-holton ***@***.*** wrote:
@midzer <https://github.com/midzer> Absolutely, but not with JS I can't.
In the case of Bulma, adding a is-loading class to any button
automatically inserts a spinner using a ::after element.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#22960 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAVVtfk6V3yxNjw3tw3iyZGIhGaH6cn5ks5uuHSFgaJpZM4OLdx6>
.
|
Thanks @XhmikosR, I think this is good to go now. |
Finally took a stab at coding these up and adding them to Bootstrap! Only took me like five years to do it after CSS support finally allowed a super straightforward, non-JS solution. This isn't 100% complete, and we're not adding it until v4.1, but the mood struck so I whipped it up tonight :).
Includes support for easy coloring, alignment, sizing, and more.
/cc @patrickhlauke for accessibility guidance
Fixes #19556, fixes #12598, fixes part of #7135, fixes #6807, fixes #6461, fixes #6454, fixes #5829, and fixes #1371. 😆
Preview: https://deploy-preview-22960--twbs-bootstrap4.netlify.com/docs/4.1/components/spinners/
Todos