Skip to content

Commit f379c72

Browse files
authored
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. -->
1 parent 8ab3476 commit f379c72

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

core/src/components/label/label.ios.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
// iOS Label
55
// --------------------------------------------------
66

7-
:host(.ion-text-wrap),
8-
:host([text-wrap]) {
7+
:host(.ion-text-wrap) {
98
font-size: $label-ios-text-wrap-font-size;
109

1110
line-height: $label-ios-text-wrap-line-height;

core/src/components/label/label.md.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
// Material Design Label
55
// --------------------------------------------------
66

7-
:host(.ion-text-wrap),
8-
:host([text-wrap]) {
7+
:host(.ion-text-wrap) {
98
line-height: $label-md-text-wrap-line-height;
109
}
1110

core/src/components/label/label.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
color: current-color(base);
3030
}
3131

32-
:host(.ion-text-wrap),
33-
:host([text-wrap]) {
32+
:host(.ion-text-wrap) {
3433
white-space: normal;
3534
}
3635

0 commit comments

Comments
 (0)