-
Notifications
You must be signed in to change notification settings - Fork 116
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
Toggle switch error messages #1760
Commits on Jan 13, 2023
-
Add error message support to ToggleSwitches
Render a validation element and fill it in or hide it depending on the response from the server.
Configuration menu - View commit details
-
Copy full SHA for 0e86389 - Browse repository at this point
Copy the full SHA 0e86389View commit details -
In forms, top-align toggle switch with label
This looks a lot nicer when there is also a caption and/or validation message after the label.
Configuration menu - View commit details
-
Copy full SHA for 60b6586 - Browse repository at this point
Copy the full SHA 60b6586View commit details -
Reserve space for ToggleSwitch octicon
This will occupy the same amount of space regardless of if we are showing one of the status octicons (loading or error) to prevent excessive layout jumping on the page. Also adds a gap style to the flexbox container to keep a little distance from the label/caption/validation message.
Configuration menu - View commit details
-
Copy full SHA for 8ccf211 - Browse repository at this point
Copy the full SHA 8ccf211View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce006f5 - Browse repository at this point
Copy the full SHA ce006f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f69035 - Browse repository at this point
Copy the full SHA 3f69035View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b5c824 - Browse repository at this point
Copy the full SHA 1b5c824View commit details -
Configuration menu - View commit details
-
Copy full SHA for d62374b - Browse repository at this point
Copy the full SHA d62374bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 15fc06f - Browse repository at this point
Copy the full SHA 15fc06fView commit details -
Merge branch 'neall/toggle-switch-error-messages' of github.com:prime…
…r/view_components into neall/toggle-switch-error-messages
Configuration menu - View commit details
-
Copy full SHA for c005a66 - Browse repository at this point
Copy the full SHA c005a66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3225b5d - Browse repository at this point
Copy the full SHA 3225b5dView commit details
Commits on Jan 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 39612d7 - Browse repository at this point
Copy the full SHA 39612d7View commit details -
Update app/components/primer/alpha/toggle_switch.pcss
Co-authored-by: Katie Langerman <18661030+langermank@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for c091b18 - Browse repository at this point
Copy the full SHA c091b18View commit details
Commits on Jan 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 95bca4d - Browse repository at this point
Copy the full SHA 95bca4dView commit details -
Merge branch 'neall/toggle-switch-error-messages' of github.com:prime…
…r/view_components into neall/toggle-switch-error-messages
Configuration menu - View commit details
-
Copy full SHA for 4c1d06a - Browse repository at this point
Copy the full SHA 4c1d06aView commit details