diff --git a/app/assets/icons/settings.svg b/app/assets/icons/settings.svg
index e5a29e46..53361438 100644
--- a/app/assets/icons/settings.svg
+++ b/app/assets/icons/settings.svg
@@ -1,4 +1,4 @@
+
+
\ No newline at end of file
diff --git a/app/components/Button/button.css b/app/components/Button/button.css
index 783d45da..14da2b39 100644
--- a/app/components/Button/button.css
+++ b/app/components/Button/button.css
@@ -9,6 +9,7 @@
box-shadow: 0px var(--spacing-16) var(--spacing-40) 0px rgba(32, 44, 89, 0.05);
border-radius: var(--border-radius);
box-sizing: border-box;
+ position: relative;
background: var(--colors-white, #ffffff);
border: 1px solid var(--colors-cool-grey-200, #dfe3e9);
@@ -164,7 +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 {
opacity: 1;
}
@@ -236,20 +240,7 @@
height: min-content;
}
-.tooltip::after {
- content: attr(data-tooltip);
- position: absolute;
- transform: translateY(var(--spacing-56, 56px));
- padding: var(--spacing-16);
- color: var(--colors-white);
- background: var(--colors-black);
- border-radius: 5px;
- display: none;
- z-index: 1;
- font-size: 16px; /* hard to set via classes, what with this being a pseudoclass */
-}
-
-.tool-tip-secondary {
+.tool-tip {
opacity: 0;
position: absolute;
top: -42px;
@@ -273,3 +264,8 @@
opacity: 0.6;
cursor: inherit;
}
+.button-secondary:disabled,
+.button-secondary[disabled] {
+ opacity: 0.8;
+ cursor: inherit;
+}
diff --git a/app/components/Button/index.tsx b/app/components/Button/index.tsx
index dbba0dbc..788708f6 100644
--- a/app/components/Button/index.tsx
+++ b/app/components/Button/index.tsx
@@ -28,7 +28,6 @@ const Button = ({
const classes = [
(secondary && 'button-secondary') || 'button',
className,
- tooltip && !secondary && 'tooltip',
secondary && active && 'active',
secondary && !active && !disabled && 'inactive',
]
@@ -39,7 +38,6 @@ const Button = ({
{
if (disabled) {
e.preventDefault()
@@ -48,24 +46,14 @@ const Button = ({
{...props}
>
{children}
- {secondary && tooltip && !disabled && !mobile && (
-
{tooltip}
- )}
+ {tooltip && !disabled && !mobile && {tooltip}
}
)
}
return (
-