From 92b13c298b403b1d20ac4ba929fb3eb8556aa276 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Mon, 14 Aug 2023 10:16:05 -0500 Subject: [PATCH] chore: highlight variables are deprecated (#27987) Issue number: N/A --------- ## What is the current behavior? There was some confusion on https://github.com/ionic-team/ionic-framework/issues/27985 as to how the `--highlight-*` variables on `ion-item` apply to the modern form controls. These variables only work with the legacy form syntax, but we did not add a proper deprecation message. `--highlight-*` variables have been added to `ion-input` and `ion-textarea` instead so developers can customize the highlight when using the modern form syntax. ## What is the new behavior? - Deprecated the `--highlight-*` variables on `ion-item`. ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information --- core/src/components/item/item.scss | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/src/components/item/item.scss b/core/src/components/item/item.scss index 402b8eb6ed..46e2cafe05 100644 --- a/core/src/components/item/item.scss +++ b/core/src/components/item/item.scss @@ -2,6 +2,7 @@ // Item // -------------------------------------------------- +// TODO: FW-4955 :host { /** @@ -45,10 +46,10 @@ * * @prop --ripple-color: Color of the item ripple effect * - * @prop --highlight-height: The height of the highlight on the item - * @prop --highlight-color-focused: The color of the highlight on the item when focused - * @prop --highlight-color-valid: The color of the highlight on the item when valid - * @prop --highlight-color-invalid: The color of the highlight on the item when invalid + * @prop --highlight-height: The height of the highlight on the item. Only applies to inputs and textareas using the legacy form syntax. DEPRECATED: Highlights can be styled on `ion-input` or `ion-textarea` when using the modern form syntax. + * @prop --highlight-color-focused: The color of the highlight on the item when focused. Only applies to inputs and textareas using the legacy form syntax. DEPRECATED: Highlights can be styled on `ion-input` or `ion-textarea` when using the modern form syntax. + * @prop --highlight-color-valid: The color of the highlight on the item when valid. Only applies to inputs and textareas using the legacy form syntax. DEPRECATED: Highlights can be styled on `ion-input` or `ion-textarea` when using the modern form syntax. + * @prop --highlight-color-invalid: The color of the highlight on the item when invalid. Only applies to inputs and textareas using the legacy form syntax. DEPRECATED: Highlights can be styled on `ion-input` or `ion-textarea` when using the modern form syntax. */ --border-radius: 0px; --border-width: 0px;