diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-08 08:56:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-08 08:56:55 +0200 |
commit | e823b492147a7d7fca7a5a91dacc201fa2064e2c (patch) | |
tree | ff66dc83e7cf0428be54fdb972106cbdb446f8de /app/javascript/mastodon/components/button.js | |
parent | f51c7c105f1d04520656c1235f8a5f58d256fd0e (diff) |
Fix "cancel follow request" button having unreadable text in web UI (#11521)
Fix #11478
Diffstat (limited to 'app/javascript/mastodon/components/button.js')
-rw-r--r-- | app/javascript/mastodon/components/button.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/mastodon/components/button.js b/app/javascript/mastodon/components/button.js index 51e2e6a7a..eb8dd7dc8 100644 --- a/app/javascript/mastodon/components/button.js +++ b/app/javascript/mastodon/components/button.js @@ -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> |