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

Design system: button theming #13822

Merged
merged 8 commits into from
Sep 10, 2024
Merged

Design system: button theming #13822

merged 8 commits into from
Sep 10, 2024

Conversation

wackerow
Copy link
Member

@wackerow wackerow commented Sep 8, 2024

Extends colors-1 branch in PR:

(Can be merged in any order)

Description

  • Updates buttonVariants in new ui/buttons/Button.tsx component.
  • Variants updated in detail to match current Figma Design System
  • For readability and understanding, styling has been broken into functional sections with comments added
  • Updates Chakra Button component as well, syncing theming and applying same readability comments to improve ability to cross-verify these are correct until this component is fully deprecated.

Figma:
image

Related Issue

Design system

@wackerow wackerow added the design system this label will be used in all issues related to design system label Sep 8, 2024
@wackerow wackerow changed the base branch from dev to colors-1 September 8, 2024 00:02
Copy link

netlify bot commented Sep 8, 2024

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 488f32e
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/66df36bfcc450c000861861a
😎 Deploy Preview https://deploy-preview-13822--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 35 (🔴 down 13 from production)
Accessibility: 92 (🔴 down 1 from production)
Best Practices: 87 (🔴 down 5 from production)
SEO: 92 (🔴 down 1 from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -203,7 +203,7 @@ const config = {
0px -3px 2px 0px rgba(0, 0, 0, 0.14) inset`,
// TODO: From current theme. Deprecate for 'button-hover'
primary: "4px 4px 0px 0px hsla(var(--primary))",
"button-hover": "4px 4px 0 0 hsla(var(--primary-low-contrast))",
"button-hover": "4px 4px 0 0 hsla(var(--orange-900))",
Copy link
Member Author

Choose a reason for hiding this comment

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

We're approaching a point where we have no more references to the orange color palette, and it is not present in the DS... The full yellow color palette is being imported in a separate branch. After that, we can migrate this to --yellow-900 and should be able to remove the entire orange palette.

deprecate single-use `button-hover` tailwind token; applied directly at ui/button component level
tw `primary`, `button-hover` shadow tokens; chakra `primary` shadow token
Copy link
Contributor

@nloureiro nloureiro left a comment

Choose a reason for hiding this comment

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

from what I reviewed on the browser, all seem great. LFG

Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

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

Nice job @wackerow lgtm

@pettinarip pettinarip merged commit b335475 into colors-1 Sep 10, 2024
10 checks passed
@pettinarip pettinarip deleted the colors-1-button-upgrade branch September 10, 2024 07:58
@konopkja
Copy link
Contributor

Screenshot 2024-09-10 at 14 16 21 Screenshot 2024-09-10 at 14 16 32

these links should be lighter purple, is that in a separate PR or is it a button link?

This was referenced Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design system this label will be used in all issues related to design system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants