From a78fbe81d7a318a45424bf9165cd19491b2864c8 Mon Sep 17 00:00:00 2001 From: schmanu Date: Tue, 31 Oct 2023 10:30:59 +0100 Subject: [PATCH 1/2] fix: remove Alert border --- package.json | 2 +- src/theme/safeTheme.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index f35af9f..979bec5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@safe-global/safe-react-components", - "version": "2.0.6", + "version": "2.0.7", "description": "Safe UI components", "main": "dist/index.min.js", "typings": "dist/index.d.ts", diff --git a/src/theme/safeTheme.tsx b/src/theme/safeTheme.tsx index 5cb077c..38eb7a0 100644 --- a/src/theme/safeTheme.tsx +++ b/src/theme/safeTheme.tsx @@ -288,7 +288,6 @@ const createSafeTheme = (mode: PaletteMode): Theme => { '&. MuiPaper-root': { backgroundColor: theme.palette.error.background, }, - border: `1px solid ${theme.palette.error.main}`, }), standardInfo: ({ theme }) => ({ '& .MuiAlert-icon': { From c2cabc81576cd96cd9c8becd3de2810fe04286a1 Mon Sep 17 00:00:00 2001 From: schmanu Date: Tue, 31 Oct 2023 10:39:07 +0100 Subject: [PATCH 2/2] fix: remove from all Alert styles --- src/theme/safeTheme.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/theme/safeTheme.tsx b/src/theme/safeTheme.tsx index 38eb7a0..6aab2c4 100644 --- a/src/theme/safeTheme.tsx +++ b/src/theme/safeTheme.tsx @@ -296,7 +296,6 @@ const createSafeTheme = (mode: PaletteMode): Theme => { '&. MuiPaper-root': { backgroundColor: theme.palette.info.background, }, - border: `1px solid ${theme.palette.info.main}`, }), standardSuccess: ({ theme }) => ({ '& .MuiAlert-icon': { @@ -305,7 +304,6 @@ const createSafeTheme = (mode: PaletteMode): Theme => { '&. MuiPaper-root': { backgroundColor: theme.palette.success.background, }, - border: `1px solid ${theme.palette.success.main}`, }), standardWarning: ({ theme }) => ({ '& .MuiAlert-icon': { @@ -314,7 +312,6 @@ const createSafeTheme = (mode: PaletteMode): Theme => { '&. MuiPaper-root': { backgroundColor: theme.palette.warning.background, }, - border: `1px solid ${theme.palette.warning.main}`, }), root: ({ theme }) => ({ color: theme.palette.text.primary,