diff --git a/core/src/components/input/input.tsx b/core/src/components/input/input.tsx index 1c3f48f05c..ff65bd5fa6 100644 --- a/core/src/components/input/input.tsx +++ b/core/src/components/input/input.tsx @@ -640,7 +640,8 @@ export class Input implements ComponentInterface { const { disabled, fill, readonly, shape, inputId, labelPlacement } = this; const mode = getIonStylesheet(this); const value = this.getValue(); - const shouldRenderHighlight = mode === 'md' && fill !== 'outline'; + const inItem = hostContext('ion-item', this.el); + const shouldRenderHighlight = mode === 'md' && fill !== 'outline' && !inItem; return ( diff --git a/core/src/components/select/select.tsx b/core/src/components/select/select.tsx index 9aadf2ac00..e723abbedd 100644 --- a/core/src/components/select/select.tsx +++ b/core/src/components/select/select.tsx @@ -730,14 +730,15 @@ export class Select implements ComponentInterface { const hasFloatingOrStackedLabel = labelPlacement === 'floating' || labelPlacement === 'stacked'; const justifyEnabled = !hasFloatingOrStackedLabel; const rtl = isRTL(el) ? 'rtl' : 'ltr'; - const shouldRenderHighlight = mode === 'md' && fill !== 'outline'; + const inItem = hostContext('ion-item', this.el); + const shouldRenderHighlight = mode === 'md' && fill !== 'outline' && !inItem; return (