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

feat(Button): Update hover background #2934

Merged
merged 5 commits into from
Sep 12, 2024
Merged

Conversation

aresnik11
Copy link
Contributor

@aresnik11 aresnik11 commented Sep 4, 2024

Overview

Updates all variants of Button hover background to be the correct values with a nice transition

PR Checklist

  • Related to designs:
  • Related to JIRA ticket: GM-856
  • I have run this code to verify it works
  • This PR includes unit tests for the code change
  • This PR includes testing instructions tests for the code change
  • The alpha package of this PR is passing end-to-end tests in all relevant Codecademy repositories

Testing Instructions

  1. Visit https://66e0b28bc94e7b1131cab395--gamut-preview.netlify.app/
  2. Confirm TextButton and StrokeButton hover colors are darker
  3. Confirm CTAButton hover color is lighter
  4. Confirm FillButton hover color is the same
  5. Scroll down to all the buttons in dark mode
  6. Repeat 2,3,4 with all the buttons
  7. Make sure e2e tests pass in https://github.com/codecademy-engineering/mono/pull/7605, note: the unit test failures are related to a previous gamut bump included in this alpha that have a separate PR out to resolve

PR Links and Envs

Repository PR Link PR Env
Portal Portal Link Portal Env

@aresnik11 aresnik11 changed the title update bg feat(TextButton): Update hover background Sep 4, 2024
@aresnik11 aresnik11 marked this pull request as ready for review September 5, 2024 15:14
@aresnik11 aresnik11 requested a review from a team as a code owner September 5, 2024 15:14
Copy link
Contributor

@dreamwasp dreamwasp left a comment

Choose a reason for hiding this comment

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

lgtm! while reviewing the button figma i noticed the StrokeButton bg hover color is also currently off (it should be the same color as TextButton's is here). could ya include that change in this work or i can cut a follow-up ticket for it

@aresnik11
Copy link
Contributor Author

lgtm! while reviewing the button figma i noticed the StrokeButton bg hover color is also currently off (it should be the same color as TextButton's is here). could ya include that change in this work or i can cut a follow-up ticket for it

@dreamwasp i can do it here!

Copy link
Contributor

@dreamwasp dreamwasp left a comment

Choose a reason for hiding this comment

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

nice! i was double-checking the figma and the color still looks a little off to me so i compared side-by-side against a beige background.

image

i narrowed it down to this &:after effect here which is shading everything a little darker -

[ButtonSelectors.SHADOW]: {

i didn't look into it that much, but we can prob use these just in the button styles they're applicable to and move the animation transitions to the background colors for the stroke + textbutton

@aresnik11 aresnik11 changed the title feat(TextButton): Update hover background feat(Button): Update hover background Sep 10, 2024
@codecademydev
Copy link
Collaborator

📬Published Alpha Packages:

@codecademy/[email protected]
@codecademy/[email protected]
@codecademy/[email protected]

@codecademydev
Copy link
Collaborator

🚀 Styleguide deploy preview ready!

https://66e0b28bc94e7b1131cab395--gamut-preview.netlify.app

Deploy Logs

Copy link
Contributor

@dreamwasp dreamwasp left a comment

Choose a reason for hiding this comment

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

perfection

@aresnik11 aresnik11 added the Ship It :shipit: Automerge this PR when possible label Sep 12, 2024
@codecademydev codecademydev merged commit 38e2b68 into main Sep 12, 2024
26 of 27 checks passed
@codecademydev codecademydev removed the Ship It :shipit: Automerge this PR when possible label Sep 12, 2024
@codecademydev codecademydev deleted the ajr-update-text-button-hover branch September 12, 2024 15:08
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.

3 participants