Skip to content

Conversation

@haampie
Copy link
Contributor

@haampie haampie commented Aug 13, 2025

  • <label><div>... is invalid, so is <button><div>...

    It seems like it can be simplified using aria-label on the referenced <input> and the <buton> itself, which avoids repetition as a bonus.

  • Use <span class="icon"> instead of <i class="icon"> (the latter was popularized by font-awesome but is semantically questionable). The CSS just uses .icon anyways.

haampie and others added 3 commits August 13, 2025 14:49
`<label><div>...` is invalid, so is `<button><div>...`

It seems like it can be simplified using `aria-label` on the target, which avoids repetition.
`<i class="icon">` was popularized by font-awesome but is semantically
questionable. Just use `<span>`, the css selectors don't care, they're
all `.icon`.
@pradyunsg
Copy link
Owner

Thanks @haampie! ^.^

@pradyunsg pradyunsg merged commit f91944a into pradyunsg:main Aug 17, 2025
2 checks passed
@haampie haampie deleted the patch-5 branch August 18, 2025 06:17
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