Skip to content

Commit

Permalink
style: fix qty buttons style after bootstrap-touchspin package upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgoud committed Sep 26, 2024
1 parent f1aa9b4 commit 57c64e0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 0 additions & 2 deletions _dev/css/components/products.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@
width: auto;

.btn {
padding: 0.5rem 0.6875rem;

i {
top: 0.125rem;
left: 0.1875rem;
Expand Down
4 changes: 4 additions & 0 deletions _dev/css/partials/_commons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -623,3 +623,7 @@ input[type="number"] {
.ui-autocomplete.ui-front {
z-index: 999;
}

.btn.btn-touchspin.js-touchspin.bootstrap-touchspin-up {
border-radius: 0;
}
4 changes: 2 additions & 2 deletions _dev/js/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ function createSpin() {
$.each($(spinnerSelector), (index, spinner) => {
$(spinner).TouchSpin({
verticalbuttons: true,
verticalupclass: 'material-icons touchspin-up',
verticaldownclass: 'material-icons touchspin-down',
verticalupclass: 'glyphicon glyphicon-plus',
verticaldownclass: 'glyphicon glyphicon-minus',
buttondown_class: 'btn btn-touchspin js-touchspin js-increase-product-quantity',
buttonup_class: 'btn btn-touchspin js-touchspin js-decrease-product-quantity',
min: parseInt($(spinner).attr('min'), 10),
Expand Down
4 changes: 2 additions & 2 deletions _dev/js/listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ $(document).ready(() => {
}
qv.find(prestashop.selectors.quantityWanted).TouchSpin({
verticalbuttons: true,
verticalupclass: 'material-icons touchspin-up',
verticaldownclass: 'material-icons touchspin-down',
verticalupclass: 'glyphicon glyphicon-plus',
verticaldownclass: 'glyphicon glyphicon-minus',
buttondown_class: 'btn btn-touchspin js-touchspin',
buttonup_class: 'btn btn-touchspin js-touchspin',
min: 1,
Expand Down
4 changes: 2 additions & 2 deletions _dev/js/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ $(document).ready(() => {

$quantityInput.TouchSpin({
verticalbuttons: true,
verticalupclass: 'material-icons touchspin-up',
verticaldownclass: 'material-icons touchspin-down',
verticalupclass: 'glyphicon glyphicon-plus',
verticaldownclass: 'glyphicon glyphicon-minus',
buttondown_class: 'btn btn-touchspin js-touchspin',
buttonup_class: 'btn btn-touchspin js-touchspin',
min: parseInt($quantityInput.attr('min'), 10),
Expand Down

0 comments on commit 57c64e0

Please sign in to comment.