Form
v1.0.0A collection of styles for labels, hint text, inline error messages, fieldsets and spacing for form controls.
Released
- History
- View changes
- Install
- npm i @gold.au/form
- Tags
- Requires
- Contributors
Fieldset reset
Fieldset elements with default styling are rendered differently on different browsers. To achieve cross-browser consistency the default browser styles for fieldset are removed.
Label positioning
Labels are best placed above the form field as opposed to right or left aligned labels. There are several advantages of this approach:
- label length does not affect form field placement
- faster completion rates
- reduces the number of fixations (easier to scan)