Skip to content

Commit a891ede

Browse files
Merge pull request #3 from guardiafinance/fix/remove-navbar-gradient-color
fix: remove navbar gradient filter
2 parents 52df3df + 80ccd26 commit a891ede

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@guardiafinance/design-system",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"type": "module",
55
"exports": {
66
".": {

src/components/navbar/navbar.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ function NavbarInternal({
7575
onAreaChange?.(area);
7676
};
7777

78-
const sidebarStyle = settings.styling?.background
79-
? { background: settings.styling.background }
80-
: { background: "linear-gradient(180deg, #37104C 0%, #4F186D 100%)" };
81-
8278
return (
8379
<Sidebar
8480
variant="sidebar"
8581
collapsible="icon"
8682
fixed={settings.styling?.fixed ?? true}
87-
className={`border-r-0 [&>[data-sidebar=sidebar]]:bg-transparent z-[60] ${className} ${settings.styling?.className || ""}`}
88-
style={sidebarStyle}
83+
className={`
84+
border-r-0 [&>[data-sidebar=sidebar]]:bg-transparent z-[60]
85+
${settings.styling?.background ? '' : 'bg-brand-purple'}
86+
${className} ${settings.styling?.className || ""}
87+
`}
88+
style={settings.styling?.background ? { background: settings.styling.background } : undefined}
8989
>
9090
<When condition={Boolean(settings.organization)}>
9191
<SidebarHeader>

0 commit comments

Comments
 (0)