Skip to content

Conversation

@unseen-ninja
Copy link
Member

This aims to reduce the CSS overhead by removing unused CSS left over from the design stage as well as improving maintanablity by simplifying rule-sets and application.

removing the global CSS in favour of a component
@vercel
Copy link

vercel bot commented Dec 22, 2024

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

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 26, 2024 11:16am

interface Props {
children: Snippet;
style?: 'mauve' | 'peach' | 'blue' | 'green' | 'transparent';
small?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of taking in small, it'll be better to take in an explicit width and height. We could default those to some number if we want.

Copy link
Member Author

Choose a reason for hiding this comment

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

small applies to the button size in general, not just the icon size. I don't think we want to use fixed dimensions for buttons?

Copy link
Contributor

@sgoudham sgoudham Dec 22, 2024

Choose a reason for hiding this comment

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

In that case, we should have an enum called ButtonSize or equivalent that can either be small or default.

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.

2 participants