Skip to content

Commit 521d78c

Browse files
authored
Merge pull request #914 from layer5io/revert-907-fix/font
Revert "chore: added fontfamily for base component"
2 parents cd716c7 + b1207e9 commit 521d78c

File tree

8 files changed

+13
-33
lines changed

8 files changed

+13
-33
lines changed

src/theme/components/appbar.modifiter.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ export const MuiAppBar: Components<Theme>['MuiAppBar'] = {
66
const {
77
palette: {
88
background: { default: defaultBackground }
9-
},
10-
typography: { fontFamily }
9+
}
1110
} = theme;
1211
return {
13-
fontFamily,
1412
elevation: 2,
1513
background: defaultBackground
1614
};

src/theme/components/buttongroup.modifier.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { Components, Theme } from '@mui/material';
33
export const MuiButtonGroup: Components<Theme>['MuiButtonGroup'] = {
44
styleOverrides: {
55
grouped: ({ theme }) => ({
6-
borderColor: theme.palette.common.white,
7-
fontFamily: theme.typography.fontFamily
6+
borderColor: theme.palette.common.white
87
})
98
}
109
};

src/theme/components/link.modifier.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ export const MuiLink: Components<Theme>['MuiLink'] = {
77
palette: {
88
text: { default: defaultText },
99
background: { brand }
10-
},
11-
typography: { fontFamily }
10+
}
1211
} = theme;
1312
return {
14-
fontFamily: fontFamily,
1513
fontWeight: '600',
1614
textDecoration: 'none',
1715
color: defaultText,

src/theme/components/listitem.modifier.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ export const MuiListItem: Components<Theme>['MuiListItem'] = {
2020
text: { default: defaultText },
2121
icon: { default: defaultIcon },
2222
background: { brand }
23-
},
24-
typography: { fontFamily }
23+
}
2524
} = theme;
2625
return {
27-
fontFamily,
2826
textTransform: 'none',
2927
margin: '.5rem 0rem .5rem .5rem',
3028
padding: '0rem',

src/theme/components/menu.modifier.ts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,13 @@ import { Components, Theme } from '@mui/material';
22

33
export const MuiMenu: Components<Theme>['MuiMenu'] = {
44
styleOverrides: {
5-
root: ({ theme }) => {
6-
const {
7-
typography: { fontFamily }
8-
} = theme;
9-
return {
10-
paper: {
11-
fontFamily: fontFamily,
12-
'& .MuiMenuItem-root.Mui-selected': {
13-
backgroundColor: 'rgba(0, 0, 0, 0.08)',
14-
'&:hover': {
15-
backgroundColor: 'rgba(0, 0, 0, 0.08)'
16-
}
17-
}
5+
paper: {
6+
'& .MuiMenuItem-root.Mui-selected': {
7+
backgroundColor: 'rgba(0, 0, 0, 0.08)',
8+
'&:hover': {
9+
backgroundColor: 'rgba(0, 0, 0, 0.08)'
1810
}
19-
};
11+
}
2012
}
2113
}
2214
};

src/theme/components/menuitem.modifier.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ export const MuiMenuItem: Components<Theme>['MuiMenuItem'] = {
66
const {
77
palette: {
88
text: { tertiary }
9-
},
10-
typography: { fontFamily }
9+
}
1110
} = theme;
1211
return {
13-
fontFamily: fontFamily,
1412
'&:hover': {
1513
'& li': {
1614
color: tertiary,

src/theme/components/tab.modifier.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ export const MuiTab: Components<Theme>['MuiTab'] = {
77
palette: {
88
text: { default: defaultText },
99
background: { tabs: defaultBackground }
10-
},
11-
typography: { textB1Regular }
10+
}
1211
} = theme;
1312
return {
14-
...textB1Regular,
1513
'&.Mui-selected': {
1614
color: defaultText,
1715
backgroundColor: defaultBackground

src/theme/components/tabs.modifier.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { Components, Theme } from '@mui/material';
33
export const MuiTabs: Components<Theme>['MuiTabs'] = {
44
styleOverrides: {
55
root: ({ theme }) => ({
6-
backgroundColor: theme.palette.background.tabs,
7-
fontFamily: theme.typography.fontFamily
6+
backgroundColor: theme.palette.background.tabs
87
}),
98
indicator: ({ theme }) => ({
109
backgroundColor: theme.palette.background.brand?.default

0 commit comments

Comments
 (0)