Skip to content

feat: Expose ion-datetime header styling #30083

Description

@clowcher

Prerequisites

Describe the Feature Request

It would be useful to get shadow parts exposed for styling the header section of the ion-datetime component.

Currently, there is a title slot, but this does not give full control over the look of the datetime header. Most importantly, changing the background color.

for example:

ion-datetime { --header-background: ###### }

Describe the Use Case

This would solve the issue of being able to customize the datetime header

Describe Preferred Solution

No response

Describe Alternatives

The only alternative that really works is to do some hacky DOM manipulation after rendering like described here: https://forum.ionicframework.com/t/easy-way-to-style-the-ionic-datetime-header/236402

Related Code

No response

Additional Information

No response

Activity

  1. added
    type: feature request
    and removed on Dec 18, 2025
  2. thetaPC commented on Feb 20, 2026

    @thetaPC
    Contributor

    Thanks for the feature request! This has been implemented via PR #30945 and will be available in v8.8.

  3. thetaPC commented on Mar 19, 2026

    @thetaPC
    Contributor

    Great news! This feature is now live in v8.8. I'm closing this issue, but please update your version to check it out.

  4. linked a pull request that will close this issuefeat(datetime): add header parts #30945on Mar 19, 2026
  5. ionitron-bot commented on Apr 18, 2026

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  6. locked and limited conversation to collaborators on Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature request

    Fields

    Stage

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions