Despite importing the scss/_bootstrap.scss
manifest file, I am experiencing issues with Bootstrap's custom form range thumb not working. It seems to only function properly when importing dist/bootstrap.css
or using the CDN.
Below is my manifest file for importing Bootstrap files:
// Required abstracts
@import "../../../node_modules/bootstrap/scss/functions";
@import "../../../node_modules/bootstrap/scss/variables";
@import "../../../node_modules/bootstrap/scss/mixins";
/*----------------------------- OPTIONAL -----------------------------*/
// abstract
@import "../../../node_modules/bootstrap/scss/utilities/display";
@import "../../../node_modules/bootstrap/scss/utilities/flex";
// base
@import "../../../node_modules/bootstrap/scss/reboot";
@import "../../../node_modules/bootstrap/scss/type";
@import "../../../node_modules/bootstrap/scss/code";
// layout
@import "../../../node_modules/bootstrap/scss/grid";
//components
@import "../../../node_modules/bootstrap/scss/card";
@import "../../../node_modules/bootstrap/scss/forms";
@import "../../../node_modules/bootstrap/scss/custom-forms";
Here is the HTML code I have used:
<input id='quantity'
class='custom-range'
type='range'
min='12'
max='18'
step='2'
value='12'>
Even after importing these files, the range thumb does not style as expected and sticks to the browser's default style.