docs(requirements): tighten form effect rows
Add explicit northstar ring fields to form_effects requirements and shorten the generated clear command wording without changing behavior. req: form_effects/001 req: form_effects/002 req: form_effects/003
This commit is contained in:
+3
-3
@@ -472,13 +472,13 @@ what a valid business email is. [north_star]
|
||||
## form_effects
|
||||
|
||||
### req: form_effects/001
|
||||
001 Generated form APIs provide common commands: `clear()`, `clear(field)`, `reset()`, `error(field, message)`, `focus(field)`, and `disable_while_pending()`. `form.clear()` clears the canonical generated form without requiring callers to name raw control ids.
|
||||
0 001 Generated form APIs provide common commands: `clear()`, `clear(field)`, `reset()`, `error(field, message)`, `focus(field)`, and `disable_while_pending()`. `form.clear()` clears the generated form without raw control ids. [north_star]
|
||||
|
||||
### req: form_effects/002
|
||||
002 Form effects target generated form/control ids, not CSS selectors.
|
||||
0 002 Form effects target generated form/control ids, not CSS selectors. [north_star]
|
||||
|
||||
### req: form_effects/003
|
||||
003 Templates may declare error display targets with `data-hemx-error-for="field"`. Generated form error effects render into those targets when present and fall back to control validity APIs otherwise.
|
||||
0 003 Templates may declare error display targets with `data-hemx-error-for="field"`. Generated form error effects render into those targets when present and fall back to control validity APIs otherwise. [north_star]
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user