From fe370afc67efbd11e70c968c52ce991b61a86c2b Mon Sep 17 00:00:00 2001 From: Marija Najdova Date: Wed, 30 Mar 2022 08:12:31 +0200 Subject: [PATCH] Remove unused border color --- packages/mui-material/src/Button/Button.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/mui-material/src/Button/Button.js b/packages/mui-material/src/Button/Button.js index d76f5ee88dbb35..4a8dd782d87d1f 100644 --- a/packages/mui-material/src/Button/Button.js +++ b/packages/mui-material/src/Button/Button.js @@ -172,10 +172,7 @@ const ButtonRoot = styled(ButtonBase, { }), ...(ownerState.variant === 'outlined' && { padding: '5px 15px', - border: `1px solid ${ - // TODO v6: Revisit this value, doesn't depend on the theme - theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)' - }`, + border: '1px solid currentColor', }), ...(ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {