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

[@mantine/dates]: CalendarHeader: Remove disabled level change button from tab order #3648

Merged
merged 1 commit into from
Mar 8, 2023
Merged

Conversation

filiptammergard
Copy link
Contributor

@filiptammergard filiptammergard commented Mar 2, 2023

The button for changing level is disabled but it's still kept in tab order when maxLevel should remove it. You can try it out here: https://mantine.dev/dates/date-picker/#max-level

The DatePicker at the right has maxLevel="month", so the level change button is disabled, but it still has tabIndex={0} and is therefore kept in tab order.

image

This worked correctly in v5.x: https://v5.mantine.dev/dates/calendar/#level-change

Let me know if I should create an issue for this instead of opening a PR!

Repro here: https://codesandbox.io/s/silly-forest-fcvs01?file=/src/App.tsx

@filiptammergard filiptammergard marked this pull request as ready for review March 2, 2023 12:26
@rtivital rtivital merged commit 83275bd into mantinedev:master Mar 8, 2023
@rtivital
Copy link
Member

rtivital commented Mar 8, 2023

Thanks!

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.

2 participants