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

Commit f08d5b2

Browse files
authored
Merge pull request #8333 from systeminit/jobelenus/nav-bar-light-mode-fix
Fix: nav bar doesn't turn to light mode in light mode!
2 parents 69ff778 + b88cbc0 commit f08d5b2

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

app/web/src/newhotness/nav/NavbarPanelCenter.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<template v-if="isConnected">
44
<div v-if="ffStore.SHOW_POLICIES" class="flex flex-row items-end gap-xs p-xs">
55
<NewButton
6-
tone="flat"
6+
tone="navFlat"
77
@click="() => router.push(compositionLink)"
88
class="py-3xs"
99
:active="onSim"
1010
:label="onHead ? 'Model' : 'Simulation'"
1111
/>
1212
<NewButton
1313
v-if="ffStore.SHOW_AUTHORING_NAV"
14-
tone="flat"
14+
tone="navFlat"
1515
class="py-3xs"
1616
:active="onAuthor"
1717
@click="
@@ -25,7 +25,7 @@
2525
/>
2626
<NewButton
2727
v-if="onHead"
28-
tone="flat"
28+
tone="navFlat"
2929
class="py-3xs"
3030
:active="onAudit"
3131
@click="
@@ -39,7 +39,7 @@
3939
/>
4040
<NewButton
4141
v-else
42-
tone="flat"
42+
tone="navFlat"
4343
class="py-3xs"
4444
:active="onReview"
4545
@click="
@@ -52,7 +52,7 @@
5252
label="Review"
5353
/>
5454
<NewButton
55-
tone="flat"
55+
tone="navFlat"
5656
class="py-3xs"
5757
:active="onPolicy"
5858
@click="

lib/vue-lib/src/design-system/general/NewButton.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
'flex flex-row items-center justify-center rounded-sm',
1818
size === '2xs' || size === 'xs' ? 'gap-2xs' : 'gap-xs',
1919
'transition-all whitespace-nowrap leading-none font-medium max-h-fit',
20-
tone === 'toggle' ? 'px-2xs min-h-[28px]' : [
21-
hasLabel ? 'px-xs py-2xs' : 'p-3xs m-3xs',
22-
],
20+
tone === 'toggle'
21+
? 'px-2xs min-h-[28px]'
22+
: [hasLabel ? 'px-xs py-2xs' : 'p-3xs m-3xs'],
2323
tone !== 'empty' && 'border',
2424
computedTextSize,
2525
truncateText && 'min-w-0',
@@ -44,6 +44,8 @@
4444
'text-neutral-900 bg-100 border-neutral-400 hover:bg-neutral-200',
4545
'text-white bg-neutral-800 border-neutral-600 hover:bg-neutral-700',
4646
),
47+
navFlat:
48+
'text-white bg-neutral-800 border-neutral-600 hover:bg-neutral-700',
4749
toggle: clsx(
4850
'font-mono text-left truncate relative',
4951
themeClasses(
@@ -76,6 +78,7 @@
7678
{
7779
neutral: themeClasses('bg-neutral-100', 'bg-neutral-600'),
7880
flat: themeClasses('bg-neutral-200', 'bg-neutral-700'),
81+
navFlat: 'bg-neutral-700',
7982
toggle: '',
8083
action: themeClasses('bg-[#2583EC]', 'bg-[#1D5BA0]'),
8184
warning: themeClasses('bg-white', 'bg-[#67452D]'),
@@ -129,10 +132,7 @@
129132
</slot>
130133
<slot v-else>{{ label }}</slot>
131134
</TruncateWithTooltip>
132-
<span
133-
v-else-if="hasLabel"
134-
:class="labelClasses"
135-
>
135+
<span v-else-if="hasLabel" :class="labelClasses">
136136
<slot v-if="confirmClick && confirmFirstClickAt" name="confirm-click">
137137
|
138138
{{
@@ -161,6 +161,7 @@
161161
{
162162
neutral: '',
163163
flat: '',
164+
navFlat: '',
164165
toggle: '',
165166
action: '',
166167
warning: '',
@@ -414,7 +415,7 @@ const labelClasses = computed(() => {
414415
return tw`py-2xs text-[13px] font-normal`;
415416
}
416417
417-
return props.size === '2xs' || props.size === 'xs' ? tw`py-3xs` : tw`py-2xs`;
418+
return props.size === "2xs" || props.size === "xs" ? tw`py-3xs` : tw`py-2xs`;
418419
});
419420
420421
const tooltipObject = computed(() =>
@@ -442,6 +443,7 @@ export type ButtonSizes = "2xs" | "xs" | "sm" | "md" | "lg" | "xl";
442443
export const BUTTON_TONES = [
443444
"neutral",
444445
"flat", // similar to neutral, but has the same bg as the content its sitting on top of
446+
"navFlat", // flat, but for the nav where we dont have light mode styles
445447
"toggle", // alternative neutral style used for buttons in the same area as ExploreModeTile
446448
"action",
447449
"warning",

0 commit comments

Comments
 (0)