0
0
Fork 0

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

Fix #11478
This commit is contained in:
Eugen Rochko 2019-08-08 08:56:55 +02:00 committed by GitHub
parent f51c7c105f
commit e823b49214
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -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>