fix(loading): spinner now respects —spinner-color (#25261)

resolves #25180
This commit is contained in:
Liam DeBeasi
2022-05-12 13:22:14 -04:00
committed by GitHub
parent 8d9a8869f8
commit 65f4c742e7
15 changed files with 6 additions and 11 deletions

View File

@ -67,11 +67,6 @@
z-index: $z-index-overlay-wrapper;
}
.spinner-lines,
.spinner-lines-small,
.spinner-bubbles,
.spinner-circles,
.spinner-crescent,
.spinner-dots {
ion-spinner {
color: var(--spinner-color);
}

View File

@ -56,7 +56,7 @@
<ion-button
id="custom-class-loading"
expand="block"
onclick="openLoading({duration: 5000,message: 'Please wait...', cssClass: 'custom-class custom-loading'})"
onclick="openLoading({duration: 5000,message: 'Please wait...', spinner: 'lines-sharp', cssClass: 'custom-class custom-loading'})"
>Show Loading with cssClass</ion-button
>
<ion-button id="backdrop-loading" expand="block" onclick="openLoading({backdropDismiss: true})"
@ -112,15 +112,15 @@
}
.custom-loading {
--background: rgba(37, 210, 223, 0.8);
--spinner-color: white;
--background: rgba(255, 255, 255, 0.8);
--spinner-color: #ea445a;
--height: 100%;
--max-height: auto;
--width: 100%;
--max-width: auto;
color: white;
color: #3478f6;
}
f {

View File

@ -39,7 +39,7 @@ test.describe('loading: basic', () => {
await runVisualTest(page, '#translucent-loading', 'translucent');
});
test('should open a loader with a custom class', async ({ page }) => {
await runVisualTest(page, '#no-spinner-loading', 'no-spinner');
await runVisualTest(page, '#custom-class-loading', 'custom-class');
});
test('should open a loader with html content', async ({ page }) => {
await runVisualTest(page, '#html-content-loading', 'html-content');