WordPress.org

Make WordPress Core

Opened 12 months ago

Last modified 10 months ago

#36868 new defect (bug)

Custom Logo with alternative text

Reported by: taijacg Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.5
Component: Customize Keywords: needs-patch
Focuses: accessibility, javascript Cc:

Description

When experimenting with the new Theme Logo system in 4.5, I noticed the following a11y issue:

Steps to reproduce:

  1. In customizer, upload logo under Site Identity
  2. Add alternative text to logo in upload interface
  3. Follow on screen process to crop image

Result:
Cropped image does not inherit alternative text from original, and an option to add new alternative text is not provided as part of the workflow. As a result, the image file name is very likely to end up as the alternative text for the site logo.

Expected:

  • Alternative text to be copied automatically to the cropped image OR
  • an opportunity be given for users to add new alt text to the cropped image AND / OR
  • site identity information (site title/etc) be used as alt text if none is provided

There is also no easy way provided to filter the logo alt text, or fetch only the image, so that this issue can be worked around at the theme level.

Thank you!

Change History (4)

#1 in reply to: ↑ description @joshue108
11 months ago

Hi,

Thanks for this - I'm seeing this bug without actually cropping the image.
It may be related to the theme, but I doubt it as there are plenty if images that have the correct @alt text associated. This bug was pointed out to me and they seem related.
The @alt text is added to the image/logo in the Media Library - I don't recall cropping the image at all (but may have).

HTH

Josh

Replying to taijacg:

When experimenting with the new Theme Logo system in 4.5, I noticed the following a11y issue:

Steps to reproduce:

  1. In customizer, upload logo under Site Identity
  2. Add alternative text to logo in upload interface
  3. Follow on screen process to crop image

Result:
Cropped image does not inherit alternative text from original, and an option to add new alternative text is not provided as part of the workflow. As a result, the image file name is very likely to end up as the alternative text for the site logo.

Expected:

  • Alternative text to be copied automatically to the cropped image OR
  • an opportunity be given for users to add new alt text to the cropped image AND / OR
  • site identity information (site title/etc) be used as alt text if none is provided

There is also no easy way provided to filter the logo alt text, or fetch only the image, so that this issue can be worked around at the theme level.

Thank you!

#3 @joemcgill
10 months ago

  • Component changed from General to Customize
  • Focuses javascript added

#4 @afercia
10 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release
  • Version changed from 4.5.2 to 4.5
Note: See TracTickets for help on using tickets.