Skip to content

a11y: Add label for icon-tooltip-{text,markup}

Hari Rana requested to merge TheEvilSkeleton/gtk:a11y-icon-tooltip-text into main

This adds an accessible label for GtkEntry when using gtk_entry_set_icon_tooltip_text (), as seen below with GTK Widget Factory and GTK Inspector:

Screenshot of the "view-refresh-symbolic" icon with the tooltip text "Change mode" with the accessibility label "Change mode"

I wanted to replicate this behavior for gtk_entry_set_icon_tooltip_markup (), but I haven't figured out an efficient way to get rid of markup tags.

Full disclaimer, I'm no accessibility expert, and this change wasn't communicated with anyone. I'd want to know if this is something we'd want to add, or leave the icon(s) without an accessibility label.

/cc @tyrylu

Merge request reports

Loading