-
Notifications
You must be signed in to change notification settings - Fork 19
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
Styling: Checkbox States (Error/Warning/Success) #1889
Conversation
Changes: - Carried over the error/warning/success state styling from TextInput to Checkboxes - Updated the Checkbox stories to show the new styling
@shindigira |
✅ Thanks for the improvements! Browse a preview of your changes using the link below.
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Thanks for the improvements! Browse a preview of your changes using the link below.
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Thanks for the improvements! Browse a preview of your changes using the link below.
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shindigira
I would like to show only the default states for Success, Warning, and Error.
- Change "Variation status" (h3) to "Validation status" (h4)
- Change "Validation status" to an H4 section
- Show only Default state for Success, Warning, Error
- Delete Focus state from live code example
- Define success Default as Green (currently shows the Default checkbox style - Gray)
- For text inputs we use outline to accomplish the 1px border. It looks like in this implementation we're using box shadow. Should we be consistent?
Updated as such! Try the preview link now. |
Please check again. The preview link's content was stale; the focus content should not be there. I am keeping the standard 1px border and 1px box-shadow; same as in TextInputs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shindigira
I show that Text inputs uses outline instead of box shadow.
It looks like there was an inadvertent change to the "Standard checkbox with helper text" live code example. Instead of "Checkbox label (This is optional helper text)" it is showing "Success". Can you correct?
Thank you for catching those issues. I have corrected the issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shindigira
Is it possible to define hover+focus?
- Success: Green
- Warning: Gold
- Error: Red
Currently hover is still Pacific which is what I would expect since we're handling that change separately. But can we define the hover+focus as part of this change (in the image below the solid outline would be Gold)?
Resolved, please try the preview link again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shindigira Nice work! This looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 !
closes #1883
Changes
How to Test
form-fields.less
and ensure no unintended styling changes affect other componentsCheckboxes
story section and view the new stylesScreenshot(s)
Added states