Skip to content

refactor: remove disabled tooltip from PaginationNavButton - #21199

Merged
aqandrew merged 2 commits into
mainfrom
aqandrew/replace-mui-tooltip-paginationnavbutton
Dec 11, 2025
Merged

aqandrew merged 2 commits into
mainfrom
aqandrew/replace-mui-tooltip-paginationnavbutton

Conversation

@aqandrew

@aqandrew aqandrew commented Dec 10, 2025 •

Copy link
Copy Markdown
Contributor

for #19974

The MUI tooltip inside PaginationNavButton was a controlled component. This + the stateful logic inside PaginationNavButtonCore meant that showDisabledMessage would never be set to true. I.e., the "You are already on the first page" tooltip if on the first page and the "You are already on the last page" tooltip if on the last page would never show up.

The PaginationNavButtons gets disabled if we're at either the first/last page, and disabled buttons can't receive focus, so there's no way to open the MUI tooltips with keyboard navigation.

Removing the MUI tooltip + related props from PaginationNavButton has no effect on my screen reader UX with macOS VoiceOver; it's entirely unchanged

@aqandrew
aqandrew merged commit 36311e5 into main Dec 11, 2025
30 checks passed
@aqandrew
aqandrew deleted the aqandrew/replace-mui-tooltip-paginationnavbutton branch December 11, 2025 18:43
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants