Skip to content

Commit

Permalink
chore: remove neutral color from theme
Browse files Browse the repository at this point in the history
Otherwise, the dark mode was having trouble with the simplest pallete definition
  • Loading branch information
timurbazhirov committed Nov 25, 2023
1 parent 6580aff commit 599f302
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 31 deletions.
3 changes: 1 addition & 2 deletions src/mui/components/dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function DialogModal({
</Typography>
)}
{onClose && (
<IconButton id={`${id}-close-button`} color="neutral" onClick={onClose}>
<IconButton id={`${id}-close-button`} onClick={onClose}>
<IconByName name="actions.close" fontSize="small" />
</IconButton>
)}
Expand All @@ -109,7 +109,6 @@ function DialogModal({
<Button
id={`${id}-cancel-button`}
variant="text"
color="neutral"
data-dismiss="modal"
aria-label={cancelButtonText}
onClick={handleCancel}
Expand Down
25 changes: 0 additions & 25 deletions src/theme/mui.d.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/theme/palette/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ const palette = {
light: "#03A9F4",
contrastText: "rgba(0, 0, 0, 0.23)",
},
neutral: {
main: "rgba(0, 0, 0, 0.5)",
},
text: {
primary: "rgba(37, 39, 60, 0.87)",
secondary: "rgba(76, 78, 100, 0.6)",
Expand Down
2 changes: 1 addition & 1 deletion src/theme/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const MuiSvgIconSizesOverrides = {

export const theme = createTheme({ palette: lightPalette });
// default MUI dark theme:
export const darkTheme = createTheme({ palette: { mode: "dark", neutral: lightPalette.neutral } });
export const darkTheme = createTheme({ palette: { mode: "dark"} });
const buildTheme = (theme: Theme) => {
return createTheme(theme, {
...commonSettings,
Expand Down

0 comments on commit 599f302

Please sign in to comment.