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 new rounded sizes classes #28011

Merged
merged 12 commits into from Jan 13, 2019
Merged

Add new rounded sizes classes #28011

merged 12 commits into from Jan 13, 2019

Conversation

jt143
Copy link
Contributor

@jt143 jt143 commented Jan 9, 2019

Add $enable-rounded as a keyword argument to border-raidus mixins
- use border-radius mixins to repleace !important
- use true for $enable-rounded for rounded classes
- Add `.rounded-sm` and `.rounded-sm`  twbs#27934
@jt143 jt143 requested a review from a team as a code owner January 9, 2019 11:40
@jt143 jt143 changed the title Update border-radius mixins, remove !important in rounded class, add rounded-sm and rounded-lg classes Update border-radius mixins, border-radius classes, add new rounded sizes classes Jan 9, 2019
Copy link
Member

@XhmikosR XhmikosR left a comment

Choose a reason for hiding this comment

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

Please do not touch any dist files.

@XhmikosR
Copy link
Member

XhmikosR commented Jan 9, 2019

Also, there's a good reason for using !important in utilities.

@jt143 jt143 changed the title Update border-radius mixins, border-radius classes, add new rounded sizes classes Add new rounded sizes classes Jan 9, 2019
@jt143
Copy link
Contributor Author

jt143 commented Jan 9, 2019

updated!

@MartijnCuppens
Copy link
Member

Thanks for the PR, @jt143!

These classes have !important because they are utility classes. The classes just do one thing and shouldn't depend on other classes.

Therefor I would go for .rounded-sm classes instead of .rounded.rounded-sm classes (same for .rounded-lg). And also .rounded-top-sm classes instead of .rounded-top.rounded-sm (and same behaviour for other variants).

Copy link
Member

@mdo mdo left a comment

Choose a reason for hiding this comment

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

We wouldn't chain these new classes to the side classes like this. Utilities should never ben extended, chained, or modified. For now, I'd suggest we do .rounded-sm and .rounded-lg only.

@jt143
Copy link
Contributor Author

jt143 commented Jan 10, 2019

Hi @mdo and @MartijnCuppens
Thank you for your reviews! I have updated as requested.

Copy link
Member

@MartijnCuppens MartijnCuppens left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@MartijnCuppens MartijnCuppens added this to Inbox in v4.3 via automation Jan 12, 2019
@XhmikosR XhmikosR moved this from Inbox to Needs review/changes in v4.3 Jan 13, 2019
Copy link
Member

@mdo mdo left a comment

Choose a reason for hiding this comment

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

Looks good!

@mdo mdo merged commit 8f5abf0 into twbs:v4-dev Jan 13, 2019
v4.3 automation moved this from Needs review/changes to Shipped Jan 13, 2019
@mdo mdo mentioned this pull request Jan 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v4.3
  
Shipped
Development

Successfully merging this pull request may close these issues.

None yet

4 participants