Skip to content

Commit

Permalink
Fix top margin on pill bubble to match other bubbles
Browse files Browse the repository at this point in the history
  • Loading branch information
caleybrock committed Apr 25, 2018
1 parent b8ad920 commit a280547
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/src/templates/progress/ProgressBubbleSet.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const styles = {
top: (DIAMOND_DOT_SIZE + 4 + 6 - 10) / 2,
},
backgroundPill: {
// pill has height of 18, border of 2, padding of 6
top: (18 + 4 + 12 - 10) / 2,
// pill has height of 18, border of 2, padding of 6, margin of 3
top: (18 + 4 + 12 + 6 - 10) / 2,
},
backgroundFirst: {
left: 15
Expand Down
12 changes: 12 additions & 0 deletions apps/src/templates/progress/ProgressBubbleSet.story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,17 @@ export default storybook => {
/>
)
},
{
name:'only level is unplugged',
description: 'Should get a pill for unplugged',
story: () => (
<ProgressBubbleSet
levels={[
fakeLevel({ isUnplugged: true }),
]}
disabled={false}
/>
)
},
]);
};
2 changes: 2 additions & 0 deletions apps/src/templates/progress/ProgressPill.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const styles = {
paddingBottom: 6,
minWidth: 70,
lineHeight: '18px',
marginTop: 3,
marginBottom: 3,
},
text: {
display: 'inline-block',
Expand Down

0 comments on commit a280547

Please sign in to comment.