Closed jonnystening closed 5 years ago
Ref https://github.com/WestpacCXTeam/GUI-source/issues/173 for additional legacy context
GUI-radios and GUI-checkboxes to be deprecated. Both now rolled into GUI-form-checks https://github.com/WestpacCXTeam/GUI-form-checks
Rationale
We have decided to rebuild the GUI-radios and GUI-checkboxes modules, addressing a number of a11y and implementation concerns and bring about some new benefits...
1. Accessibility (WCAG 2.1 AA)
2. Reduce maintenance overhead / unnecessary codebase bloat
type
attribute. Simple.form-check
in their codebase)3. Markup implementation
.radio-block
and.checkbox-block
modifiers in order to render stacked radios/checkboxes, which have become the convention – and strongly encouraged by the likes of Nielsen Norman Group etc. ref. Checkboxes vs Radio buttonsChange summary
The following items have changed...
.form-checks-item-large
Additionally, worth mentioning...
Implementation guide
The following is a quick guide to illustrate the new HTML markup structure. Please refer to the GEL GUI Framework documentation of Form-Checks for the official implementation notes.