Making WordPress.org

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:

Description

Could you please add into alt's description name of current user nickename ?
class="avatar avatar-26 photo" and ‘class=”avatar avatar-64 photo”‘
https://i.ibb.co/fHC7BXJ/Fixing-Word-Press-Word-Press-org-Google-Chrome.jpg

Change History (4)

#1 @Otto42
4 years ago

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?

#2 @blackstar1991
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> ?

#3 @dd32
4 years ago

  • Component General → WordPress.org Site

#4 @obenland
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).

Note: See TracTickets for help on using tickets.