Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(label): keep color when focused on a floating or stacked label #18576

Merged
merged 9 commits into from
Oct 7, 2020
2 changes: 1 addition & 1 deletion core/src/components/label/label.md.vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
$label-md-text-color: $text-color-step-600 !default;

/// @prop - Text color of the stacked/floating label when it is focused
$label-md-text-color-focused: ion-color(primary, base) !default;
$label-md-text-color-focused: null !default;

/// @prop - Line height of the label when the text wraps
$label-md-text-wrap-line-height: 1.5 !default;
Expand Down
4 changes: 4 additions & 0 deletions core/src/components/label/test/basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
<ion-label position="stacked">Stacked</ion-label>
<ion-input></ion-input>
</ion-item>
<ion-item>
<ion-label position="stacked" color="danger">Stacked</ion-label>
<ion-input></ion-input>
</ion-item>
</ion-list>
</ion-content>

Expand Down