Skip to content

feat: configurable default icon for ion-item detail-icon in provideIonicAngular #30924

@Spinnenzunge

Description

@Spinnenzunge

Prerequisites

Describe the Feature Request

A new config property to set the default icon for detail-icon on <ion-item>. Just as it works for setting the default icon for <ion-menu-button>

Describe the Use Case

We want to use our own custom icon for items with detail="true" and having to add the detail-icon attribute on every item is a lot of effort and prone to design issues if a developer forgets to do it.

Describe Preferred Solution

Add new config property

Describe Alternatives

No response

Related Code

No response

Additional Information

There was the same feature request already in #19906
The answer with a custom wrapper component that default sets the attribute is imho not satisfying as it poses one critical problem: A default component renders markup which makes the Ionic default styling for items in lists, etc. with first-child selectors etc. not work anymore. This kind of breaks the framework and is not a good proposed solution

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