WTTJ/welcome-ui

A Datepicker that only displays months should have a different custom header

simon-hv opened this issue · 0 comments

[Design] For which Figma library?

None

For which component/foundations?

DatePicker

Prioritization

Low 🏖️

Current Behavior

When we set the showMonthYearPicker prop to a Datepicker, it only displays months.
However, the custom header displays a selector for months as well as a selector for years.

Expected Behavior

The default behavior should display a custom header with a selector only for years. The "previous" and "next" arrows should change the year and not the month.

Screenshots / Videos

Current behavior

Screenshot 2023-11-27 at 16 29 00

Expected behavior

Screenshot 2023-11-27 at 16 29 27

[Tech] Welcome UI Version

No response

[Tech] Browser

No response

[Tech] Operating System

MacOS