Skip to content

Commit

Permalink
Merge pull request #9 from chromaui/branch-2
Browse files Browse the repository at this point in the history
some other button changes
  • Loading branch information
ethriel3695 authored Feb 22, 2024
2 parents 228fc7b + 084942c commit 88efdbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/stories/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,20 @@ interface ButtonProps {
*/
export const Button = ({
primary = false,
size = 'medium',
size = 'large',
backgroundColor,
label,
...props
}: ButtonProps) => {
const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary';
const mode = primary
? 'storybook-button--primary'
: 'storybook-button--secondary';
return (
<button
type="button"
className={['storybook-button', `storybook-button--${size}`, mode].join(' ')}
className={['storybook-button', `storybook-button--${size}`, mode].join(
' '
)}
style={{ backgroundColor }}
{...props}
>
Expand Down
2 changes: 1 addition & 1 deletion src/stories/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;
}
.storybook-button--small {
font-size: 12px;
font-size: 16px;
padding: 10px 16px;
}
.storybook-button--medium {
Expand Down

0 comments on commit 88efdbd

Please sign in to comment.