Skip to content

Commit

Permalink
fix: styling improvement for swatch (image) filters
Browse files Browse the repository at this point in the history
  • Loading branch information
shauke committed Feb 14, 2025
1 parent 7f7299b commit fd63a8b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/styles/pages/category/filter-panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ input {
padding: 0 !important;
margin: 1px;
border: 1px solid transparent;
border-radius: 50%;
border-radius: $swatch-image-border-radius;
}

.filter-swatch {
Expand All @@ -319,7 +319,9 @@ input {
display: inline-block;
width: $swatch-image-diameter;
height: $swatch-image-diameter;
border-radius: 50%;
background-repeat: no-repeat;
background-size: contain;
border-radius: $swatch-image-border-radius;

&.filter-color-bright {
border: 1px solid $border-color-light;
Expand Down
1 change: 1 addition & 0 deletions src/styles/themes/b2b/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ $font-size-sub-menu-item-mobile: $font-size-corporate; // ~14px

// filter
$swatch-image-diameter: 28px;
$swatch-image-border-radius: 50%;
$swatch-image-padding-to-border: 2px;

// toasts
Expand Down
1 change: 1 addition & 0 deletions src/styles/themes/b2c/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ $font-size-sub-menu-item-mobile: $font-size-corporate; // ~14px

// filter
$swatch-image-diameter: 28px;
$swatch-image-border-radius: 50%;
$swatch-image-padding-to-border: 2px;

// toasts
Expand Down

0 comments on commit fd63a8b

Please sign in to comment.