Skip to content

Image caption isn't associated to the image in an accessible way #1074

@druxstr

Description

@druxstr

When adding a caption to an image, the caption fails to meet RGAA criterion 1.9.1.

The caption isn't properly associated with the captioned image.

Expected : using the <figure> element to wrap both <img> and it's caption

Actual :

<div class="bn-file-block-content-wrapper" style="width: fit-content;">
    <div class="bn-visual-media-wrapper">
    <img class="bn-visual-media" src="foo" alt="bar.jpg" contenteditable="false" draggable="false">
    </div>
    <p class="bn-file-caption">image caption</p>
</div>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions