Skip to content

Suggestion: Associate HTML label tags with input tags #5329

@pano9000

Description

@pano9000

Description

Hi all,

I was noticing that the majority of HTML label tags, that are used in various dialogs, etc., are not directly "associated" with an input HTML tag (either explicitly via id, or implicitly via nested input tags).

Total labels
grep -R "<label.*>.*</label>" src/ | wc -l
65

Explicitly associated labels:
grep -R "<label.*for=.*>.*</label>" src/ | wc -l
12

Implicitly associated labels:
grep -R "<label.*><inp.*</label>" src/ | wc -l
5

Generally it only offers advantages to have them associated (see also https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label), at virtually no cost :-)

I started the work locally in my git clone, but wanted to make sure if there are maybe any specific reasons against it, that I might not be aware of?

If there are no objections I will finish my work and create a PR accordingly.

Looking forward for a "go ahead"
Thanks

TriliumNext Version

git

What operating system are you using?

Other Linux

What is your setup?

Local (no sync)

Operating System Version

any

Error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions