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

Update all input element styles #181

Merged
merged 8 commits into from
Nov 14, 2023
Merged

Update all input element styles #181

merged 8 commits into from
Nov 14, 2023

Conversation

carbonrobot
Copy link
Contributor

@carbonrobot carbonrobot commented Nov 14, 2023

Updates all input elements with final design styles and colors.

  • Align buttons with final master design
  • Merges IconButton and Button components
  • Use named colors from new theme palette
  • Cleanup search input styles
  • Resets the base font to 16px to match tailwind and the design

Before

image

After

image

Copy link

changeset-bot bot commented Nov 14, 2023

🦋 Changeset detected

Latest commit: 4a14601

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

This PR includes changesets to release 6 packages
Name Type
@envyjs/webui Patch
@envyjs/apollo Patch
@envyjs/core Patch
@envyjs/nextjs Patch
@envyjs/node Patch
@envyjs/web Patch

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

@carbonrobot carbonrobot changed the title ui/buttons final Update all input element styles Nov 14, 2023
size?: 'small' | 'standard' | 'large';
border?: 'standard' | 'ghost';
border?: 'standard' | 'none';
Icon?: React.FC<any>;

Choose a reason for hiding this comment

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

do we need to pass any here or could we do something like Record<string, unknown>?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Lucide Icon library doesn't have a generic type that works, so for now its just <any> /shrug

size === 'small' && 'p-1.5 text-xs',
size === 'small' && !!children && 'px-2',

// externals

Choose a reason for hiding this comment

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

love the comments here to help make it clear what styles are part of what variant!

@carbonrobot carbonrobot merged commit 36b5e70 into main Nov 14, 2023
2 checks passed
@carbonrobot carbonrobot deleted the ui/buttons-final branch November 14, 2023 16:30
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