-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
AccessibilityNeeds design, development, or content work relating to accessibility.Needs design, development, or content work relating to accessibility.BugSomething is broken and not working as intended in the system.Something is broken and not working as intended in the system.
Description
Issue summary
3 things I noticed about the pagination, keys and disable state:
- The tooltip is shown on disabled pagination buttons
- When the tooltip appears on a disabled button, it's hard to hide it. Hovering out a normal button hide the tooltip, but it's not the case for the disabled button.
- Triggering the key event triggers the previous/next callback, even if the button is disabled
Expected behavior
- I'm not sure if 1. is expected or not. Having it or not could be valid I guess.
- Hovering out of the button should hide the tooltip though.
- Key presses should not trigger the callbacks if
hasPrevious/hasNextis false (button disabled).
Actual behavior
See issue.
Steps to reproduce the problem
- Use the codesandbox and play each bullet points in the summary
Reduced test case
Metadata
Metadata
Assignees
Labels
AccessibilityNeeds design, development, or content work relating to accessibility.Needs design, development, or content work relating to accessibility.BugSomething is broken and not working as intended in the system.Something is broken and not working as intended in the system.
