Skip to content
Prev Previous commit
Next Next commit
feat(support): add $border-radius-2
  • Loading branch information
shawnbot committed Nov 15, 2019
commit 6c3ada7b49e2386d260288fc83516b34f782561c
2 changes: 1 addition & 1 deletion src/select-menu/select-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
flex-direction: column;
background-color: $bg-gray;
// stylelint-disable-next-line primer/borders
border-radius: $border-radius * 2;
border-radius: $border-radius-2;
// stylelint-disable-next-line primer/box-shadow
box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
animation: SelectMenu-modal-animation 0.12s cubic-bezier(0, 0.1, 0.1, 1) backwards;
Expand Down
1 change: 1 addition & 0 deletions src/support/variables/misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $border-color: $border-gray !default;
$border-style: solid !default;
$border: $border-width $border-color $border-style !default;
$border-radius: 3px !default;
$border-radius-2: $border-radius * 2 !default;

// Box shadow
$box-shadow: 0 1px 1px rgba($black, 0.1) !default;
Expand Down
4 changes: 2 additions & 2 deletions src/utilities/borders.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
/* Add a border-radius to all corners */
.rounded#{$variant}-1 { border-radius: $border-radius !important; }
/* Add a 2x border-radius to all corners */
.rounded#{$variant}-2 { border-radius: $border-radius * 2 !important; }
.rounded#{$variant}-2 { border-radius: $border-radius-2 !important; }

@each $edge, $corners in $edges {
.rounded#{$variant}-#{$edge}-0 {
Expand All @@ -62,7 +62,7 @@

.rounded#{$variant}-#{$edge}-2 {
@each $corner in $corners {
border-#{$corner}-radius: $border-radius * 2 !important;
border-#{$corner}-radius: $border-radius-2 !important;
}
}
}
Expand Down