Skip to content

bug: Item with Outline does not display properly when inside a List #24814

@RobertWeaver

Description

@RobertWeaver

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

Using an Item component inside a List with the fill set to Outline is rendered with a partial border.

image

Expected Behavior

The Item should display with the complete border when used with or without a List

image

Steps to Reproduce

Use the code below inside of an Ionic Application.

      <ion-list lines="full">
        <ion-item fill="outline" mode="md">
          <ion-label position="floating">Ion Item Outline with List</ion-label>
          <ion-input value=""></ion-input>
          <ion-note slot="helper">Helper Text</ion-note>
          <ion-note slot="error">Error Text</ion-note>
        </ion-item>
      </ion-list>

Code Reproduction URL

https://codesandbox.io/s/ion-item-with-outline-display-error-idyy8f

Ionic Info

Using custom elements version of Ionic.

Additional Information

I believe this CSS is overriding the Outline border-width css. If I uncheck it then the .item-fill-outline will be used and then display correctly.

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions