-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move
Loader
to compat
package & replace with BusyIndicator
(
#6020) BREAKING CHANGE: The deprecated `Loader` component has been moved to the `@ui5/webcomponents-react-compat` package. Please use the `BusyIndicator` instead, as it's now the only loading indicator that is supported by our UX guidelines. Please visit our [Migration Guide](https://sap.github.io/ui5-webcomponents-react/main/?path=/docs/migration-guide--docs) for more details.
- Loading branch information
Showing
20 changed files
with
284 additions
and
272 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
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
File renamed without changes.
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,3 +1,41 @@ | ||
.dummy { | ||
background-color: red; | ||
.loader { | ||
position: relative; | ||
height: 0.25rem; | ||
width: 100%; | ||
|
||
&:before { | ||
content: ''; | ||
position: absolute; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: var(--sapContent_BusyColor); | ||
opacity: 0.15; | ||
} | ||
|
||
&.loaderDeterminate { | ||
background: linear-gradient(to right, var(--sapContent_BusyColor), var(--sapContent_BusyColor)) repeat-y; | ||
} | ||
|
||
&.loaderIndeterminate { | ||
background-size: 40%; | ||
background: linear-gradient( | ||
to right, | ||
transparent 0px, | ||
var(--sapContent_BusyColor) calc(50% - 2rem), | ||
var(--sapContent_BusyColor) calc(50% + 2rem), | ||
transparent 100% | ||
) | ||
repeat-y; | ||
animation: scroll 1.2s linear infinite; | ||
} | ||
} | ||
|
||
@keyframes scroll { | ||
0% { | ||
background-position: -100% 0; | ||
} | ||
100% { | ||
background-position: 200% 0; | ||
} | ||
} |
10 changes: 3 additions & 7 deletions
10
.../src/components/Loader/Loader.stories.tsx → .../src/components/Loader/Loader.stories.tsx
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
File renamed without changes.
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
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
7 changes: 0 additions & 7 deletions
7
...c/components/AnalyticalTable/defaults/LoadingComponent/DefaultLoadingComponent.module.css
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
packages/main/src/components/AnalyticalTable/defaults/LoadingComponent/index.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.