Skip to content

bug: ion-accordion rendering strange lines with border-radius #25408

@sander-spruit

Description

@sander-spruit

Prerequisites

Ionic Framework Version

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

Current Behavior

When using an ion-accordion-group with an ion-accordion, where a border-radius is used, the browser renders weird diagonal lines.

Expected Behavior

Border radius should be applied without gimmicky issues.

Steps to Reproduce

Create an ion-accordion, inside an ion-accordion with a group inside. Apply the following styling,

ion-accordion-group ion-accordion-group {
background-color: var(--white);
--border-width: 0;
padding: 0 15px;
box-shadow: 0px 1px 0px 1px rgb(11 23 57 / 8%);
border-radius:5px;
}

and an ion-accordion with the following styling

ion-accordion {
border-radius: 5px;
}

Result is the following
Schermafbeelding 2022-06-05 222111

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.13.1 (\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 6.1.3
@angular-devkit/build-angular : 13.2.6
@angular-devkit/schematics : 13.2.6
@angular/cli : 13.2.6
@ionic/angular-toolkit : 6.1.0

Utility:

cordova-res : 0.15.3
native-run : 1.5.0

System:

NodeJS : v14.15.4 (C:\Program Files\nodejs\node.exe)
npm : 6.14.10
OS : Windows 10

Additional Information

No response

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