Skip to content

fix(ui5-calendar): show year range in YearPicker header #11450

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

Closed
wants to merge 3 commits into from

Conversation

didip1000
Copy link
Contributor

Year range is now shown in the header in YearPicker view. Currently it is not interactive, that will be introduced in change #11167. Text color for years in secondary calendar type is now correct as well.

fixes: #11011

@unazko unazko self-requested a review May 2, 2025 11:55
Copy link
Contributor

@unazko unazko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a difference between the displayed years in the year grid and those in the header:

Case 1:
<ui5-date-picker format-pattern="yyyy"></ui5-date-picker>
Steps:

  1. Open the picker
  2. Select a year
  3. Reopen the picker

Case 2:
<ui5-date-picker secondary-calendar-type='Buddhist'></ui5-date-picker>
(The same is also reproducible with secondary-calendar-type='Japanese')
Steps:

  1. Open the year picker view

Also the year range text in the header appears to be bolded in the sap_horizon theme whereas in the sap_horizon_hcw for example it is not.

@tsanislavgatev
Copy link
Contributor

tsanislavgatev commented May 7, 2025

Done in another change. Test cases mentioned in the comment were tested and are okay.

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.

[Calendar]: Various issues with latest calendar
3 participants