Skip to content

Commit

Permalink
- Nav bar updated to look like brand redesign.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattias800 committed Sep 6, 2023
1 parent c5d6392 commit df44a27
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion packages/panels/src/components/nav-bar/NavBar.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.navBar {
/* Theme vars */
--swui-navbar-background-color: var(--lhds-color-blue-500);
--swui-navbar-background-color: var(--lhds-color-ui-50);
--swui-navbar-item-background-color-hover: var(--lhds-color-blue-700);
--swui-navbar-item-background-color-selected: var(--lhds-color-blue-600);
--swui-navbar-item-background-color-selected-hover: var(
Expand Down
16 changes: 8 additions & 8 deletions packages/panels/src/components/nav-bar/NavBarButton.module.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
.navBarButton {
/* Theme vars */
--swui-nav-bar-button-text-color: var(--lhds-color-ui-50);
--swui-nav-bar-button-text-color: var(--lhds-color-blue-600);
--swui-nav-bar-button-background-color: transparent;
--swui-nav-bar-button-background-color-hover: var(--lhds-color-blue-900);
--swui-nav-bar-button-background-color-focus: var(--lhds-color-blue-700);
--swui-nav-bar-button-background-color-active: var(--lhds-color-blue-800);
--swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-600);
--swui-nav-bar-button-background-color-hover: var(--lhds-color-ui-100);
--swui-nav-bar-button-background-color-focus: var(--lhds-color-ui-200);
--swui-nav-bar-button-background-color-active: var(--lhds-color-ui-200);
--swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-200);
--swui-nav-bar-button-background-color-selected-hover: var(
--lhds-color-blue-700
--lhds-color-blue-100
);
--swui-nav-bar-button-background-color-selected-focus: var(
--lhds-color-blue-700
--lhds-color-blue-300
);
--swui-nav-bar-button-background-color-selected-active: var(
--lhds-color-blue-800
--lhds-color-blue-200
);

/* Flatbutton overrrides */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const NavBarPopoverButton: React.FC<NavBarPopoverButtonProps> = ({
children,
...navBarButtonProps
}) => {
const [isOpen, open, close] = useBoolean(false);
const [isOpen, , close, toggle] = useBoolean(false);

return (
<Popover
Expand All @@ -34,7 +34,7 @@ export const NavBarPopoverButton: React.FC<NavBarPopoverButtonProps> = ({
</>
}
>
<NavBarButton {...navBarButtonProps} onClick={open} />
<NavBarButton {...navBarButtonProps} onClick={toggle} />
</Popover>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
--swui-textinput-animation-time: var(--swui-animation-time-fast);

--swui-textinput-placeholder-color: var(--lhds-color-ui-500);
--swui-textinput-bg-color: var(--lhds-color-blue-600);
--swui-textinput-bg-color: var(--lhds-color-blue-50);
--swui-textinput-border-color: transparent;
--swui-textinput-border-color-hover: transparent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.sidebarMenuButton {
/* Theme vars */
--swui-nav-bar-side-menu-button-text-color: var(--lhds-color-ui-50);
--swui-nav-bar-side-menu-button-background-color: var(--lhds-color-blue-500);
--swui-nav-bar-side-menu-button-text-color: var(--lhds-color-blue-600);
--swui-nav-bar-side-menu-button-background-color: var(--lhds-color-ui-50);
--swui-nav-bar-side-menu-button-background-color-hover: var(
--lhds-color-blue-600
--lhds-color-ui-100
);
--swui-nav-bar-side-menu-button-background-color-focus: var(
--lhds-color-blue-600
--lhds-color-ui-200
);
--swui-nav-bar-side-menu-button-background-color-active: var(
--lhds-color-blue-700
--lhds-color-ui-200
);

/* State vars */
Expand Down Expand Up @@ -53,6 +53,8 @@
}

.icon {
color: var(--swui-nav-bar-side-menu-button-text-color);
path {
fill: var(--swui-nav-bar-side-menu-button-text-color);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
.navBarUserButton {
/* Theme vars */
--swui-nav-bar-user-button-text-color: var(--lhds-color-ui-50);
--swui-nav-bar-user-button-background-color: var(--lhds-color-blue-700);
--swui-nav-bar-user-button-background-color-hover: var(--lhds-color-blue-900);
--swui-nav-bar-user-button-background-color-focus: var(--lhds-color-blue-700);
--swui-nav-bar-user-button-background-color-active: var(
--lhds-color-blue-800
);
--swui-nav-bar-user-button-text-color: var(--lhds-color-blue-600);
--swui-nav-bar-user-button-background-color: var(--lhds-color-ui-50);
--swui-nav-bar-user-button-background-color-hover: var(--lhds-color-ui-100);
--swui-nav-bar-user-button-background-color-focus: var(--lhds-color-ui-100);
--swui-nav-bar-user-button-background-color-active: var(--lhds-color-ui-200);

/* FlatButton overrides */
--swui-flat-button-text-color: var(--swui-nav-bar-user-button-text-color);
Expand Down

0 comments on commit df44a27

Please sign in to comment.