Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
feat(Badge): Padding and default size (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewmorris authored Aug 30, 2019
1 parent 1a2884a commit bf2d745
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/Badge/Badge.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Documentation and examples for badges, our small count and labeling component.
<Badge variant="success" ml={2}>I'm So Successful</Badge>
<Badge variant="danger" ml={2}>I'm So Dangerous</Badge>
<Badge variant="warning" ml={2}>💁‍♀️ Caution</Badge>
<Badge variant="grey" ml={2}>Grey</Badge>
</Playground>

### Sizes
Expand Down
6 changes: 3 additions & 3 deletions src/Badge/__snapshots__/Badge.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ exports[`Badge 1`] = `
font-weight: bold;
background-color: #CADCFF;
color: #0958F3;
font-size: 14px;
border-radius: 14px;
padding: 5px 10px;
font-size: 12px;
border-radius: 12px;
padding: 4px 8px;
}
<span
Expand Down
12 changes: 6 additions & 6 deletions src/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,18 +265,18 @@ export default (overrides = {}) => {
},
Badge: {
sm: {
fontSize: 10,
borderRadius: 10,
padding: '4px 8px',
},
md: {
fontSize: 12,
borderRadius: 12,
padding: '4px 8px',
},
md: {
lg: {
fontSize: 14,
borderRadius: 14,
padding: '5px 10px',
},
lg: {
fontSize: 16,
borderRadius: 16,
padding: '6px 12px',
},
},
Expand Down

0 comments on commit bf2d745

Please sign in to comment.