diff --git a/src/custom/CustomColumnVisibilityControl/CustomColumnVisibilityControl.tsx b/src/custom/CustomColumnVisibilityControl/CustomColumnVisibilityControl.tsx index 9ffcbe8c..faf61645 100644 --- a/src/custom/CustomColumnVisibilityControl/CustomColumnVisibilityControl.tsx +++ b/src/custom/CustomColumnVisibilityControl/CustomColumnVisibilityControl.tsx @@ -1,3 +1,4 @@ +import { useTheme } from '@mui/material'; import React from 'react'; import { Box } from '../../base/Box'; import { Card } from '../../base/Card'; @@ -30,6 +31,7 @@ export function CustomColumnVisibilityControl({ }: CustomColumnVisibilityControlProps): JSX.Element { const [open, setOpen] = React.useState(false); const [anchorEl, setAnchorEl] = React.useState(null); + const theme = useTheme(); const handleOpen = (event: React.MouseEvent) => { setAnchorEl(event.currentTarget); @@ -54,7 +56,7 @@ export function CustomColumnVisibilityControl({ } + icon={} arrow /> {columns.map((col) => ( diff --git a/src/custom/SearchBar.tsx b/src/custom/SearchBar.tsx index b77b317d..3f68868d 100644 --- a/src/custom/SearchBar.tsx +++ b/src/custom/SearchBar.tsx @@ -12,7 +12,7 @@ const customTheme = (theme: Theme) => MuiTextField: { styleOverrides: { root: { - '--TextField-brandBorderColor': 'rgba(0, 0, 0, 0.5)', + '--TextField-brandBorderColor': theme.palette.border.strong, '--TextField-brandBorderHoverColor': theme.palette.background.graphics?.default, '--TextField-brandBorderFocusedColor': theme.palette.background.graphics?.default, '& label.Mui-focused': { @@ -39,6 +39,7 @@ const customTheme = (theme: Theme) => MuiInput: { styleOverrides: { root: { + color: theme.palette.text.default, '&::before': { borderBottom: '2px solid var(--TextField-brandBorderColor)' }, @@ -61,7 +62,6 @@ export interface SearchBarProps { onClear?: () => void; expanded: boolean; setExpanded: (expanded: boolean) => void; - iconFill?: string; } function SearchBar({ @@ -69,13 +69,11 @@ function SearchBar({ placeholder, onClear, expanded, - setExpanded, - iconFill + setExpanded }: SearchBarProps): JSX.Element { const [searchText, setSearchText] = React.useState(''); const searchRef = React.useRef(null); - - const outerTheme = useTheme(); + const theme = useTheme(); const handleSearchChange = (event: React.ChangeEvent): void => { setSearchText(event.target.value); @@ -123,7 +121,7 @@ function SearchBar({ }} >
- + } + icon={} arrow /> ) : ( } + icon={} arrow /> )} diff --git a/src/custom/UniversalFilter.tsx b/src/custom/UniversalFilter.tsx index dd4fe57e..1df8dbab 100644 --- a/src/custom/UniversalFilter.tsx +++ b/src/custom/UniversalFilter.tsx @@ -1,3 +1,4 @@ +import { useTheme } from '@mui/material'; import { SelectChangeEvent } from '@mui/material/Select'; import React from 'react'; import { Button } from '../base/Button'; @@ -36,6 +37,7 @@ function UniversalFilter({ }: UniversalFilterProps): JSX.Element { const [anchorEl, setAnchorEl] = React.useState(null); const [open, setOpen] = React.useState(false); + const theme = useTheme(); const handleFilterChange = (event: React.ChangeEvent<{ value: string }>, columnName: string) => { const value = event.target.value; @@ -70,7 +72,7 @@ function UniversalFilter({ } + icon={} arrow /> {Object.keys(filters).map((filterColumn) => { diff --git a/src/theme/components/outlinedinput.modifier.ts b/src/theme/components/outlinedinput.modifier.ts index fdff0d1c..7e3d9d27 100644 --- a/src/theme/components/outlinedinput.modifier.ts +++ b/src/theme/components/outlinedinput.modifier.ts @@ -9,7 +9,8 @@ export const MuiOutlinedInput: Components['MuiOutlinedInput'] = { root: ({ theme }) => { const { palette: { - background: { graphics, brand } + background: { graphics, brand }, + border: { strong } }, typography: { textB1Regular } } = theme; @@ -26,6 +27,9 @@ export const MuiOutlinedInput: Components['MuiOutlinedInput'] = { }, '&:hover .MuiOutlinedInput-notchedOutline': { borderColor: brand?.default + }, + '& .MuiOutlinedInput-notchedOutline': { + borderColor: strong } }; }