Skip to content

Commit

Permalink
some other button changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ethriel3695 committed Feb 22, 2024
1 parent 228fc7b commit 084942c
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 084942c

Please sign in to comment.