Colour Filtering displaying bunches of dots

Solved

Colour Filtering displaying bunches of dots

Netrovert
Excursionist
13 0 2

Colour filter on Dawn Theme.

Would usually just show a single 'dot' of the colour to filter by.

 

Suddenly started doing this, no idea why. Happens on all of the collection pages. 
https://buycarpetonline.uk/collections/carpets 

Screenshot 2025-04-18 at 23.00.57.png
Should display a nice single dot, sort of like this.

Screenshot 2025-04-18 at 23.00.10.png

Any ideas greatly appreciated. 

Accepted Solution (1)

tim
Shopify Partner
4505 536 1643

This is an accepted solution.

Non sure why this happened, but this can fix it.

Paste into "Custom CSS" setting of this section:

.facet-checkbox[for*=color] {
  background: none no-repeat 3px center;
  background-size: 2rem;
  border-radius: 0;
  padding-left: 3.5rem;
}

.facet-checkbox[for*=color] input:checked {
  width: calc(2rem + 6px);
  height: calc(2rem + 6px);
  border:2px solid var(--color-icon);
  border-radius: 7px;
}

Screenshot 2025-04-19 at 12.37.37 PM.png

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com

View solution in original post

Replies 5 (5)

loyalty-wizard
Shopify Partner
28 5 8

Try adding the following css to your theme: 

 

#Details-1-template--24685176029557__product-grid .facet-checkbox {
background-repeat: no-repeat;
	background-position: 0px;
}

#Details-1-template--24685176029557__product-grid .facet-checkbox span {
padding-left: 32px;
}

#Details-1-template--24685176029557__product-grid label {
border-radius: 0 !important;
}
Try Loyalty Wizard
- Grow customer retention by rewarding repeat customers
- Setup custom rewards & earning rules
- Grow your socials & community with engagement based rewards
- Enjoy our generous free tier
Netrovert
Excursionist
13 0 2

In which file would I add this css?

tim
Shopify Partner
4505 536 1643

This is an accepted solution.

Non sure why this happened, but this can fix it.

Paste into "Custom CSS" setting of this section:

.facet-checkbox[for*=color] {
  background: none no-repeat 3px center;
  background-size: 2rem;
  border-radius: 0;
  padding-left: 3.5rem;
}

.facet-checkbox[for*=color] input:checked {
  width: calc(2rem + 6px);
  height: calc(2rem + 6px);
  border:2px solid var(--color-icon);
  border-radius: 7px;
}

Screenshot 2025-04-19 at 12.37.37 PM.png

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
Netrovert
Excursionist
13 0 2

Hi there, 

Thanks for the code, this does amend the boxes, it loads after launch. 

Would there be a global css file I could add this to or amend primary code for the item, so as to stop a 'coverup' and make it the primary status?

tim
Shopify Partner
4505 536 1643

You have assets/component-facets.css -- put the code at the bottom. That file covers the filters.

 

I usually add a comment above to remind what was done and why.

 

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com