mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +08:00
chore: remove deprecated attribute selectors (#28082)
Issue number: N/A --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> The `text-wrap` attribute was removed in Ionic v5, but references to it still exist in the `ion-label` stylesheets. https://github.com/ionic-team/ionic-framework/blob/main/BREAKING_ARCHIVE/v5.md#css-utilities ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Removed references to the unsupported `text-wrap` attributed. ## Does this introduce a breaking change? - [ ] Yes - [x] No Note: This is not a breaking change because support for `text-wrap` was removed in Ionic v5. <!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
This commit is contained in:
@ -4,8 +4,7 @@
|
|||||||
// iOS Label
|
// iOS Label
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
:host(.ion-text-wrap),
|
:host(.ion-text-wrap) {
|
||||||
:host([text-wrap]) {
|
|
||||||
font-size: $label-ios-text-wrap-font-size;
|
font-size: $label-ios-text-wrap-font-size;
|
||||||
|
|
||||||
line-height: $label-ios-text-wrap-line-height;
|
line-height: $label-ios-text-wrap-line-height;
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
// Material Design Label
|
// Material Design Label
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
:host(.ion-text-wrap),
|
:host(.ion-text-wrap) {
|
||||||
:host([text-wrap]) {
|
|
||||||
line-height: $label-md-text-wrap-line-height;
|
line-height: $label-md-text-wrap-line-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,8 +29,7 @@
|
|||||||
color: current-color(base);
|
color: current-color(base);
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(.ion-text-wrap),
|
:host(.ion-text-wrap) {
|
||||||
:host([text-wrap]) {
|
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user