mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
feat(text-input): adding color attributes for the ion-label
closes #585
This commit is contained in:
@ -22,17 +22,17 @@
|
|||||||
</ion-input>
|
</ion-input>
|
||||||
|
|
||||||
<ion-input floating-label>
|
<ion-input floating-label>
|
||||||
<ion-label>Floating Label 4</ion-label>
|
<ion-label primary>Floating Label 4</ion-label>
|
||||||
<textarea></textarea>
|
<textarea></textarea>
|
||||||
</ion-input>
|
</ion-input>
|
||||||
|
|
||||||
<ion-input floating-label>
|
<ion-input floating-label>
|
||||||
<ion-label>Floating Label 5</ion-label>
|
<ion-label secondary>Floating Label 5</ion-label>
|
||||||
<input type="url">
|
<input type="url">
|
||||||
</ion-input>
|
</ion-input>
|
||||||
|
|
||||||
<ion-input floating-label>
|
<ion-input floating-label>
|
||||||
<ion-label>Floating Label 6</ion-label>
|
<ion-label danger>Floating Label 6</ion-label>
|
||||||
<input type="email">
|
<input type="email">
|
||||||
</ion-input>
|
</ion-input>
|
||||||
|
|
||||||
|
@ -70,3 +70,11 @@ input,
|
|||||||
textarea {
|
textarea {
|
||||||
@include placeholder();
|
@include placeholder();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@each $color-name, $color-value in $colors {
|
||||||
|
ion-label {
|
||||||
|
&[#{$color-name}] {
|
||||||
|
color: $color-value !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user