Skip to content

Commit 159199d

Browse files
committed
Update top navigation menu style
1 parent dcacbcd commit 159199d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

components/dashboard/src/components/PillMenuItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export default function PillMenuItem(p: {
1414
onClick?: (event: React.MouseEvent) => void;
1515
}) {
1616
let classes =
17-
"flex block font-medium dark:text-gray-400 px-3 py-1 rounded-2xl transition ease-in-out font-semibold " +
17+
"flex block font-medium dark:text-gray-400 px-3 py-1 rounded-2xl transition ease-in-out " +
1818
(p.selected
19-
? "text-gray-50 bg-gray-800 dark:text-gray-900 dark:bg-gray-50"
19+
? "text-gray-500 bg-gray-50 dark:text-gray-100 dark:bg-gray-700"
2020
: "hover:bg-gray-100 dark:hover:bg-gray-700");
2121
if (p.additionalClasses) {
2222
classes = classes + " " + p.additionalClasses;

components/dashboard/src/menu/Menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default function Menu() {
8888
<img src={gitpodIcon} className="h-6" alt="Gitpod's logo" />
8989
</Link>
9090
<OrganizationSelector />
91-
<div className="pl-2 text-base text-gray-500 dark:text-gray-400 flex max-w-lg overflow-hidden">
91+
<div className="pl-1 text-base text-gray-500 dark:text-gray-400 flex max-w-lg overflow-hidden">
9292
{leftMenu.map((entry) => (
9393
<div className="p-1" key={entry.title}>
9494
<PillMenuItem

components/dashboard/src/menu/OrganizationSelector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ export default function OrganizationSelector(p: OrganizationSelectorProps) {
186186

187187
const selectedTitle = currentOrg ? currentOrg.name : userFullName;
188188
const classes =
189-
"flex h-full text-base py-0 text-gray-500 bg-gray-50 dark:bg-gray-800 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 dark:border-gray-700";
189+
"flex h-full text-base py-0 text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700";
190190
return (
191191
<ContextMenu customClasses="w-64 left-0" menuEntries={entries}>
192192
<div className={`${classes} rounded-2xl pl-1`}>
193-
<div className="py-1 pr-1 flex font-semibold whitespace-nowrap max-w-xs overflow-hidden">
193+
<div className="py-1 pr-1 flex font-medium whitespace-nowrap max-w-xs overflow-hidden">
194194
<OrgIcon
195195
id={currentOrg?.id || user?.id || "empty"}
196196
name={selectedTitle}

0 commit comments

Comments
 (0)