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 buttons #15

Merged
merged 4 commits into from
Aug 26, 2024
Merged

Feat buttons #15

merged 4 commits into from
Aug 26, 2024

Conversation

hetd54
Copy link
Collaborator

@hetd54 hetd54 commented Aug 14, 2024

This PR seeks to add three button functions within the Button.tsx component:

  • Button: blue background, the most common button used on pages
  • ButtonSecondary: yellow background, used in headers and sorting/filtering
  • ButtonTertiary: offwhite background, used in the navbar

@hetd54 hetd54 linked an issue Aug 14, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Aug 14, 2024

Visit the preview URL for this PR (updated for commit f6620dd):

https://ccv-website-next--pr15-feat-buttons-urv68kcj.web.app

(expires Fri, 30 Aug 2024 16:04:20 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 809aa2d3a6cfe026c3c7417c932015a8f1d9ec89

@hetd54 hetd54 marked this pull request as ready for review August 21, 2024 17:02
Copy link
Collaborator

@anna-murphy anna-murphy left a comment

Choose a reason for hiding this comment

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

Nice and simple! I don't see any buttons on the preview... Are they used anywhere and I'm just bad at looking?

);
}

export function ButtonSecondary({ icon, children, ...delegated }: ButtonProps) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This might just be a me thing, but I feel like I'd prefer an API thats a single Button component with a variant prop that's optional and is either "secondary" or "tertiary". Do you prefer three different components?

@hetd54 hetd54 requested a review from anna-murphy August 23, 2024 16:09
Copy link
Collaborator

@anna-murphy anna-murphy left a comment

Choose a reason for hiding this comment

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

🌠

@hetd54 hetd54 merged commit a6d7913 into main Aug 26, 2024
2 checks passed
@hetd54 hetd54 deleted the feat-buttons branch August 26, 2024 16:48
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.

Button Component
2 participants