How can I style the <select> dropdown field in Webflow so that it doesn't display white text on a white background when focused?
TL;DR
- Use the Focused state in Webflow to set contrasting text (e.g., black) and background colors for the
<select>element. - Check and adjust default styles, override browser defaults if needed, and test on the published site for consistent appearance across browsers.
If your <select> dropdown appears with white text on a white background when focused, it likely has custom styling applied that forces a white text color with no contrasting background for focus states.
1. Check and Adjust Focus Styling in Webflow
- Select the
<select>element on your Webflow canvas. - In the Selector dropdown, click States → Focused to target the focus state.
- Review and adjust the following:
- Text color: Set to a darker tone (e.g., black or dark gray) for visibility.
- Background color: Choose a light color that contrasts with the text.
2. Set Default Dropdown Styling
- With the base
<select>element selected (not in a state), verify the default styling: - Text color: Should be readable, even without focus.
- Avoid inheriting white color from a parent class unless specifically needed.
3. Override Browser Default Styles (Optional)
Webflow lets you style native dropdowns to a limited extent. To ensure consistent appearance:
- Font, font size, and padding: Set explicitly to avoid inherited styles that may push text out of view.
- Border and box-shadow: Optional but recommended to define a clear visual boundary on focus.
4. Test on Publish
Some dropdown styles differ between the Webflow Designer and live published site:
- Publish the site and open the dropdown in various browsers.
- Ensure focused state uses contrasting text and background.
Summary
To fix white-on-white focused <select> dropdowns in Webflow, use the Focused state selector to apply visible text and background colors, and verify in the live site to ensure proper rendering across browsers.