Skip to content

feat: Add part to ion-datetime component to allow CSS customization #24963

Closed
@iwoogy

Description

@iwoogy

Prerequisites

Describe the Feature Request

I would like to customize the CSS styles of the ion-datetime in a more precise way.

I read this article that explain how to access styles inside the shadow dom.
https://ionicframework.com/docs/theming/css-shadow-parts

I noticed that parts are not exposed in the ion-datetime
image

Describe the Use Case

I would like to implement that kind of styling

image

Describe Preferred Solution

Adding part attribtues to the shadow root children will help to access the styling of ion-datetime component

Describe Alternatives

No alternative for now.

Related Code

The code is pretty simple

image

image

image

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