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

fix(button): adjust font size and paddings #593

Merged
merged 1 commit into from
Mar 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/components/button/button-styles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ export default theme => {

xs: {
borderRadius: 12,
padding: '5px 12px',
padding: '2px 10px 3px',

'&$iconText': {
paddingBottom: 5,
paddingTop: 4,
paddingBottom: 3,
paddingTop: 2,
},

'&$icon': {
Expand All @@ -126,18 +126,18 @@ export default theme => {
},
},

...typography.caption({
...typography.secondary({
weight: 'regular',
}),
},

sm: {
borderRadius: 16,
padding: '8px 20px',
padding: '5px 12px 6px',

'&$iconText': {
paddingBottom: 7,
paddingTop: 7,
paddingBottom: 6,
paddingTop: 5,
},

'&$icon': {
Expand All @@ -148,17 +148,17 @@ export default theme => {
},
},

...typography.caption({
...typography.secondary({
weight: 'regular',
}),
},

md: {
borderRadius: 20,
padding: '11px 38px',
padding: '10px 34px 11px',

'&$iconText': {
paddingBottom: 10,
paddingBottom: 11,
paddingTop: 10,
},

Expand All @@ -170,7 +170,7 @@ export default theme => {
},
},

...typography.secondary({
...typography.primary({
weight: 'regular',
}),
},
Expand Down