Skip to content

Conversation

langermank
Copy link
Contributor

@langermank langermank commented Sep 24, 2025

We've had this change staff shipped for awhile now (hubbers only) and it seems pretty low risk to change the color value of this field type.

Closes https://github.com/github/primer/issues/5905

@Copilot Copilot AI review requested due to automatic review settings September 24, 2025 22:01
@langermank langermank requested a review from a team as a code owner September 24, 2025 22:01
Copy link

changeset-bot bot commented Sep 24, 2025

🦋 Changeset detected

Latest commit: e2fde47

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

This PR includes changesets to release 1 package
Name Type
@primer/css Minor

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

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR deprecates the visual distinction of the input-contrast CSS class by changing its background color from a muted variant to the default background color. This aligns with an internal change that has already been tested and reduces the visual contrast difference for form inputs.

  • Changes the input-contrast background color from --bgColor-muted to --bgColor-default
  • Adds a comment explaining the deprecation rationale
  • Maintains the CSS class to avoid breaking changes while removing the visual distinction

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

}

// Inputs with contrast for easy light gray backgrounds against white.
// changing the value to default as to not remove the class all together, but deprecate the visual distinction for "contrast"
Copy link
Preview

Copilot AI Sep 24, 2025

Choose a reason for hiding this comment

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

The comment has a grammatical error. 'all together' should be 'altogether' (one word) when meaning 'completely' or 'entirely'.

Suggested change
// changing the value to default as to not remove the class all together, but deprecate the visual distinction for "contrast"
// changing the value to default as to not remove the class altogether, but deprecate the visual distinction for "contrast"

Copilot uses AI. Check for mistakes.

}

// Inputs with contrast for easy light gray backgrounds against white.
// changing the value to default as to not remove the class all together, but deprecate the visual distinction for "contrast"
Copy link
Preview

Copilot AI Sep 24, 2025

Choose a reason for hiding this comment

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

The comment should start with a capital letter for consistency with standard comment formatting.

Suggested change
// changing the value to default as to not remove the class all together, but deprecate the visual distinction for "contrast"
// Changing the value to default as to not remove the class all together, but deprecate the visual distinction for "contrast"

Copilot uses AI. Check for mistakes.

@langermank langermank merged commit 67109bd into main Sep 25, 2025
13 checks passed
@langermank langermank deleted the contrast-input branch September 25, 2025 22:22
@primer primer bot mentioned this pull request Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants