Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 88ca886

Browse files
committed
chore: removed variant from navbargeneric
1 parent d2cfca6 commit 88ca886

File tree

3 files changed

+3
-23
lines changed

3 files changed

+3
-23
lines changed

src/components/Navbar/components/NavbarGeneric.stories.tsx

-8
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ const meta = {
1717
defaultValue: { summary: "sticky" },
1818
},
1919
},
20-
variant: {
21-
control: "radio",
22-
options: ["default"],
23-
description: "Visual variant of the navbar",
24-
table: {
25-
defaultValue: { summary: "default" },
26-
},
27-
},
2820
},
2921
} satisfies Meta<typeof NavbarGeneric>;
3022

src/components/Navbar/components/NavbarGeneric.tsx

+3-9
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,16 @@ import { cn } from "@/lib";
99
import { filterAndSortChildren } from "../utils/filterAndSortChildren";
1010

1111
const navbarVariants = tv({
12-
base: "flex h-16 w-full items-center justify-between px-20 py-2.5",
12+
base: "flex h-16 w-full items-center justify-between bg-white/[0.03] px-20 py-2.5 backdrop-blur-[22px]",
1313
variants: {
1414
behavior: {
1515
static: "",
1616
sticky: "sticky top-0 z-50",
1717
fixed: "fixed left-0 right-0 top-0 z-50",
1818
},
19-
variant: {
20-
default: "bg-navbar shadow-navbar backdrop-blur-navbar",
21-
},
2219
},
2320
defaultVariants: {
2421
behavior: "sticky",
25-
variant: "default",
2622
},
2723
});
2824

@@ -33,13 +29,11 @@ export interface NavbarGenericProps
3329
children?: React.ReactNode;
3430
/** Position of the navbar: static, sticky, or fixed */
3531
behavior?: "static" | "sticky" | "fixed";
36-
/** Visual variant of the navbar */
37-
variant?: "default";
3832
}
3933

4034
export const NavbarGeneric = React.forwardRef<HTMLElement, NavbarGenericProps>(
41-
({ className, behavior, variant, children, ...props }, ref) => {
42-
const navbarStyle = navbarVariants({ behavior, variant });
35+
({ className, behavior, children, ...props }, ref) => {
36+
const navbarStyle = navbarVariants({ behavior });
4337
const filteredChildren = filterAndSortChildren(children);
4438
return (
4539
<nav ref={ref} className={cn(navbarStyle, className)} {...props}>

tailwind.config.ts

-6
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ export default withTV({
1010
theme: {
1111
colors,
1212
extend: {
13-
backgroundColor: {
14-
navbar: "bg-white/[0.03]",
15-
},
1613
borderWidth: {
1714
"1.5": "1.5px",
1815
},
@@ -36,9 +33,6 @@ export default withTV({
3633
toast:
3734
"0px 24px 94px 0px rgba(0, 0, 0, 0.17), 0px 7.235px 28.338px 0px rgba(0, 0, 0, 0.11), 0px 3.005px 11.77px 0px rgba(0, 0, 0, 0.09), 0px 1.087px 4.257px 0px rgba(0, 0, 0, 0.06)",
3835
},
39-
backdropBlur: {
40-
navbar: "22px",
41-
},
4236
fontFamily: {
4337
"ui-mono": ["DM Mono", "serif"],
4438
"ui-sans": ["DM Sans", "sans-serif"],

0 commit comments

Comments
 (0)