From 11922b1b0233933f7f7cd055affdf4335b4fe553 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sun, 28 Jun 2020 07:35:17 +0200 Subject: [PATCH] Only apply before on highlight for icons (#336) --- packages/react-identicon/src/Identicon.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/react-identicon/src/Identicon.tsx b/packages/react-identicon/src/Identicon.tsx index 9c360d26..d375ba58 100644 --- a/packages/react-identicon/src/Identicon.tsx +++ b/packages/react-identicon/src/Identicon.tsx @@ -43,19 +43,15 @@ const Wrapper = styled.div` position: relative; } - &:before { + &.highlight:before { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; - box-shadow: 0 0 5px 2px #e0e0e0; - content: ''; - } - - &.highlight:before { box-shadow: 0 0 5px 2px #aaa; + content: ''; } } `; @@ -110,14 +106,14 @@ class BaseIcon extends React.PureComponent { } private getWrapped ({ address, publicKey }: State): React.ReactNode { - const { className, isAlternative, isHighlight, size = DEFAULT_SIZE, style, theme = settings.icon } = this.props; + const { className = '', isAlternative, isHighlight, size = DEFAULT_SIZE, style, theme = settings.icon } = this.props; const Component = !address ? Empty : Components[theme === 'default' ? ICON_DEFAULT_HOST : theme] || Fallback; return (