Revisions: Add tooltip to diff marker buttons #77690
Revisions: Add tooltip to diff marker buttons #77690himanshupathak95 wants to merge 3 commits intoWordPress:trunkfrom
Conversation
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
0c6c548 to
5a2f60d
Compare
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
What?
Part of #77530
Replaces the raw
<button>elements in the diff markers minimap with the<Button>component, adding label andshowTooltipprops.Why?
Diff marker buttons had no visible tooltip, and sighted users hovering the minimap received no textual information about what the coloured bar represents.
How?
labelon<Button>sets aria-label and renders visible text when the user has "text only buttons" enabled.showTooltipensures the Gutenberg<Tooltip>always appears on hover with the same label text ("Go to added block", "Go to removed block", "Go to modified block").Testing Instructions
Screenshots or screencast
Before
Screen.Recording.2026-04-28.at.10.37.34.mov
After
Screen.Recording.2026-04-28.at.10.51.30.mov