Skip to content
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

Add missing border-radius for btn-group #35467

Merged
merged 7 commits into from
Dec 16, 2021
Merged

Add missing border-radius for btn-group #35467

merged 7 commits into from
Dec 16, 2021

Conversation

AndyJiang99
Copy link
Contributor

@AndyJiang99 AndyJiang99 commented Dec 5, 2021

Fixes the border-radius for btn-group

Fixes #34598

Copy link
Member

@ffoodd ffoodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be added before the comment regarding double borders, with a line break between them.

Apart from that, I don't see any reason to reject this. Thanks!

@AndyJiang99
Copy link
Contributor Author

This should be added before the comment regarding double borders, with a line break between them.

Apart from that, I don't see any reason to reject this. Thanks!

Thanks for letting me know. I've addressed the changes, please take another look when you get a chance to. Thanks! Additionally, since I'm a first-time contributor for this repo, I need a maintainer to approve running workflows.

@AndyJiang99 AndyJiang99 requested a review from ffoodd December 8, 2021 22:09
@@ -34,6 +34,9 @@
}

.btn-group {
// Prevent white corners if shadow or shadow-lg property applied
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment isn't really needed, the property and value speak for themselves.

Then I guess it'd be good to go 👌

@AndyJiang99 AndyJiang99 requested a review from ffoodd December 8, 2021 23:09
@AndyJiang99
Copy link
Contributor Author

Addressed linting issue for border-radius on the property-disallowed-list

@@ -34,6 +34,8 @@
}

.btn-group {
border-radius: $btn-border-radius;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be better to use the dedicated mixin instead of disabling the stylelint rule. We wouldn't use the rule if we needed to disable it all the time.

Moreover the mixin will only compute the property when $enable-rounded is true, to respect global setting and stay aligned with buttons styles.

In that case:

Suggested change
border-radius: $btn-border-radius;
@include border-radius($btn-border-radius​);

And that'd be perfect!

Sorry for the several changes, thanks a lot for your patience!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, understood! No worries, addressed the changes!

@AndyJiang99 AndyJiang99 requested a review from ffoodd December 9, 2021 21:03
Copy link
Member

@ffoodd ffoodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@XhmikosR XhmikosR changed the title Add in border-radius for btn-group Add missing border-radius for btn-group Dec 16, 2021
@XhmikosR XhmikosR merged commit 4a66f22 into twbs:main Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Button Group classes are missing border-radius properties
3 participants