backpex icon indicating copy to clipboard operation
backpex copied to clipboard

Use description list (`dl`) element on show views

Open Flo0807 opened this issue 9 months ago • 0 comments

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>

Flo0807 avatar Apr 24 '25 14:04 Flo0807