Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Expose ion-datetime header styling #30083

Open
3 tasks done
clowcher opened this issue Dec 12, 2024 · 0 comments
Open
3 tasks done

feat: Expose ion-datetime header styling #30083

clowcher opened this issue Dec 12, 2024 · 0 comments
Labels

Comments

@clowcher
Copy link

clowcher commented Dec 12, 2024

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

@ionitron-bot ionitron-bot bot added the triage label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant