Fix "cancel follow request" button having unreadable text in web UI (#11521)

Fix #11478
This commit is contained in:
Eugen Rochko authored and GitHub committed 2019-08-08 08:56:55 +02:00
1 parent f51c7c105f
commit e823b49214
2 files changed
+4 -1

No files matched your search

@@ -12,6 +12,7 @@ export default class Button extends React.PureComponent {
secondary: PropTypes.bool,
size: PropTypes.number,
className: PropTypes.string,
title: PropTypes.string,
style: PropTypes.object,
children: PropTypes.node,
};
@@ -54,6 +55,7 @@ export default class Button extends React.PureComponent {
onClick={this.handleClick}
ref={this.setRef}
style={style}
title={this.props.title}
>
{this.props.text || this.props.children}
</button>