mirror of
https://github.com/storytold/egui.git
synced 2026-11-28 17:29:15 +01:00
Follow-up to #8581, which gave every `Ui` a role. This adds the name: `UiBuilder::accessibility_label` sets the label on the `Ui`'s node, and `Area`, `Popup` and `Tooltip` take an `accessible_name` and pass it on. A floating container can then be found by name (`get_by_role_and_label(Role::Dialog, "Options")`) instead of by reconstructing its node id. Rerun does that reconstruction today for its modals, toasts and hover tooltips. Written by Claude (an LLM) for @emilk. * [x] I have followed the instructions in the PR template 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>