Skip to content

Fix the primary Select's text color - #4090

Merged
laurakwhit merged 1 commit into
mainfrom
laura/fix-select-light-mode
Oct 27, 2026
Merged

laurakwhit merged 1 commit into
mainfrom
laura/fix-select-light-mode

Conversation

@laurakwhit

Copy link
Copy Markdown
Collaborator

Description & motivation 💭

A Select component with variant="primary" showed dark text on the indigo button. A primary MenuButton shows white text. Select added its neutral input classes (text-primary, bg-background-primary and others) over every
variant, and the inner <input> always set text-primary ortext-secondary. When the menu was open, the button turned dark indigo but kept the dark text.

This PR:

  • Keeps the MenuButton's primary styles, with an indigo background and white text. The placeholder is white at 90%
    opacity.
  • The variant pop is now Extract<ButtonStyles['variant'], 'primary' | 'secondary'>. The other Button variants never worked on a Select, because the neutral classes painted over them.
  • Removes focus-visible:border-secondary,focus-visible:ring-interactive-primary and disabled:opacity-disabled since the Button base component already provides the last two, and nothing changes the border on focus.

Screenshots (if applicable) 📸

Before After
Screenshot 2026-10-26 at 3 22 13 PM Screenshot 2026-10-26 at 4 07 20 PM
Screenshot 2026-10-26 at 3 22 32 PM Screenshot 2026-10-26 at 4 07 28 PM

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

@laurakwhit
laurakwhit requested a review from a team as a code owner October 26, 2026 23:36
@vercel

vercel Bot commented Oct 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
holocene Ready Ready Preview Oct 26, 2026 11:36pm UTC

Request Review

@laurakwhit
laurakwhit merged commit cdb8b60 into main Oct 27, 2026
20 checks passed
@laurakwhit
laurakwhit deleted the laura/fix-select-light-mode branch October 27, 2026 18:06

This branch was successfully deployed

1 active deployment
Preview — 3d5381b2 Deployed Oct 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants