-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch component #194
Comments
The Switch ComponentThe Switch component has 3 states - unselected, hovered, and selected.
MobileAs we have limited screen real estate on mobile, changing the Switch to a Select seems most appropriate here. Vertically stacking the selection could be one option, however this will take up a significant amount of room. Changes from original design
|
The difference between Hover and Selected is quite subtle in terms of border width. I wonder if the hover could be lower contrast and the selected could have a slightly larger border and higher contrast? |
This is now in active development. |
WIP @ #266 |
The switch component is a form component used to record a selection from a number of values. With regards to behaviour, a switch can be thought of like a radio field, allowing a single choice from a small number of options. The different between a switch and radio is presentation, a switch looks similar to a button group.
A switch should use markup for a field group, complete with legend to act as the label for the range of options.
The switch will need to be compatible with Formik.
Not sure how a switch should present on mobile, this depends how inputs should size. Should they go full width?
The text was updated successfully, but these errors were encountered: