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

Marketing buttons: don't animate everything #1274

Merged
merged 2 commits into from
Mar 29, 2021

Conversation

tobiasahlin
Copy link
Contributor

The current transition for .btn-mktg lacks a property declaration, which implies all. This can cause the button to animate e.g. its size and font on page load:

button-animation

This PR fixes this by explicitly only animating background-color, box-shadow, and border-color (the properties that change on hover and focus)

/cc @primer/ds-core

@changeset-bot
Copy link

changeset-bot bot commented Mar 29, 2021

🦋 Changeset detected

Latest commit: 322379f

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

@vercel
Copy link

vercel bot commented Mar 29, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/primer/primer-css/GwLGv638ygsyLy3nnoq9RYfPAitr
✅ Preview: https://primer-css-git-tobiasahlin-only-animate-bg-color-primer.vercel.app

@vercel vercel bot temporarily deployed to Preview March 29, 2021 15:41 Inactive
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.

2 participants