Skip to content

Conversation

@mperrotti
Copy link
Contributor

The options were inheriting the color from the <select> parent.

Screenshots

Before:
Screen Shot 2022-03-17 at 6 16 09 PM

After:
Screen Shot 2022-03-17 at 6 13 54 PM

Merge checklist

  • Added/updated tests
  • [na] Added/updated documentation
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@mperrotti mperrotti requested review from a team and rezrah March 17, 2022 22:16
@changeset-bot
Copy link

changeset-bot bot commented Mar 17, 2022

🦋 Changeset detected

Latest commit: b2aa0d6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2022

size-limit report 📦

Path Size
dist/browser.esm.js 63.24 KB (-0.01% 🔽)
dist/browser.umd.js 63.59 KB (-0.01% 🔽)

option {
color: initial;
}
Copy link
Contributor

@colebemis colebemis Mar 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that the color of option is set to initial, do we still need the rule on line 28?

  /* For Firefox: reverts color of non-placeholder options in the dropdown */
  &:invalid option:not(:first-child) {
    color: ${get('colors.fg.default')};
  }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe so. Let me test it out...

@mperrotti mperrotti merged commit e9bb595 into main Mar 17, 2022
@mperrotti mperrotti deleted the mp/fix-select-contrast-ff-darkmode branch March 17, 2022 23:44
@primer-css primer-css mentioned this pull request Mar 17, 2022
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.

3 participants