Skip to content
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

Fix btn-primary in flash alerts #1991

Merged
merged 2 commits into from
Mar 22, 2022
Merged

Fix btn-primary in flash alerts #1991

merged 2 commits into from
Mar 22, 2022

Conversation

simurai
Copy link
Contributor

@simurai simurai commented Mar 22, 2022

What are you trying to accomplish?

This makes sure that the semi-transparent border of a btn-primary in a flash alert is on top of the button's background and not the flash's background:

Before After
Screen Shot 2022-03-22 at 12 10 37 Screen Shot 2022-03-22 at 12 11 16

What approach did you choose and why?

Resetting the background-clip back to border-box for .flash-action.btn-primary combos.

What should reviewers focus on?

Fixes https://github.com/github/primer/issues/791

Are additional changes needed?

  • No, this PR should be ok to ship as is. 🚢

@changeset-bot
Copy link

changeset-bot bot commented Mar 22, 2022

🦋 Changeset detected

Latest commit: e5f6255

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 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

@simurai simurai changed the title Fix btn-primary flash alerts Fix btn-primary in flash alerts Mar 22, 2022
@simurai simurai marked this pull request as ready for review March 22, 2022 03:18
@simurai simurai requested a review from a team as a code owner March 22, 2022 03:18
@simurai simurai requested a review from jonrohan March 22, 2022 03:18
@simurai simurai merged commit 5e87eff into main Mar 22, 2022
@simurai simurai deleted the fix-btn-primary-in-flash branch March 22, 2022 06:29
@primer-css primer-css mentioned this pull request Mar 22, 2022
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