mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-06-11 02:33:10 +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>
|
||||
<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">
|
||||
Email <span aria-hidden="true">*</span>
|
||||
</label>
|
||||
<input id="email" type="email" aria-required="true" />
|
||||
<input id="email" type="email" required aria-required="true" />
|
||||
```
|
||||
|
||||
### Error Messages
|
||||
|
||||
Reference in New Issue
Block a user