A11y: Explicit <form> element around compose area (#19742)
This commit is contained in:
parent
c2170991c7
commit
0165449e3a
2 changed files with 11 additions and 3 deletions
|
@ -6,6 +6,7 @@ export default class Button extends React.PureComponent {
|
|||
|
||||
static propTypes = {
|
||||
text: PropTypes.node,
|
||||
type: PropTypes.string,
|
||||
onClick: PropTypes.func,
|
||||
disabled: PropTypes.bool,
|
||||
block: PropTypes.bool,
|
||||
|
@ -42,6 +43,7 @@ export default class Button extends React.PureComponent {
|
|||
onClick={this.handleClick}
|
||||
ref={this.setRef}
|
||||
title={this.props.title}
|
||||
type={this.props.type}
|
||||
>
|
||||
{this.props.text || this.props.children}
|
||||
</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue