From f379c72d928fc52700d26b1bb57d4df0377cb15c Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 30 Aug 2023 09:53:50 -0500 Subject: [PATCH] chore: remove deprecated attribute selectors (#28082) Issue number: N/A --------- ## What is the current behavior? 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? - 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. ## Other information --- core/src/components/label/label.ios.scss | 3 +-- core/src/components/label/label.md.scss | 3 +-- core/src/components/label/label.scss | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/core/src/components/label/label.ios.scss b/core/src/components/label/label.ios.scss index 4f639b262b..8cba8a8475 100644 --- a/core/src/components/label/label.ios.scss +++ b/core/src/components/label/label.ios.scss @@ -4,8 +4,7 @@ // iOS Label // -------------------------------------------------- -:host(.ion-text-wrap), -:host([text-wrap]) { +:host(.ion-text-wrap) { font-size: $label-ios-text-wrap-font-size; line-height: $label-ios-text-wrap-line-height; diff --git a/core/src/components/label/label.md.scss b/core/src/components/label/label.md.scss index 70b1472273..fe773455c8 100644 --- a/core/src/components/label/label.md.scss +++ b/core/src/components/label/label.md.scss @@ -4,8 +4,7 @@ // Material Design Label // -------------------------------------------------- -:host(.ion-text-wrap), -:host([text-wrap]) { +:host(.ion-text-wrap) { line-height: $label-md-text-wrap-line-height; } diff --git a/core/src/components/label/label.scss b/core/src/components/label/label.scss index 8cd1606ccc..92c3c532ce 100644 --- a/core/src/components/label/label.scss +++ b/core/src/components/label/label.scss @@ -29,8 +29,7 @@ color: current-color(base); } -:host(.ion-text-wrap), -:host([text-wrap]) { +:host(.ion-text-wrap) { white-space: normal; }