forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(spinner): add color input property to spinner, fix class clobbering
fixes ionic-team#7087 fixes ionic-team#7401
- Loading branch information
1 parent
0579bba
commit 30c29ed
Showing
9 changed files
with
198 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@import "./spinner"; | ||
|
||
// iOS Spinner | ||
// -------------------------------------------------- | ||
|
||
@each $color-name, $color-base, $color-contrast in get-colors($colors-ios) { | ||
|
||
.spinner-#{$color-name} { | ||
|
||
&.spinner-ios line, | ||
&.spinner-ios-small line, | ||
&.spinner-crescent circle { | ||
stroke: $color-base; | ||
} | ||
|
||
&.spinner-bubbles circle, | ||
&.spinner-circles circle, | ||
&.spinner-dots circle { | ||
fill: $color-base; | ||
} | ||
|
||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@import "./spinner"; | ||
|
||
// Material Design Spinner | ||
// -------------------------------------------------- | ||
|
||
@each $color-name, $color-base, $color-contrast in get-colors($colors-md) { | ||
|
||
.spinner-#{$color-name} { | ||
|
||
&.spinner-ios line, | ||
&.spinner-ios-small line, | ||
&.spinner-crescent circle { | ||
stroke: $color-base; | ||
} | ||
|
||
&.spinner-bubbles circle, | ||
&.spinner-circles circle, | ||
&.spinner-dots circle { | ||
fill: $color-base; | ||
} | ||
|
||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@import "./spinner"; | ||
|
||
// Windows Spinner | ||
// -------------------------------------------------- | ||
|
||
@each $color-name, $color-base, $color-contrast in get-colors($colors-wp) { | ||
|
||
.spinner-#{$color-name} { | ||
|
||
&.spinner-ios line, | ||
&.spinner-ios-small line, | ||
&.spinner-crescent circle { | ||
stroke: $color-base; | ||
} | ||
|
||
&.spinner-bubbles circle, | ||
&.spinner-circles circle, | ||
&.spinner-dots circle { | ||
fill: $color-base; | ||
} | ||
|
||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Component } from '@angular/core'; | ||
import { ionicBootstrap } from '../../../../../src'; | ||
|
||
|
||
@Component({ | ||
templateUrl: 'main.html' | ||
}) | ||
class E2EPage { | ||
paused: boolean = false; | ||
|
||
toggleState() { | ||
this.paused = !this.paused; | ||
} | ||
} | ||
|
||
|
||
@Component({ | ||
template: '<ion-nav [root]="root"></ion-nav>' | ||
}) | ||
class E2EApp { | ||
root = E2EPage; | ||
} | ||
|
||
ionicBootstrap(E2EApp); |
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<ion-header> | ||
|
||
<ion-toolbar> | ||
<ion-title>Spinners</ion-title> | ||
</ion-toolbar> | ||
|
||
</ion-header> | ||
|
||
|
||
<ion-content padding> | ||
|
||
<table style="border-collapse:initial; border-spacing: 20px"> | ||
<tr> | ||
<td>Platform Default</td> | ||
<td> | ||
<ion-spinner color="primary" [paused]="paused"></ion-spinner> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>ios</td> | ||
<td> | ||
<ion-spinner color="secondary" name="ios" duration="1000" [paused]="paused"></ion-spinner> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>ios-small</td> | ||
<td> | ||
<ion-spinner color="danger" name="ios-small" duration="1000" [paused]="paused"></ion-spinner> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>bubbles</td> | ||
<td> | ||
<ion-spinner color="light" name="bubbles" [paused]="paused"></ion-spinner> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>circles</td> | ||
<td> | ||
<ion-spinner color="secondary" name="circles" [paused]="paused"></ion-spinner> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>crescent</td> | ||
<td> | ||
<ion-spinner color="primary" name="crescent" [paused]="paused"></ion-spinner> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>dots</td> | ||
<td> | ||
<ion-spinner color="danger" name="dots" [paused]="paused"></ion-spinner> | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
<button ion-button (click)="toggleState()">Toggle Paused</button> | ||
|
||
</ion-content> |