- Issue created by @albertho425
+1 I guess we need some updated markup there. The W3C Patterns Guide has some examples. Unfortunately, the tooltip pattern isn't finalized, and the is a tooltip with a header and a body, which may differ from the eventual pattern.
- First commit to issue fork.
- Merge request !579Issue #3493894: VoiceOver doesn't read Tooltip content in Webform β (Open) created by jrockowitz
- πΊπΈUnited States jrockowitz Brooklyn, NY
I was skeptical about being able to fix this but then I realized that the aria-label for the tooltip was only including the help title and not the help text.
The attached MR should fix the problem but we'll need to tweak a few broken tests.
- πΊπΈUnited States warrenw
Pulled Merge request !579 locally and confirmed that it worked for me on my mac.
https://drive.google.com/file/d/15cdj2MGR-1-uyNaJ7Tchxdd__pJHv1Nl/view?u...
- Status changed to Needs review
about 2 months ago 1:19pm 24 February 2025 - πΊπ¦Ukraine Foxy-vikvik
Confirmed for Drupal 10.3 and Webform 6.3.0-beta-1 works fine and the screen reader can read the tooltip content
Patch from the merge request: - π¨π¦Canada Liam Morland Ontario, CA π¨π¦
Tests are not passing.
- πΊπ¦Ukraine Foxy-vikvik
I have hidden the patch, as it does not provide an optimal solution.
As per the documentation, ARIA: tooltip role, this approach is not recommended.
The accessible name of a tooltip can come from the contents. While, in theory, they could come from an aria-label or aria-labelledby, in most cases, using ARIA properties to provide a tooltip with an accessible name is not recommended.