Skip to content

feat(ui5-calendar): expose shadow parts for YearRangePicker and CalendarHeader arrows #12114

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hinzzx
Copy link
Contributor

@hinzzx hinzzx commented Aug 12, 2025

Previously there was no possible way of overstyling the header navigation buttons and the year range picker root container 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(calendar-header-arrow-button) {
    background: var(--sapButton_Background, #ffffff);
    color: var(--sapButton_TextColor, #0070f2);
    border: 1px solid var(--sapButton_BorderColor, #0070f2);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

ui5-calendar::part(year-range-picker-root) {
    padding: 16px 20px;
    background: var(--sapObjectHeader_Background, #ffffff);
    border: 1px solid var(--sapList_BorderColor, #e5e5e5);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

Example

2025-08-12_15-47-45 (1)

Fixes: #12090

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.

[Feature Request]: Calendar shadow parts needed
1 participant