az-digital / az_quickstart

UArizona's web content management system built with Drupal 10.
https://quickstart.arizona.edu
GNU General Public License v2.0
30 stars 20 forks source link

Allow alt text on images to be indicative of decorative images #3657

Open danahertzberg opened 3 months ago

danahertzberg commented 3 months ago

Motivation

I want to add imagery to my website and be able to identify it appropriately with alt text.

Is your feature request related to a problem? Please describe.

Currently, the alt text field is required but there is not a way to indicate the image as decorative. Identified in this PR: https://github.com/az-digital/az_quickstart/pull/3610#issuecomment-2293887879

Alt text should be added to every image, but if there is a space in the alt text content, a screen reader will skip over it. If alt text does not exist at all, the screen reader will read out the title of the image which is not ideal.

Proposed Resolution

Describe the solution you'd like

Final solution to be determined.

Describe alternatives you've considered

There are a number of options we could use to help this issue.

  1. The alt text field could allow as a valid text input
  2. There could be a checkbox to mark the image as "decorative" which puts the space in the alt text field.
  3. There could be a in the alt text field by default.

Regardless of solution, help text on the alt text field should be added so more context is provided to the content editor.

Additional context

Add any other context or screenshots about the feature request here.

BradBarkel commented 3 months ago

We've had some discussions about this at UCATT and we found this module that might be helpful:

We haven’t installed the module or tested it, and it brought up some additional discussion topics like: