-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change progress bar to spinner (#78460)
* Change progress bar to spinner * Add progress bar option for full screen mode * Update snapshots for router test * Update snapshots for loading indicator test * Update header snapshot * Change progress bar position to fix full screen
- Loading branch information
1 parent
a83d6aa
commit 1b5efbf
Showing
8 changed files
with
182 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 10 additions & 14 deletions
24
src/core/public/chrome/ui/__snapshots__/loading_indicator.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,4 @@ | ||
$kbnLoadingIndicatorBackgroundSize: $euiSizeXXL * 10; | ||
$kbnLoadingIndicatorColor1: tint($euiColorAccent, 15%); | ||
$kbnLoadingIndicatorColor2: tint($euiColorAccent, 60%); | ||
|
||
/** | ||
* 1. Position this loader on top of the content. | ||
* 2. Make sure indicator isn't wider than the screen. | ||
*/ | ||
.kbnLoadingIndicator { | ||
position: fixed; // 1 | ||
top: 0; // 1 | ||
left: 0; // 1 | ||
right: 0; // 1 | ||
z-index: $euiZLevel2; // 1 | ||
overflow: hidden; // 2 | ||
height: $euiSizeXS / 2; | ||
|
||
&.hidden { | ||
visibility: hidden; | ||
opacity: 0; | ||
transition-delay: 0.25s; | ||
} | ||
} | ||
|
||
.kbnLoadingIndicator__bar { | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
position: absolute; | ||
z-index: $euiZLevel2 + 1; | ||
visibility: visible; | ||
display: block; | ||
animation: kbn-animate-loading-indicator 2s linear infinite; | ||
background-color: $kbnLoadingIndicatorColor2; | ||
background-image: linear-gradient( | ||
to right, | ||
$kbnLoadingIndicatorColor1 0%, | ||
$kbnLoadingIndicatorColor1 50%, | ||
$kbnLoadingIndicatorColor2 50%, | ||
$kbnLoadingIndicatorColor2 100% | ||
); | ||
background-repeat: repeat-x; | ||
background-size: $kbnLoadingIndicatorBackgroundSize $kbnLoadingIndicatorBackgroundSize; | ||
width: 200%; | ||
} | ||
|
||
@keyframes kbn-animate-loading-indicator { | ||
from { | ||
transform: translateX(0); | ||
} | ||
to { | ||
transform: translateX(-$kbnLoadingIndicatorBackgroundSize); | ||
} | ||
.kbnLoadingIndicator-hidden { | ||
visibility: hidden; | ||
animation-play-state: paused; | ||
} |
187 changes: 127 additions & 60 deletions
187
src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.