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

Add gradient color to Button Component #1316

Merged
merged 5 commits into from
Mar 30, 2023
Merged

Add gradient color to Button Component #1316

merged 5 commits into from
Mar 30, 2023

Conversation

lokeswaran-aj
Copy link
Contributor

Description

  1. What is this PR about (link the issue and add a short description)
    This PR contains the changes for the Gradient color for the button component

Here is an example of share button with gradient color:

Screen.Recording.2023-03-28.at.11.38.32.PM.mov

Steps for reproduction

  1. Create a Button component
  2. set color="gradient" in Button Component

Code Review

  • hi @kof, I need you to do
    • conceptual review (architecture, feature-correctness)
    • detailed review (read every line)
    • test it on preview

Before requesting a review

  • made a self-review
  • added inline comments where things may be not obvious (the "why", not "what")

Before merging

  • tested locally and on preview environment (preview dev login: 5de6)
  • updated test cases document
  • added tests
  • if any new env variables are added, added them to .env.example and the builder/env-check.js if mandatory

@vercel
Copy link

vercel bot commented Mar 28, 2023

@lokeswaran-aj is attempting to deploy a commit to the webstudio-is Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Mar 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
webstudio-builder ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 30, 2023 at 3:37PM (UTC)

@kof kof requested a review from rpominov March 28, 2023 20:21
@rpominov
Copy link
Contributor

Please also add gradient here https://github.com/webstudio-is/webstudio-builder/blob/1163d2c8634cb588b0cb9393b7b2c48e031a42c9/packages/design-system/src/components/button.stories.tsx#L24-L31

@kof
Copy link
Member

kof commented Mar 29, 2023 via email

@rpominov
Copy link
Contributor

Problem is that if is with that specific color, kinda not very useful
function, wouldn't use it at least in case of the gradient base

Yeah, let's do variant === "gradient" ? then

@kof kof merged commit fbc401c into webstudio-is:main Mar 30, 2023
@kof
Copy link
Member

kof commented Mar 30, 2023

merged, thank you!

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