Skip to content

DocumentCard with multiple items, commands, and views: HTML doesn't parse #11635

Description

@jlukosky

Environment Information

  • Package version(s): (fill this out)
  • Browser and OS versions: (fill this out)

Describe the issue:

In the DocumentCard with multiple items, commands, and views example, the entire block containing links is contained within a div with role="button". This doesn't parse and violates Success Criterion 4.1.1 Parsing

Please provide a reproduction of the issue in a codepen:

Codepen using unmodified Fabric example

Actual behavior:

Copying and pasting the HTML into the parser at Nu HTML Checker produces the following errors (duplicates removed):

Error: The element a must not appear as a descendant of an element with the attribute role=button.
and
Error: The element button must not appear as a descendant of an element with the attribute role=button.

Expected behavior:

Expected to parse correctly. Poorly formed HTML may result in unexpected errors for users.

Documentation describing expected behavior

Understanding Success Criterion 4.1.1: Parsing

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions