Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix UI misalignment of Filter by Price in TT1 theme (#10732)
Browse files Browse the repository at this point in the history
* Fix UI misalignment of Filter by Price in TT1 theme

* Fix frontend Firefox styles

* Simplify the styles and fix them in Editor (Firefox/Safari)

* Align the background color and sizing in Firefox
  • Loading branch information
kmanijak authored Aug 25, 2023
1 parent a40395d commit 8a5dab6
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions assets/js/base/components/price-slider/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,10 @@
}
.wc-block-components-price-slider__range-input-progress {
--range-color: currentColor;
margin: -$border-width;
}
.wc-block-price-filter__range-input {
background: transparent;
margin: -$border-width;
height: 0;
width: calc(100% + #{$border-width * 2});
&:hover,
&:focus {
Expand All @@ -350,13 +349,24 @@
}
}
&::-webkit-slider-thumb {
margin-top: -9px;
background: $white;
margin-top: -6px;
width: 12px;
height: 12px;
}
&.wc-block-components-price-slider__range-input--max::-moz-range-thumb {
transform: translate(2px, 1px);
background: $white;
transform: translate(2px, 2px);
width: 12px;
height: 12px;
box-sizing: content-box;
}
&.wc-block-components-price-slider__range-input--min::-moz-range-thumb {
transform: translate(-2px, 1px);
background: $white;
transform: translate(-2px, 2px);
width: 12px;
height: 12px;
box-sizing: content-box;
}
&::-ms-track {
border-color: transparent !important;
Expand Down

0 comments on commit 8a5dab6

Please sign in to comment.