Skip to content

landmark-unique violation at /examples/kitchen-sink/generic.html #1479

@gabalafou

Description

@gabalafou

Sub-issue of #1428.

The landmark-unique rule violation shows up on the "Generic" page as a result of the <aside> tags within the <article> not having an accessible name (role + label/title).

(Note: same violation shows up in an aside on the Theme Elements page.)

Origin of the asides

How do these <aside> tags get generated? I believe they are created by Sphinx when converting a sidebar directive. For example, let's look at the following directive from the docs source:

.. sidebar:: Ch'ien / The Creative
Lorem ipsum dolor sit amet consectetur adipisicing elit.
.. image:: https://source.unsplash.com/200x200/daily?cute+puppy
Lorem ipsum dolor sit amet consectetur adipisicing elit.

This gets converted to the following HTML:

<aside class="sidebar">
<p class="sidebar-title">Ch’ien / The Creative</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
<img alt="https://source.unsplash.com/200x200/daily?cute+puppy" src="https://source.unsplash.com/200x200/daily?cute+puppy">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
</aside>

Metadata

Metadata

Assignees

Labels

tag: accessibilityIssues related to accessibility issues or efforts

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions