You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The next month button becomes disabled and focus is lost.
Expected Behaviour
Something should be focused. I'm not 100% sure the correct pattern:
Option 1: Do not disable the button, mark with aria-disabled="true", and tabIndex={-1} to take it out of tab order. The button will remain focused, but will act as disabled.
Option 2: Focus something nearby, eg the other month navigation button.
I'm not sure how much of an issue this is. I believe it is an issue and it can cause screen-readers to move the current focus to the body throwing the user to the top of the page. However, I'm not completely sure this is that catastrophic an issue with the latest browsers and screen-readers.
The text was updated successfully, but these errors were encountered:
To reproduce
CodeSandbox: https://codesandbox.io/p/sandbox/daypicker-bug-report-forked-cff2m5?workspaceId=ws_RGtEKXawCzJL1meZNuGGuQ
Using the keyboard:
Actual Behaviour
The next month button becomes disabled and focus is lost.
Expected Behaviour
Something should be focused. I'm not 100% sure the correct pattern:
Option 1: Do not disable the button, mark with
aria-disabled="true"
, andtabIndex={-1}
to take it out of tab order. The button will remain focused, but will act as disabled.Option 2: Focus something nearby, eg the other month navigation button.
https://adrianroselli.com/2023/08/where-to-put-focus-when-deleting-a-thing.html
I'm not sure how much of an issue this is. I believe it is an issue and it can cause screen-readers to move the current focus to the body throwing the user to the top of the page. However, I'm not completely sure this is that catastrophic an issue with the latest browsers and screen-readers.
The text was updated successfully, but these errors were encountered: