Skip to content

Commit

Permalink
feat: change typography for table and search
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Amrutiya <[email protected]>
  • Loading branch information
amitamrutiya committed Dec 16, 2024
1 parent 53b8d24 commit 8f7ab6f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/custom/CustomTooltip/customTooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Tooltip, type TooltipProps } from '@mui/material';
import React from 'react';
import { Tooltip, TooltipProps } from '../../base';
import { WHITE } from '../../theme';
import { RenderMarkdownTooltip } from '../Markdown';

Expand Down
5 changes: 4 additions & 1 deletion src/custom/ResponsiveDataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const DataTableEllipsisMenu: React.FC<{
open={Boolean(anchorEl)}
onClose={handleClose}
sx={{
fontFamily: theme?.typography.fontFamily,
'& .MuiPaper-root': {
backgroundColor: theme?.palette.background.default ?? 'white'
}
Expand Down Expand Up @@ -122,6 +123,9 @@ export const DataTableEllipsisMenu: React.FC<{

const dataTableTheme = (theme: Theme, backgroundColor?: string) =>
createTheme({
typography: {
fontFamily: theme.typography.fontFamily
},
components: {
MuiPaper: {
styleOverrides: {
Expand All @@ -134,7 +138,6 @@ const dataTableTheme = (theme: Theme, backgroundColor?: string) =>
MuiTable: {
styleOverrides: {
root: {
// border: `2px solid ${theme.palette.border.normal}`,
width: '-webkit-fill-available',
'@media (max-width: 500px)': {
wordWrap: 'break-word'
Expand Down
3 changes: 3 additions & 0 deletions src/custom/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import { TooltipIcon } from './TooltipIconButton';

const customTheme = (theme: Theme) =>
createTheme({
typography: {
fontFamily: theme.typography.fontFamily
},
components: {
MuiTextField: {
styleOverrides: {
Expand Down
1 change: 1 addition & 0 deletions src/custom/StyledSearchBar/style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { styled } from '@mui/material';
import { InputAdornment, OutlinedInput } from '../../base';

export const StyledSearchInput = styled(OutlinedInput)(({ style, theme }) => ({
fontFamily: theme.typography.fontFamily,
width: '100%',
'@media (max-width: 590px)': {
marginLeft: '0.25rem',
Expand Down

0 comments on commit 8f7ab6f

Please sign in to comment.