Skip to content

feat(ui5-calendar): expose shadow parts for month-picker and year-picker #11698

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

Merged
merged 2 commits into from
Jun 18, 2025

Conversation

hinzzx
Copy link
Contributor

@hinzzx hinzzx commented Jun 10, 2025

Previously there was no possible way of overstyling the header buttons, the month picker view, and the year picker's buttons of the ui5-calendar web component.

With this change we are introducing CSS Shadow Parts, which allows overstyling of those calendar parts.

ui5-calendar::part(month-picker-root) {
			background: linear-gradient(135deg, #e3f2fd, #bbdefb);
			border: 2px solid #2196f3;
			border-radius: 8px;
		}

Example:
2025-06-10_14-16-17 (1)

@unazko unazko self-requested a review June 12, 2025 09:35
@hinzzx hinzzx marked this pull request as ready for review June 17, 2025 06:31
@hinzzx hinzzx requested a review from tsanislavgatev June 17, 2025 06:33
@hinzzx hinzzx merged commit b084a1f into main Jun 18, 2025
32 of 36 checks passed
@hinzzx hinzzx deleted the expose-mp-yp-parts branch June 18, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants