Skip to content

Conversation

hestro
Copy link
Member

@hestro hestro commented Nov 15, 2026

This PR goes through our own components and looks for <div> and <span> elements, to check that we only use them where no semantic element fits.

  • Replace two elements with more fitting semantic elements
  • Add a short comment to every remaining <div> and <span> that explains what it is used for and why it is still needed

The shadcn components in components/ui are not changed or commented, because they are built on accessible primitives. The reason will be explained in accessibility.md.

Closes #145

@hestro hestro added the refactor Restructuring of existing code in order to easy maintenance, readability or otherwise improve it. label Nov 15, 2026
@hestro hestro added this to the Deliverable 4 milestone Nov 15, 2026
@hestro hestro self-assigned this Nov 15, 2026
@hestro hestro marked this pull request as ready for review November 15, 2026 17:28
@hestro hestro requested a review from a team as a code owner November 15, 2026 17:28
Copy link
Member

@martakam martakam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for documenting this! I checked all comments and agree with them

@hestro hestro merged commit 2149242 into main Nov 16, 2026
7 checks passed
@martakam martakam deleted the refactor/semantic-html-elements branch November 16, 2026 20:05
Sign in to join this conversation on GitHub.
Labels
refactor Restructuring of existing code in order to easy maintenance, readability or otherwise improve it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor: use semantic HTML elements
2 participants