Created by: aslamdoctor
when I try to use button-size() mixin in my project as below:
@include button-size(10px, 10px, 20px, 6px);
I get this error:
SassError: Only 1 argument allowed, but 2 were passed.
┌──> node_modules\bootstrap\scss\mixins\_buttons.scss
109│ @include border-radius($border-radius, 0);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invocation
Which is because of 2 arguments being passed to border-radius() method.
Activity
requested review from @ghost
I see no issue in our
main
branch. Perhaps something is out of sync?.test { @include button-size(10px, 10px, 20px, 6px); }
diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index 892302a62..dccffb060 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -3404,6 +3404,12 @@ textarea.form-control-lg { border-radius: 0.2rem; } +.test { + padding: 10px 10px; + font-size: 1.25rem; + border-radius: 6px; +}
Created by: aslamdoctor
I am using sass library from npm to compile the files. Would that be an issue? https://www.npmjs.com/package/sass
Please register or sign in to reply