Skip to content

Restore hover tooltips on image grid dropdown items#11434

Merged
jwunderl merged 2 commits into
microsoft:masterfrom
microbit-matt-hillsdon:restore-grid-image-tooltips
Jun 26, 2026
Merged

Restore hover tooltips on image grid dropdown items#11434
jwunderl merged 2 commits into
microsoft:masterfrom
microbit-matt-hillsdon:restore-grid-image-tooltips

Conversation

@microbit-matt-hillsdon

@microbit-matt-hillsdon microbit-matt-hillsdon commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

PR #11373 removed button.title from FieldImageDropdown and FieldImages to fix screen reader output, but that also dropped the native hover tooltip that the tutorial relies on to name each icon.

The screen reader fix was actually the aria-hidden on the (base64-src) image plus visually-hidden name text; the title only ever held the human-readable alt. Put the title back on the button so the tooltip covers the whole cell (no padding dead-zone), keeping aria-hidden so the base64 src is still never announced. OK in VoiceOver and NVDA, worst risk is duplicate output.

Fixes microsoft/pxt-microbit#6964

Draft for the moment, will get @microbit-robert to confirm I'm not missing something here tomorrow.

PR microsoft#11373 removed `button.title` from FieldImageDropdown and FieldImages
to fix screen reader output, but that also dropped the native hover
tooltip that the tutorial relies on to name each icon.

The screen reader fix was actually the `aria-hidden` on the (base64-src)
image plus visually-hidden name text; the title only ever held the
human-readable alt. Put the title back on the button so the tooltip
covers the whole cell (no padding dead-zone), keeping aria-hidden so the
base64 src is still never announced. OK in VoiceOver and NVDA, worst risk is
duplicate output.

Fixes microsoft/pxt-microbit#6964
@microbit-robert

Copy link
Copy Markdown
Contributor

@microbit-matt-hillsdon This looks good to me. Original PR was obviously a bit heavy-handed.

@microbit-matt-hillsdon microbit-matt-hillsdon marked this pull request as ready for review June 26, 2026 19:19
@jwunderl jwunderl enabled auto-merge June 26, 2026 20:13
@jwunderl jwunderl disabled auto-merge June 26, 2026 20:14
@jwunderl jwunderl enabled auto-merge June 26, 2026 20:14
@jwunderl jwunderl added this pull request to the merge queue Jun 26, 2026
Merged via the queue into microsoft:master with commit be99289 Jun 26, 2026
12 checks passed
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.

Labels not showing when hovering over icons in show icon dropdown

3 participants