-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Clean up the reset code for button's rounded corners in button group and input button #24696
Conversation
- Use last-of-type selector instead of dropdown-toggle - Remove `border-raduis :0` because it is enough by each reset of the left and right side
Hi @ysds Thanks for the PR. I found that there is still a rounded corner on the last btn before the drop menu. Look a the first example under "nesting": It's really challenging to remove or simplify code, thanks a lot for giving it a try. |
Hi @andresgalante Thank you for your review! and sorry for my insufficient check. Using |
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.
} | ||
|
||
// Custom edits for including btn-groups within btn-groups (useful for including | ||
// Alignment for including btn-groups within btn-groups (useful for including | ||
// dropdown buttons within a btn-group) | ||
> .btn-group { | ||
float: left; |
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.
Do we actually need this float here? What is it for?
I updated the comment more concisely.
I think so too. it will not be needed. and there seems to be some other code that can be deleted/clean-up. e.g: L47- .btn-group {
> .btn:first-child {
margin-left: 0;
} and more. I can additional cleanup with another PR if this PR is approved. Thanks. |
Changes to the input group here will need to be removed once #25020 lands. |
Please follow #25073 😄 |
A
.dropdown-toggle
selector is used to reset a button's rounded corner in button group and input button. But should not use adropdown-toggle
selector to reset it, becausedropdown-toggle
does not have rounded corners by default.This PR including the follwings:
last-of-type
selector instead of.dropdown-toggle
border-raduis :0
because it is enough by each reset of the left and right sideI hope that this PR will help improve code. Thanks.