mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-06-14 12:11:27 +08:00
fix(skills): add required attr alongside aria-required in form example
This commit is contained in:
@@ -44,11 +44,11 @@ Missing `htmlFor` / `id` pairing and disconnected error messages are the most co
|
|||||||
<label htmlFor="email">Email *</label>
|
<label htmlFor="email">Email *</label>
|
||||||
<input id="email" type="email" />
|
<input id="email" type="email" />
|
||||||
|
|
||||||
// GOOD: aria-required signals requirement programmatically
|
// GOOD: required enables native browser validation; aria-required signals it to screen readers
|
||||||
<label htmlFor="email">
|
<label htmlFor="email">
|
||||||
Email <span aria-hidden="true">*</span>
|
Email <span aria-hidden="true">*</span>
|
||||||
</label>
|
</label>
|
||||||
<input id="email" type="email" aria-required="true" />
|
<input id="email" type="email" required aria-required="true" />
|
||||||
```
|
```
|
||||||
|
|
||||||
### Error Messages
|
### Error Messages
|
||||||
|
|||||||
Reference in New Issue
Block a user