Button and CTAs may include a spinner to indicate loading state. The spinner will inherit the button’s text color and size.
For env-button, use a fitting combination of env-flex--gap- and env-m- utility classes for the gap between the spinner and the button text. The CTA button will not require any additional spacing classes.
Use modifier env-spinner--hide, env-spinner-bounce--hide or env-spinner-ellipsis--hide to hide the spinner.
Delayed spinner
Delay showing the spinner to avoid spinner flashing when the content loads fast.
Use modifier env-spinner--fade-in, env-spinner-bounce--fade-in or env-spinner-ellipsis--fade-in for a delayed spinner. Data attribute data-delay="short" may be used to control delay timing. Allowed values are: