Skip to content

Commit 8f7ab6f

Browse files
committed
feat: change typography for table and search
Signed-off-by: Amit Amrutiya <[email protected]>
1 parent 53b8d24 commit 8f7ab6f

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

src/custom/CustomTooltip/customTooltip.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Tooltip, type TooltipProps } from '@mui/material';
21
import React from 'react';
2+
import { Tooltip, TooltipProps } from '../../base';
33
import { WHITE } from '../../theme';
44
import { RenderMarkdownTooltip } from '../Markdown';
55

src/custom/ResponsiveDataTable.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export const DataTableEllipsisMenu: React.FC<{
5757
open={Boolean(anchorEl)}
5858
onClose={handleClose}
5959
sx={{
60+
fontFamily: theme?.typography.fontFamily,
6061
'& .MuiPaper-root': {
6162
backgroundColor: theme?.palette.background.default ?? 'white'
6263
}
@@ -122,6 +123,9 @@ export const DataTableEllipsisMenu: React.FC<{
122123

123124
const dataTableTheme = (theme: Theme, backgroundColor?: string) =>
124125
createTheme({
126+
typography: {
127+
fontFamily: theme.typography.fontFamily
128+
},
125129
components: {
126130
MuiPaper: {
127131
styleOverrides: {
@@ -134,7 +138,6 @@ const dataTableTheme = (theme: Theme, backgroundColor?: string) =>
134138
MuiTable: {
135139
styleOverrides: {
136140
root: {
137-
// border: `2px solid ${theme.palette.border.normal}`,
138141
width: '-webkit-fill-available',
139142
'@media (max-width: 500px)': {
140143
wordWrap: 'break-word'

src/custom/SearchBar.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import { TooltipIcon } from './TooltipIconButton';
1111

1212
const customTheme = (theme: Theme) =>
1313
createTheme({
14+
typography: {
15+
fontFamily: theme.typography.fontFamily
16+
},
1417
components: {
1518
MuiTextField: {
1619
styleOverrides: {

src/custom/StyledSearchBar/style.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { styled } from '@mui/material';
22
import { InputAdornment, OutlinedInput } from '../../base';
33

44
export const StyledSearchInput = styled(OutlinedInput)(({ style, theme }) => ({
5+
fontFamily: theme.typography.fontFamily,
56
width: '100%',
67
'@media (max-width: 590px)': {
78
marginLeft: '0.25rem',

0 commit comments

Comments
 (0)