Skip to content

Use description list (dl) element on show views #1099

@Flo0807

Description

@Flo0807

To improve a11y we should use a description list element on show views.

Each section (including the default one) should have its own description list with dt and dd elements.

So for the User show view the resulting markup should look something like this:

<!-- Default section without heading -->
<dl>
  <dt>Age</dt>
  <dd>30</dd>
    
  <dt>Role</dt>
  <dd>User</dd>
</dl>

<h2>Names</h2>
<dl>
  <dt>Username</dt>
  <dd>john_doe</dd>
    
  <dt>Full Name</dt>
  <dd>John Doe</dd>
</dl>

Metadata

Metadata

Assignees

Labels

good-first-issueIdeal for new contributors. Simple, well-defined tasks to help you get started.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions