Skip to content

Commit

Permalink
style: correct tab colors on light mode (#1019)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 authored Nov 7, 2024
1 parent 5626046 commit da7ac2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/antalmanac/src/components/SharedRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ function ScheduleManagementMobileTabs(props: ScheduleManagementTabsProps) {
*/
function ScheduleManagementDesktopTabs(props: ScheduleManagementTabsProps) {
const { value, setActiveTab } = props;
const isDark = useThemeStore((store) => store.isDark);

const onChange = (_event: React.SyntheticEvent, value: number) => {
setActiveTab(value + 1);
Expand All @@ -145,7 +146,7 @@ function ScheduleManagementDesktopTabs(props: ScheduleManagementTabsProps) {
height: '44px',
padding: 3,
minWidth: '33%',
'&.Mui-selected': { color: 'white' },
...(isDark ? { '&.Mui-selected': { color: 'white' } } : {}),
}}
label={
<div style={{ display: 'inline-flex', alignItems: 'center' }}>
Expand Down

0 comments on commit da7ac2a

Please sign in to comment.