getgrav / getgrav/grav-plugin-form

Missing “for” attribute for label elements

Open
#560 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
64
Forks
80
Avg merge
10h 13m
Merged PRs (30d)
9

Description

It seems that Grab generates form labels without `for` attributes:

```html



Name *







```

However, `for` attributes are very important to create the connection between the `label` and the form field. This should be rather look like this:

```html



Name *







```

Could this be implemented? Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the form label and input rendering entry points in the Grav Form Plugin and compare them with the HTML examples in this issue. Ensure generated labels reference matching input ids, then verify the rendered markup for the shown name field and related form fields.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
accessibility, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.