Skip to content

Commit

Permalink
feat: tweak button and input
Browse files Browse the repository at this point in the history
  • Loading branch information
cschroeter committed Jul 13, 2023
1 parent dd54d0e commit e47a0f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## Changed

- Set the default `variant` for `Button` to `primary` from `solid`.
- Use a more subtle placeholder color for the `filled.accent` variant of the `Input` component.

## [0.9.0] - 2023-06-30

## Added
Expand Down Expand Up @@ -230,5 +235,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[0.7.0]: https://github.com/chakra-ui/pro-theme/releases/tag/0.7.0
[0.7.1]: https://github.com/chakra-ui/pro-theme/releases/tag/0.7.1
[0.8.0]: https://github.com/chakra-ui/pro-theme/releases/tag/0.8.0

[0.9.0]: https://github.com/chakra-ui/pro-theme/releases/tag/0.9.0
3 changes: 2 additions & 1 deletion src/components/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ const variants = {
},

'tertiary.accent': defineStyle((props) => ({
color: 'brand.50',
color: 'fg.accent.muted',
_hover: {
bg: transparentize('brand.500', 0.67)(props.theme),
},
Expand Down Expand Up @@ -357,6 +357,7 @@ export default defineStyleConfig({
variants,
sizes,
defaultProps: {
variant: 'primary',
colorScheme: 'brand',
},
})
2 changes: 1 addition & 1 deletion src/components/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const variants = {
borderRadius: 'lg',
color: 'fg.accent.default',
_placeholder: {
color: 'fg.accent.muted',
color: 'fg.accent.subtle',
},
_hover: {
borderColor: 'bg.accent.muted',
Expand Down

1 comment on commit e47a0f9

@vercel
Copy link

@vercel vercel bot commented on e47a0f9 Jul 13, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.