Add hyperlink-vs-button rule; register new contracts in router
- controls-selection: forbid hyperlinks for opening modals/elements unless explicitly requested; buttons required instead. - AGENT-BOOTSTRAP: add router entries for hardware-ingest-json and submodule-integration contracts (lint was failing without them).
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Contract: Controls + Selection
|
||||
|
||||
Version: 1.1
|
||||
Version: 1.2
|
||||
|
||||
## Shared Base
|
||||
|
||||
@@ -16,6 +16,9 @@ Version: 1.1
|
||||
- Button text should describe the action outcome, not implementation detail.
|
||||
- Buttons are text-first; icons are optional and must not replace labels on primary/danger actions.
|
||||
- Base examples must show both `disabled` and `loading` states.
|
||||
- Do not use a hyperlink (`<a>`/link-styled text) to open a modal, drawer, detail view, or any
|
||||
other in-page element. Use a `button` (or button-styled control) instead, unless the user
|
||||
explicitly asks for a hyperlink. Hyperlinks are reserved for navigation to another URL/page.
|
||||
|
||||
## Checkbox Selection
|
||||
|
||||
|
||||
Reference in New Issue
Block a user