]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add fallback border-radius to .btn (#24505)
authorMark Otto <markd.otto@gmail.com>
Sun, 29 Oct 2017 05:42:09 +0000 (22:42 -0700)
committerGitHub <noreply@github.com>
Sun, 29 Oct 2017 05:42:09 +0000 (22:42 -0700)
Fixes #24503 by manually calling the border-radius instead of using the mixin.

scss/mixins/_buttons.scss

index a99d71de1e229447f55745769a3e2d1831802ed0..de3c530bb5dc7dea8b4611138fbaf0dcc273cf65 100644 (file)
   padding: $padding-y $padding-x;
   font-size: $font-size;
   line-height: $line-height;
-  @include border-radius($border-radius);
+  // Manually declare to provide an override to the browser default
+  @if $enable-rounded {
+    border-radius: $border-radius;
+  } @else {
+    border-radius: 0;
+  }
 }