Skip to content
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
11 changes: 8 additions & 3 deletions src/buttons/src/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ export default class Button extends PureComponent {
/**
* The aim of the right icon. Useful to aim a triangle down.
*/
iconAfterAim: PropTypes.oneOf(Object.keys(IconAim))
iconAfterAim: PropTypes.oneOf(Object.keys(IconAim)),

/**
* A JavaScript object to override css styling
*/
css: PropTypes.object
}

static defaultProps = {
Expand Down Expand Up @@ -133,8 +138,8 @@ export default class Button extends PureComponent {
margin={0} // Removes weird margins in Safari
{...textStyle}
css={{
...css,
...appearanceStyle
...appearanceStyle,
...css
}}
height={height}
lineHeight={`${height}px`}
Expand Down