Admin Fields Are simple-fields
RULES.md
Every field in admin chrome (app-hax, HAXcms core UI, the editor, outline-designer, the character builder) is a `simple-fields-field`: text, search, select, textarea, checkbox and radio. Style it with `HaxUiAdminSimpleFields` from `@haxtheweb/d-d-d/lib/HaxUiAdminControls.js` (`class="hax-ui-simple-field"`, `compact` for a 32px toolbar field) and read changes from `value-changed` (`e.detail.value`; it also fires for the value it was rendered with, so set state from it rather than toggling). Never hand-draw `<input>`, `<select>` or `<textarea>` in admin chrome: a native control styled per element is how white-on-white dark mode bugs slip through, and one element gives one look, one keyboard and screen reader behavior and one place where light and dark colors are set. Hidden and file inputs are not fields. Enforced in haxtheweb/webcomponents by the HAX UI admin contract check (`yarn lint:hax-ui-admin`, rule `raw-field`), which fails `yarn precheck` and CI on a new hand-drawn field; fields that predate the rule are listed in `scripts/hax-ui-admin-contract.baseline.json` and are converted when their files are touched. Extends `1992902d74844c908ab446`. In PRAW RULES.md (scope: design-system). Nothing enforces this yet.
A check that enforced this is gone from Quality control: q_hax_ui_admin_contract.
Status: gap
Connects to
- Design System Standards includes this
- Serves Accessible
- Applies to DDD
- Applies to HAXcms
- Applies to HAX editor