mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
theme: fix button hover colors
This commit is contained in:
@@ -94,14 +94,12 @@ function Header(props: RouteContainerProps) {
|
||||
data-test-id="search-input"
|
||||
id="search"
|
||||
name="search"
|
||||
variant="clean"
|
||||
type="text"
|
||||
sx={{
|
||||
bg: "background",
|
||||
m: 0,
|
||||
mr: 0,
|
||||
|
||||
border: "1px solid var(--border)",
|
||||
borderRadius: "large",
|
||||
gap: 0
|
||||
}}
|
||||
|
||||
@@ -51,12 +51,12 @@ export const createButtonVariant = (
|
||||
transition: "transform 50ms ease-out",
|
||||
":hover:not(:disabled):not(:active)": {
|
||||
bg: background,
|
||||
filter: "brightness(90%)",
|
||||
// filter: "brightness(90%)",
|
||||
...states?.hover
|
||||
},
|
||||
":active:not(:disabled)": {
|
||||
bg: background,
|
||||
filter: "brightness(85%)",
|
||||
// filter: "brightness(85%)",
|
||||
transform: "scale(0.98) !important",
|
||||
...states?.hover,
|
||||
...states?.active
|
||||
@@ -70,11 +70,18 @@ export const createButtonVariant = (
|
||||
}
|
||||
});
|
||||
|
||||
const primary = createButtonVariant();
|
||||
const primary = createButtonVariant("transparent", "paragraph", {
|
||||
hover: { bg: "hover" },
|
||||
active: { bg: "hover" }
|
||||
});
|
||||
|
||||
const secondary: ThemeUIStyleObject = createButtonVariant(
|
||||
"background-secondary",
|
||||
"paragraph"
|
||||
"paragraph",
|
||||
{
|
||||
hover: { bg: "hover-secondary" },
|
||||
active: { bg: "hover-secondary" }
|
||||
}
|
||||
);
|
||||
|
||||
const accent = createButtonVariant("accent", "accentForeground", {
|
||||
|
||||
Reference in New Issue
Block a user