Issue #3586302: Exposed tooltip/truncated content and icon meaning to assistive tech.
Description
Closes #3586302
Testing Instructions
Create one item with a long label/description and a purpose, mark it Global or scoped, and add 3+ scope values (to trigger the +N pill). Add a child subcontext (one Required, one Conditional).
1. Items list — /admin/config/ai/context/items
- Tab through the page; with a screen reader on (VoiceOver):
- Mouse hover still shows the tooltips.
- Inspect DOM: decorative SVGs have
aria-hidden="true"+focusable="false".
2. Agents form — /admin/config/ai/context/agents (agents with long descriptions)
- A truncated agent description: SR reads the full description; visible text stays truncated with
…. Inspect:<span aria-hidden="true">…truncated…</span><span class="visually-hidden">…full…</span>.
3. Truncated target-entity links (item referencing an entity with a long title)
- SR announces the full entity title; visible link text stays truncated. Non-truncated labels render plainly (no redundant markup).
Checklist
- I have updated the MR title to use format:
Issue #1234: My issue title. - I have updated the MR description to include:
Closes #1234 - I have performed a self-review of my own code
- I have added or updated tests, or explained in the description why this change is not covered by tests
- I have updated documentation for any new or changed functionality
- I have written testing instructions and verified them locally
- I have noted any required post-merge steps (config imports, cache rebuilds, manual changes)
- This MR contains no breaking API or hook changes, or they are explicitly documented in the description
AI Compliance
Note
Check the one that best describes your usage, or leave all unchecked if AI was not significantly used.
- AI Assisted Code
Mainly written by a human; AI used for autocomplete or partial generation under full human supervision. - AI Generated Code
Mainly generated by AI, reviewed and approved by a human before this MR was created. - Vibe Coded
Generated by AI and only functionally reviewed before this MR was created.
Closes #3586302
Edited by Joshua Fernandes