mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
fix(label): include the ion-text-wrap class styles for larger font (#18374)
- updates all e2e tests to use the CSS classes instead of attributes
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
// iOS Label
|
||||
// --------------------------------------------------
|
||||
|
||||
:host(.ion-text-wrap),
|
||||
:host([text-wrap]) {
|
||||
font-size: $label-ios-text-wrap-font-size;
|
||||
|
||||
|
||||
@ -4,6 +4,7 @@
|
||||
// Material Design Label
|
||||
// --------------------------------------------------
|
||||
|
||||
:host(.ion-text-wrap),
|
||||
:host([text-wrap]) {
|
||||
line-height: $label-md-text-wrap-line-height;
|
||||
}
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
color: current-color(base);
|
||||
}
|
||||
|
||||
:host(.ion-text-wrap),
|
||||
:host([text-wrap]) {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
<div padding>
|
||||
<div class="ion-padding">
|
||||
<ion-label>Default</ion-label>
|
||||
|
||||
<ion-label color="secondary">Secondary</ion-label>
|
||||
@ -47,7 +47,7 @@
|
||||
<ion-input></ion-input>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label text-wrap>Wrap label this label just goes on and on and on</ion-label>
|
||||
<ion-label class="ion-text-wrap">Wrap label this label just goes on and on and on</ion-label>
|
||||
<ion-input></ion-input>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
<ion-input></ion-input>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label text-wrap>Wrap label this label just goes on and on and on</ion-label>
|
||||
<ion-label class="ion-text-wrap">Wrap label this label just goes on and on and on</ion-label>
|
||||
<ion-input></ion-input>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
|
||||
Reference in New Issue
Block a user