theme: fix button hover colors

This commit is contained in:
Abdullah Atta
2025-03-03 14:07:39 +05:00
parent ac7e84ba3b
commit b9696a91ef
2 changed files with 11 additions and 6 deletions

View File

@@ -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
}}

View File

@@ -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", {