Skip to content

Commit

Permalink
fix: negative value in rem()
Browse files Browse the repository at this point in the history
  • Loading branch information
MikitaLisavets committed Oct 19, 2020
1 parent a7d2324 commit d1c5d20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/bubble/Bubble.ts
Expand Up @@ -26,7 +26,7 @@ const Bubble = styled.div<{ position?: string }>(({ theme }) => [
position: 'absolute',
top: '100%',
right: rem(12),
marginTop: rem(-1),
marginTop: `-${rem(1)}`,
},
},
({ position }) =>
Expand All @@ -36,7 +36,7 @@ const Bubble = styled.div<{ position?: string }>(({ theme }) => [
marginTop: 0,
borderBottomWidth: rem(8),
bottom: '100%',
marginBottom: rem(-1),
marginBottom: `-${rem(1)}`,
borderTopWidth: 0,
borderBottomColor: theme.color.hit[100],
},
Expand Down

0 comments on commit d1c5d20

Please sign in to comment.