From a8a51f74301d911e8be28ee6f3ff4e2830708536 Mon Sep 17 00:00:00 2001 From: Eelco Wiersma Date: Tue, 7 Jun 2022 19:50:38 +0200 Subject: [PATCH] Removed redundant focus ring management --- packages/saas-ui-theme/src/base/components/list.ts | 3 --- packages/saas-ui-theme/src/saas-ui/components/button.ts | 7 ------- packages/saas-ui-theme/src/saas-ui/components/link.ts | 8 +------- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/packages/saas-ui-theme/src/base/components/list.ts b/packages/saas-ui-theme/src/base/components/list.ts index 9c37e224b..9c9b1552a 100644 --- a/packages/saas-ui-theme/src/base/components/list.ts +++ b/packages/saas-ui-theme/src/base/components/list.ts @@ -23,9 +23,6 @@ const baseStyle: PartsStyleFunction = (props) => { _focus: { boxShadow: 'outline', bg: mode('blackAlpha.200', 'whiteAlpha.300')(props), - '&:not(:focus-visible)': { - boxShadow: 'none', - }, }, _active: { bg: mode('blackAlpha.300', 'whiteAlpha.400')(props), diff --git a/packages/saas-ui-theme/src/saas-ui/components/button.ts b/packages/saas-ui-theme/src/saas-ui/components/button.ts index cb4cdf0d3..68c79772a 100644 --- a/packages/saas-ui-theme/src/saas-ui/components/button.ts +++ b/packages/saas-ui-theme/src/saas-ui/components/button.ts @@ -188,13 +188,6 @@ export default { defaultProps: { size: 'sm', }, - baseStyle: { - _focus: { - '&:not(:focus-visible)': { - boxShadow: 'none', - }, - }, - }, variants: { solid: variantSolid, ghost: variantGhost, diff --git a/packages/saas-ui-theme/src/saas-ui/components/link.ts b/packages/saas-ui-theme/src/saas-ui/components/link.ts index 7e3fcc39b..cb6c014d1 100644 --- a/packages/saas-ui-theme/src/saas-ui/components/link.ts +++ b/packages/saas-ui-theme/src/saas-ui/components/link.ts @@ -1,9 +1,3 @@ export default { - baseStyle: { - _focus: { - '&:not(:focus-visible)': { - boxShadow: 'none', - }, - }, - }, + baseStyle: {}, }