Figure/Figcaption for Image Widget

Created on 17 July 2014, over 10 years ago
Updated 29 May 2023, over 1 year ago

In D8 now you can use CKEditor to add an image caption. This properly wraps an image in a figure/figcaption element. I do think this would be a useful option for the image system. It would also make the UI more consistent.

If this is done though, we'd need to keep in mind from the W3C "An image is contained within a figure element and has an associated caption provided using the figcaption element. Using an empty alt attribute hides an image from some users. If an image has a caption the image needs to be discoverable by users, otherwise a caption is present that refers to nothing for some users."

Some screenshots of what it could look like (and I added figure/figcaption here too)

Made with gimp sadly

Made properly with Firebug

Feature request
Status

Needs work

Version

11.0 🔥

Component
Image system 

Last updated about 21 hours ago

Created by

🇨🇦Canada mgifford Ottawa, Ontario

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024