Opened 4 years ago
Closed 6 days ago
#6680 closed defect (bug) (wontfix)
Add alt-s for id wp-admin-bar-user-info
| Reported by: | blackstar1991 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | WordPress.org Site | Keywords: | |
| Cc: |
Change History (4)
#2
@
4 years ago
On one of this image you can add aria-hidden="true" if it's worries the developer. I also don't understand for what reason developers add attribute 'loading="lazy"' for <img> that always show in first screen? Why is system don't use 'loading="eager"' for not hiding first <img> ?
#4
@
6 days ago
- Resolution → wontfix
- Status new → closed
These avatars come from WordPress core's admin bar (wp_admin_bar_my_account_item() and wp_admin_bar_my_account_menu()); WordPress.org doesn't change them. Each avatar sits right next to the user's display name, so the empty alt correctly marks it as decorative and keeps screen readers from announcing the name twice, as Otto42 pointed out. Closing as wontfix. If you think core should handle this differently, please open a ticket on Core Trac (https://core.trac.wordpress.org/newticket, component Toolbar).
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)

Both of those have the display name right next to them in spans. Wouldn't having an alt text cause the name to be read twice in a screen reader?