Collection filter drop down has the same color text and background

Topic summary

Issue: The collection filter/sort dropdown inherits site-wide colors, making white text on a dark background invisible in the dropdown on a Shopify Dawn 10.0 theme.

Context: The dropdown uses Shopify’s facet filters (filter/sort UI). Key elements include the CSS class facet-filters__sort and the select element with id SortBy.

Solutions shared:

  • Edit component-facets.css: set a non-transparent background for .facet-filters__sort (changing from transparent to a chosen color). This resolved the original report.
  • Alternative CSS in base.css/style.css/theme.css: select#SortBy { background: #2b2d42 !important; } to force a visible dropdown background. Screenshots demonstrate successful results.

Follow-up case: A second store sought a white background with black text; prior solutions didn’t work. A suggested snippet targeted div#Facet-1-template–…__product-grid * { color: #fff; }, which forces white text and may not align with the request for black text. Outcome for this case is unclear.

Notes:

  • Images and code snippets are central to understanding the fixes.
  • Resolution: First case solved via CSS background override; second case appears ongoing or mismatched to requirements.
Summarized with AI on December 19. AI used: gpt-5.

I know that there’s been discussion on this topic before. But the issue persists even after trying the solutions that I have seen from the other posts. Here is a screenshot of what I mean.

The text for my website is white. The background is dark. That’s what I want. But because this filter just uses the same color value as the rest of my website, it blends in. There’s no way to get around this without also changing the text for the rest of my website. What is the solution? Not that it should matter, but it is using the Dawn theme 10.0.

1 Like

Hi @DakotaJ138

Would you mind to share your store URL website? with password if its protected. Thanks!

Sure thing.
https://nonamenecessities.com/collections/womens-sales

Here is an example collection.

1 Like

I know it is related to facet-filters, but I couldn’t get it to work when I edited the code. Maybe I did something incorrectly.

Here is the solution.

component-facets.css > facet-filters__sort
Just change the background color value (it originally was set to transparent) to whatever you want.

Problem Solved.

Thanks for the info, try this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
select#SortBy {
    background: #2b2d42 !important;
}

Can you help me with this? I tried the solutions provided, but they did not work.

www.thespiralpath.love/collections/frontpage

I’m aiming for a white background with black text. Thanks so much!

Hi @plants4friendz

check this one.

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

div#Facet-1-template--17443031974133__product-grid * {
    color: #fff;
}

And Save.

result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!