Add accent button color and other updates to buttons - #955
Merged
Conversation
🦋 Changeset detectedLatest commit: eb17ac6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
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 |
Contributor
🔍 Design token changes foundView CSS variable changes+ --brand-button-accent-bgColor-rest: var(--base-color-scale-green-5);+ --brand-button-accent-bgColor-hover: var(--base-color-scale-green-4);+ --brand-button-accent-bgColor-active: var(--base-color-scale-green-5);+ --brand-button-accent-bgColor-disabled: var(--base-color-scale-gray-4);+ --brand-button-accent-fgColor-rest: var(--base-color-scale-white-0);+ --brand-button-accent-fgColor-disabled: var(--base-color-scale-gray-2);- --brand-button-subtle-borderColor-rest: transparent;
+ --brand-button-subtle-bgColor-rest: transparent;- --brand-button-subtle-borderColor-hover: var(--base-color-scale-gray-9);
+ --brand-button-subtle-bgColor-hover: #b7bfc833;- --brand-button-subtle-borderColor-active: var(--base-color-scale-gray-9);
+ --brand-button-subtle-bgColor-active: #b7bfc866;+ --brand-button-accent-bgColor-rest: var(--base-color-scale-green-1);+ --brand-button-accent-bgColor-hover: var(--base-color-scale-green-3);+ --brand-button-accent-bgColor-active: var(--base-color-scale-green-1);+ --brand-button-accent-bgColor-disabled: var(--base-color-scale-gray-4);+ --brand-button-accent-fgColor-rest: var(--base-color-scale-black-0);+ --brand-button-accent-fgColor-disabled: var(--base-color-scale-gray-2);- --brand-button-subtle-borderColor-rest: transparent;
+ --brand-button-subtle-bgColor-rest: transparent;- --brand-button-subtle-borderColor-hover: var(--base-color-scale-white-0);
+ --brand-button-subtle-bgColor-hover: #8a939e33;- --brand-button-subtle-borderColor-active: var(--base-color-scale-white-0);
+ --brand-button-subtle-bgColor-active: #8a939e66; |
Contributor
🟢 No visual differences foundOur visual comparison tests did not find any differences in the UI. |
rezrah
marked this pull request as ready for review
April 1, 2025 09:59
nsolerieu
approved these changes
Apr 1, 2025
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolved https://github.com/github/primer/issues/4933
Adds a new green button variant named
accent.Also updates CTABanner spacing, as newer designs in latest Refactor project use the banners without a description. In those situations the spacing isn't enough, so increased to 32px per the designs on widest breakpoint.
🔗 Button Interface guidelines
🔗 Button React docs
🔗 Button Storybook
🔗 Accent button in Hero
🔗 Accent button in CTABanner
WIP TODO
List of notable changes:
What should reviewers focus on?
Steps to test:
Supporting resources (related issues, external links, etc):
Contributor checklist:
update snapshotslabel to the PR)Reviewer checklist:
Screenshots: