Skip to content

figure elements with figcaptions flagged as not having labels #2279

@fstrr

Description

@fstrr

Describe the bug
A figure element with a figcaption element inside it is flagged as "The <figure> element does not have an associated label Learn more". One of the "what to do" suggestions is "Add a <figcaption> element inside the <figure> element to provide a visual caption that describes the figure".

To Reproduce

Steps to reproduce the behavior:

  1. Go to test case on CodePen
  2. Scan the page
  3. Scroll down the figure recommendation

Expected behavior
A figure element with a nested figcaption element shouldn't be flagged as an issue.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS latest
  • Browser Edge
  • Version 136.0.3240.64

Definition of Done

  • NA Design artifacts reviewed
  • NA Work item implemented
  • Automated test case created (when applicable)
  • Unit test completed
  • Run Checker (when applicable)
  • Manual and Screen Reader Testing (when applicable)
  • NA Video recording of user experience walkthrough (if impact to UX)
  • PR created

Metadata

Metadata

Labels

T71extension-checkerIssues related to the browser extensionsuser-reportedIssues identified outside of the core team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions