Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
navigation.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Sep 2024 at 00:03 UTC
Updated:
31 Mar 2025 at 09:09 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #3
finnsky commentedWe will remove when we will have clean icon management https://www.drupal.org/project/drupal/issues/3432173 until this it looks impossible.
Comment #4
finnsky commentedComment #5
finnsky commentedWe need to apply this here for items which does not have icons.
Should be enough imo.
https://dev.to/whitep4nth3r/hide-text-in-css-pseudo-elements-from-screen...
Comment #6
m4oliveiComment #8
m4oliveiThis was a tiny bit tricky b/c we need PostCSS to not mess up the form that is required to provide the empty alt text. Should be OK now. Needs browser testing, but Can I Use shows 91%: https://caniuse.com/?search=content%20alt%20text
Comment #9
m4oliveiComment #10
rkollerthank you! i've manually tested on macOS Sequoia 15.3.1 with Safari 18.3, latest Firefox, and latest Edge - the voiceover output is the same in all three browsers. it looks like the prefixed abbreviations got already removed for default menu items with icons without the MR applied, but menu items without an icon still show the abbreviation:
With the MR applied those abbreviations get also hidden/removed for menu items that do not have an icon:
so overall that looks good to go. since the MR is following the approach suggested by @finnsky in #5 i think it would be ok to set the issue to RTBC.
Comment #14
nod_thanks for the extra check
Committed 7257036 and pushed to 11.x. Thanks!