-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Change contrast
input background to bgColor-default
#2907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: e2fde47 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
There was a problem hiding this 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" |
There was a problem hiding this comment.
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'.
// 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" |
There was a problem hiding this comment.
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.
// 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.
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