Styling the element is highly limited. Options don’t inherit the font set on the parent. In Firefox, only color and background-color can be set however in Chrome or Safari it’s not possible to set any properties. You can find more details about styling in our guide to advanced form styling.
If that’s true, then that’s ugly because the dropdown option group have no padding, have an ugly box shadow with perhaps 5px blur and 2px spread and no curved borders. The only attributes i was able to change were the font color and background color. however, these are simply not enough for my styling requirements.
I understand your issue. As web developers, we were facing this issue many times. Usually, we need to create custom select element with HTML, CSS, Js, an example here https://codepen.io/wallaceerick/pen/nJLPvN
That being said, you should not try styling the option element with CSS, if you need full control over it, you can hire a developer to replace it with a custom select element.
I know it is a very basic styling. But unfortunately the option elements do not accept CSS styling. I found this answer online. We need to rebuild a custom select element if we need to style the options.
So what’s the solution here if that doesn’t work? Will it be possible to alter the default filtering options of Shopify or should I simply accept the fact that there’s nothing that can be done about it? We have no access to this type of HTML because it’s on Shopify’s backend only which makes things worse. I guess I’ll have to live out with it.