-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Blacklist border-radius property (use mixin instead) #27900
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,6 +144,7 @@ | |
|
||
.custom-radio { | ||
.custom-control-label::before { | ||
// stylelint-disable-next-line property-blacklist | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess the custom radios should always be round, independent of |
||
border-radius: $custom-radio-indicator-border-radius; | ||
} | ||
|
||
|
@@ -173,6 +174,7 @@ | |
left: -($custom-switch-width + $custom-control-gutter); | ||
width: $custom-switch-width; | ||
pointer-events: all; | ||
// stylelint-disable-next-line property-blacklist | ||
border-radius: $custom-switch-indicator-border-radius; | ||
} | ||
|
||
|
@@ -182,6 +184,7 @@ | |
width: $custom-switch-indicator-size; | ||
height: $custom-switch-indicator-size; | ||
background-color: $custom-control-indicator-border-color; | ||
// stylelint-disable-next-line property-blacklist | ||
border-radius: $custom-switch-indicator-border-radius; | ||
@include transition(transform .15s ease-in-out, $custom-forms-transition); | ||
} | ||
|
@@ -220,11 +223,7 @@ | |
background: $custom-select-background; | ||
background-color: $custom-select-bg; | ||
border: $custom-select-border-width solid $custom-select-border-color; | ||
@if $enable-rounded { | ||
border-radius: $custom-select-border-radius; | ||
} @else { | ||
border-radius: 0; | ||
} | ||
@include border-radius($custom-select-border-radius, 0); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't really like the |
||
@include box-shadow($custom-select-box-shadow); | ||
appearance: none; | ||
|
||
|
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.
Not sure if we should add a mixin for
border-top-right-radius
and the other specific border radii?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.
Eh, probably not necessary? It'd save on a bit of CSS when folks compile without rounded corners enabled, but probably not worth it right now.