-
Notifications
You must be signed in to change notification settings - Fork 56
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
Checks&Radios: Increase the size to follow the brand #1860
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for boosted ready!
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.
A little suggestion and it's ok for 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.
LGTM 🚀
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Checkboxes and Radio buttons are now the correct size. All looks good to me. |
in terms of size, 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.
contrast on "star rating" chapter
It will be tackled in another PR. Thanks a lot for your review! Edit: Will be tackled via #2005 |
IMO this PR should also tackle a change of margins for the |
As far as I can see, it seems like 20px is common at Orange, should I set it to 20 or maybe only 10? 5? Might be asked to a designer maybe 🤔 Or maybe change the Thinking out loud here but shouldn't we avoid small margin like |
Designer:
f30721b takes care of it. |
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.
There's at least an issue in https://deploy-preview-1860--boosted.netlify.app/docs/5.3/forms/validation/#browser-defaults where the space between the checkbox and the button seems too important (compared to https://boosted.netlify.app/docs/5.3/forms/validation/#browser-defaults).
Please double-check all places in the documentation where there are some .form-check
and the surrounding spacings.
Should be resolved right now.
Should I update any design description in order to note somewhere the spacings we agreed on ? |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
Haven't checked everything yet but the migration guide note's missing to maybe explain to users that there's a new rendering (probably not impactful) but that there's a new rule that can be impactful regarding the fact that there's a forced bottom margin for .form-check
s.
Based on the latter, in tables.md
, there are a lot of <div class="form-check mb-0">
that should be modified to take into account this rule because the .mb-0
is now useless. Please check all the margin utilities used alongside the new modifications brought by this PR to remove useless classes if needed.
|
||
// Boosted mod: Remove margin when it's the last element of a form. | ||
&:last-child { | ||
margin-bottom: 0; |
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.
I'm not convinced by this rule, need to think about it. There's no such rule in Bootstrap and it might lead to discrepancies while using libraries based on Bootstrap (just by switching the CSS to Boosted one).
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.
In Bootstrap the margin bottom
is 2px
so I think it won't break much. However, our margin-bottom not on last-child
might break some designs.
Note: Please transform
- [ ]
into- (NA)
in the description when things are not applicableRelated issues
NA
Description
Working on an example, I found this issue, so here is a separate PR to tackle this.
Motivation & Context
Checks and Radios are too small compared to the design.
Types of change
Live previews
Checklist
Contribution
Accessibility
Design
Development
Documentation
Checklist (for Core Team only)
After the merge