Skip to content

Commit

Permalink
refactor: improve button styles
Browse files Browse the repository at this point in the history
  • Loading branch information
serudda committed Nov 6, 2023
1 parent defcdc4 commit d143ca3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions src/components/Buttons/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,13 @@ export const Button = ({
'flex items-center justify-center relative overflow-hidden',
'text-center whitespace-nowrap',
'transition duration-100 ease-out',
'disabled:opacity-50 disabled:cursor-default',
'disabled:opacity-30 disabled:pointer-events-none',
setSizes(),
invert && !isActive ? InvertVariants[variant] : Variants[variant],
isActive && ActiveVariant[variant],
{
rounded: !isSquare,
'w-full': isFullWidth,
'cursor-default opacity-30': isDisabled,
},
className,
),
Expand Down
4 changes: 0 additions & 4 deletions src/components/Inputs/TextInput/TextInput.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,3 @@ export const TextInputExample = (args: TextInputProps) => {
</div>
);
};

export const TextInputWithButton: Story = {
render: (args) => <TextInputExample {...args} />,
};

0 comments on commit d143ca3

Please sign in to comment.