Fix extra margin around Open and Download links
This commit is contained in:
parent
839c42bc3a
commit
e6563f26b8
1 changed files with 3 additions and 2 deletions
|
@ -25,9 +25,10 @@ export let Link = React.createClass({
|
|||
return null;
|
||||
}
|
||||
|
||||
/* The way the class name is generated here is a mess -- refactor */
|
||||
|
||||
const className = (this.props.className || '') +
|
||||
(this.props.button ? ' button-block button-' + this.props.button : '') +
|
||||
(!this.props.className && !this.props.button ? 'button-text' : '') +
|
||||
(this.props.disabled ? ' disabled' : '');
|
||||
|
||||
let content;
|
||||
|
@ -44,7 +45,7 @@ export let Link = React.createClass({
|
|||
return (
|
||||
<a className={className} href={this.props.href || 'javascript:;'} title={this.props.title}
|
||||
onClick={this.handleClick} {... 'style' in this.props ? {style: this.props.style} : {}}>
|
||||
{this.props.button
|
||||
{('button' in this.props) && this.props.button != 'text'
|
||||
? <span className="button__content">{content}</span>
|
||||
: content}
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue