Skip to content

Accessibility improvement - #26

Merged
sneridagh merged 3 commits into
kitconcept:mainfrom
tomschall:feat-accessibiltiy
Oct 28, 2025
Merged

Accessibility improvement#26
sneridagh merged 3 commits into
kitconcept:mainfrom
tomschall:feat-accessibiltiy

Conversation

@tomschall

@tomschall tomschall commented Jun 26, 2025

Copy link
Copy Markdown
Contributor

This PR improves accessibility by rendering a semantic <a> tag instead of a <Button> when the component is linked (data.href). Buttons are meant for actions, while links indicate navigation. Using the correct HTML element helps assistive technologies (like screen readers) interpret the component properly and enhances keyboard navigation and semantics.

In edit mode, the button is still wrapped in a ConditionalLink, as before. In view mode, a plain <a> tag is rendered when a link is present, and a <Button> is used only if no link exists.

@sneridagh
sneridagh requested a review from danalvrz July 16, 2025 16:04

@sneridagh sneridagh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@tomschall sorry for the delay, I just saw it. In case that this happen again, just ping me on usual channels.

@sneridagh
sneridagh merged commit 31ee2e9 into kitconcept:main Oct 28, 2025
1 check passed
sneridagh added a commit that referenced this pull request Oct 28, 2025
sneridagh added a commit that referenced this pull request Oct 28, 2025
* origin/main:
  Accessibility improvement (#26)
  Updated Spanish translations (#28)
  Transfer enhanced VLT schema (#30)
sneridagh added a commit that referenced this pull request Oct 28, 2025
* Last PR #26 missing styles

* Merge remote-tracking branch 'origin/main' into css-26

* origin/main:
  Accessibility improvement (#26)
  Updated Spanish translations (#28)
  Transfer enhanced VLT schema (#30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants