Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
zarSou9 committed Jun 12, 2024
1 parent 809b783 commit 5e6f13a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions app/components/Button/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@
border: 1px solid var(--colors-teal-200, #a6d9d7);
}

.button-secondary:hover .tool-tip-secondary {
.button-secondary:hover .tool-tip {
opacity: 1;
}
.button:hover .tool-tip-secondary {
.button:hover .tool-tip {
opacity: 1;
}

Expand Down Expand Up @@ -240,7 +240,7 @@
height: min-content;
}

.tool-tip-secondary {
.tool-tip {
opacity: 0;
position: absolute;
top: -42px;
Expand Down
8 changes: 2 additions & 6 deletions app/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,14 @@ const Button = ({
{...props}
>
{children}
{tooltip && !disabled && !mobile && (
<p className="tool-tip-secondary xs z-index-1">{tooltip}</p>
)}
{tooltip && !disabled && !mobile && <p className="tool-tip xs z-index-1">{tooltip}</p>}
</Link>
)
}
return (
<button className={classes} onClick={action} disabled={disabled} {...props}>
{children}
{tooltip && !disabled && !mobile && (
<p className="tool-tip-secondary xs z-index-1">{tooltip}</p>
)}
{tooltip && !disabled && !mobile && <p className="tool-tip xs z-index-1">{tooltip}</p>}
</button>
)
}
Expand Down

0 comments on commit 5e6f13a

Please sign in to comment.