Skip to content

[EuiLoadingX] Add speed prop (feature request) #4116

Closed

Description

@j-m

I find the default animation speed to be too fast and feel like there should be a speed prop for EuiLoadingSpinner and the like.
I know you can easily add a className and override it like so

<EuiLoadingSpinner className="euiLoadingSpinner--slow" size="m" />
.euiLoadingSpinner--slow {
  animation-duration: 1s;
}

Activity

  1. cchaos commented on Oct 6, 2020

    @cchaos
    Contributor

    Thanks for the feedback @j-m. Because we use SASS as our tech stack for styles at the moment, there's not easy way to handle this as a JS prop. Your override structure is the best way to handle this. We might be able to address this in the future when we implement a CSS in JS solution, but that is a long-term goal.

    I'll start accumulating some of these requests on that ticket I linked to, but close this one as there's a hard dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions