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(clerk-js): Retheme design and arrow on primary button #2121

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

marcelscruz
Copy link
Contributor

Description

This PR adds the new design and arrow on the primary button.

Screenshot 2023-11-13 at 15 00 12

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Packages affected

  • @clerk/backend
  • @clerk/chrome-extension
  • @clerk/clerk-js
  • @clerk/clerk-expo
  • @clerk/fastify
  • gatsby-plugin-clerk
  • @clerk/localizations
  • @clerk/nextjs
  • @clerk/clerk-react
  • @clerk/remix
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/themes
  • @clerk/types
  • build/tooling/chore

@marcelscruz marcelscruz requested a review from a team as a code owner November 13, 2023 15:22
Copy link

changeset-bot bot commented Nov 13, 2023

🦋 Changeset detected

Latest commit: 57bd419

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

@marcelscruz marcelscruz changed the title feat(clerk-js): Add new design and arrow on primary button feat(clerk-js): Retheme design and arrow on primary button Nov 15, 2023
@tmilewski tmilewski self-requested a review November 15, 2023 14:20
Copy link
Member

@tmilewski tmilewski left a comment

Choose a reason for hiding this comment

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

@marcelscruz 🙃 Am I crazy or does the arrow look off-center (vertically) from the text?

@marcelscruz
Copy link
Contributor Author

marcelscruz commented Nov 15, 2023

@marcelscruz 🙃 Am I crazy or does the arrow look off-center (vertically) from the text?

@tmilewski It does indeed, but it's the same as the Figma file.
Maybe we should address that? cc @PixelJanitor

Screenshot 2023-11-15 at 15 39 10

@marcelscruz marcelscruz added this pull request to the merge queue Nov 21, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 21, 2023
borderRadius: 'inherit',
zIndex: -1,
inset: 0,
background: 'linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.00) 100%)',
Copy link
Member

@anagstef anagstef Nov 21, 2023

Choose a reason for hiding this comment

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

Can we also move this literal value? And also use the color variables instead of hardcoded colors?

Copy link
Contributor

Choose a reason for hiding this comment

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

We need to use colorPrimary somehow here, in order for this to be themable.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind, didn't understand that correctly. This property actually creates the shadow effect on the button, so no need to change anything

chore(clerk-js): Add changeset

Remove content from changeset file

chore(clerk-js): Move new arrow to separate file

chore(clerk-js): Make button shadow a reusable util

chore(clerk-js): Use theme values on arrow icon

fix(clerk-js): Remove invalid color shades
@anagstef anagstef added this pull request to the merge queue Nov 23, 2023
Merged via the queue into main with commit 2a7ef6d Nov 23, 2023
7 checks passed
@anagstef anagstef deleted the retheme-primary-button branch November 23, 2023 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants