From 82a5b310da18f7fb24fb6b0ea0a6d87dc6765342 Mon Sep 17 00:00:00 2001 From: Amanda Johnston <90629384+amandaejohnston@users.noreply.github.com> Date: Fri, 22 Sep 2023 09:50:33 -0500 Subject: [PATCH] chore(item): add deprecated flag to fill prop (#28210) Issue number: N/A --------- ## What is the current behavior? The `fill` prop on `ion-item` is currently deprecated (see warning [here](https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/item/item.tsx#L248-L253)) but the docs have not been updated to reflect this. ## What is the new behavior? `@deprecated` flag added to the `fill` prop. ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information --- core/src/components.d.ts | 2 ++ core/src/components/item/item.tsx | 1 + 2 files changed, 3 insertions(+) diff --git a/core/src/components.d.ts b/core/src/components.d.ts index d048e31f10..62cfd30764 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -1336,6 +1336,7 @@ export namespace Components { "download": string | undefined; /** * The fill for the item. If `"solid"` the item will have a background. If `"outline"` the item will be transparent with a border. Only available in `md` mode. + * @deprecated Use the `fill` property on `ion-input` or `ion-textarea` instead. */ "fill"?: 'outline' | 'solid'; /** @@ -5407,6 +5408,7 @@ declare namespace LocalJSX { "download"?: string | undefined; /** * The fill for the item. If `"solid"` the item will have a background. If `"outline"` the item will be transparent with a border. Only available in `md` mode. + * @deprecated Use the `fill` property on `ion-input` or `ion-textarea` instead. */ "fill"?: 'outline' | 'solid'; /** diff --git a/core/src/components/item/item.tsx b/core/src/components/item/item.tsx index 8fe7d50ec9..ad056c5cdf 100644 --- a/core/src/components/item/item.tsx +++ b/core/src/components/item/item.tsx @@ -85,6 +85,7 @@ export class Item implements ComponentInterface, AnchorInterface, ButtonInterfac /** * The fill for the item. If `"solid"` the item will have a background. If * `"outline"` the item will be transparent with a border. Only available in `md` mode. + * @deprecated Use the `fill` property on `ion-input` or `ion-textarea` instead. */ @Prop() fill?: 'outline' | 'solid';