Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
Merge pull request #108 from Synthetixio/spotlight-variant
Browse files Browse the repository at this point in the history
fix(button): repositioned the spotlight
  • Loading branch information
fritzschoff authored Jul 12, 2022
2 parents f57a5fa + 2187991 commit b1a2ec5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@ export const Button: React.FC<ButtonProps> = ({
/>
)}
<div
className={clsx('ui-block ui-my-auto', {
className={clsx('ui-block ui-my-auto ui-relative', {
'ui-gradient-primary ui-bg-clip-text': !disabled
})}
>
{children}
{variant === 'spotlight' && spotlightActive && (
<div className='ui-bg-primary w-full ui-rounded ui-h-[2px] ui-w-full ui-absolute -ui-bottom-3' />
)}
</div>
</div>
{variant === 'spotlight' && spotlightActive && (
<div className='ui-bg-primary w-full ui-rounded ui-h-[2px] ui-w-full ui-absolute ui-bottom-1' />
)}
</button>
);
};

0 comments on commit b1a2ec5

Please sign in to comment.