From f30748736bc36876c7c2f44d127656ccc6b06c3e Mon Sep 17 00:00:00 2001 From: "manuel.carrera" Date: Thu, 9 May 2024 10:51:06 -0600 Subject: [PATCH] fix: Remove boxshadow around removeable --- modules/preview-react/pill/lib/Pill.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/preview-react/pill/lib/Pill.tsx b/modules/preview-react/pill/lib/Pill.tsx index 983d7a20c6..64423575a3 100644 --- a/modules/preview-react/pill/lib/Pill.tsx +++ b/modules/preview-react/pill/lib/Pill.tsx @@ -115,7 +115,7 @@ const StyledBasePill = styled(BaseButton)( boxStyleFn ); -const StyledNonInteractivePill = styled(StyledBasePill)({ +const StyledRemoveablePill = styled(StyledBasePill)({ [buttonStencil.vars.background]: colors.soap300, [buttonStencil.vars.border]: colors.licorice200, [buttonStencil.vars.label]: colors.blackPepper400, @@ -126,6 +126,7 @@ const StyledNonInteractivePill = styled(StyledBasePill)({ [buttonStencil.vars.border]: colors.licorice200, [buttonStencil.vars.label]: colors.blackPepper400, [systemIconStencil.vars.backgroundColor]: colors.soap300, + boxShadow: 'none', }, '&:hover, &.hover': { @@ -153,7 +154,7 @@ const StyledNonInteractivePill = styled(StyledBasePill)({ position: 'relative', }); -const StyledReadOnlyPill = styled(StyledNonInteractivePill)({ +const StyledReadOnlyPill = styled(StyledRemoveablePill)({ [buttonStencil.vars.background]: 'transparent', '&:hover, &.hover': { [buttonStencil.vars.background]: 'transparent', @@ -308,7 +309,7 @@ export const Pill = createContainer('button')({ )} {variant === 'removable' && ( - {child}; })} - + )} );