Skip to content

[EuiLoadingContent] Make indicators lighter? #3472

Closed

Description

@bevacqua

This type of indicator is usually used to build out skeleton screens, and in Cloud we think they'd be a lot better if they were a lighter shade of gray

Screen Shot 2020-05-13 at 15 03 25

https://elastic.github.io/eui/#/display/loading

Activity

  1. cchaos commented on May 13, 2020

    @cchaos
    Contributor

    @daveyholler Maybe something you can tackle in the Amsterdam theme?

  2. kaleighflynn commented on May 13, 2020

    @kaleighflynn

    Wanted to show a comparison of what we have in mind for the loading state using the current loading/text content color and a lighter EUI shade. It definitely makes the page less overwhelming and heavy with something lighter (shade here is just an example)

    Current EUI loading color
    with current loading color

    Lighter version
    loading state 1

  3. bevacqua commented on May 13, 2020

    @bevacqua
    ContributorAuthor

    Agreed, it's pretty dark atm. Here's the actual UI side by side with a version where we hack loading styles:

    Actual Hacked
    Screen Shot 2020-05-13 at 19 44 27 Screen Shot 2020-05-13 at 19 41 04
    Screen Shot 2020-05-13 at 19 49 27 Screen Shot 2020-05-13 at 19 49 18

    Custom styles:

    .euiLoadingContent__singleLineBackground {
      $euiGradientStartStop: tint($euiColorLightShade, 65%);
      $euiGradientMiddle: tint($euiColorLightShade, 50%);
    
      background: linear-gradient(
        to right,
        $euiGradientStartStop 45%,
        $euiGradientMiddle 50%,
        $euiGradientStartStop 55%,
      );
    }
    
    // this bit is just so the dark theme styling doesn't change, because it was already fine
    .euiTheme-dark .euiLoadingContent__singleLineBackground {
      @import '../styles/variables.scss';
    
      $euiGradientStartStop: shade($euiColorDarkestShade, 12%);
      $euiGradientMiddle: shade($euiColorDarkestShade, 24%);
    
      background: linear-gradient(
        to right,
        $euiGradientStartStop 45%,
        $euiGradientMiddle 50%,
        $euiGradientStartStop 55%,
      );
    }
  4. daveyholler commented on May 14, 2020

    @daveyholler
    Contributor

    This is definitely an improvement. I’ll certainly tackle this in Amsterdam. It’s such a nice improvement though I wonder if we ought to just make this change against the current theme. Thoughts?

  5. snide commented on May 14, 2020

    @snide
    Contributor

    I think it's fine to just switch this everywhere.

  6. changed the title [-]Make <EuiLoadingContent> indicators lighter?[/-] [+][EuiLoadingContent] Make indicators lighter?[/+] on Sep 20, 2020
  7. added
    design decision
    on Sep 20, 2020
  8. github-actions commented on Mar 20, 2021

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  9. added
    stale-issue
    on Mar 20, 2021
  10. removed
    stale-issue
    on Mar 20, 2021
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

    design decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions