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
				
			
		| 
						 | 
				
			
			@ -217,7 +217,7 @@ class ComposeForm extends ImmutablePureComponent {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    return (
 | 
			
		||||
      <div className='compose-form'>
 | 
			
		||||
      <form className='compose-form'>
 | 
			
		||||
        <WarningContainer />
 | 
			
		||||
 | 
			
		||||
        <ReplyIndicatorContainer />
 | 
			
		||||
| 
						 | 
				
			
			@ -279,10 +279,16 @@ class ComposeForm extends ImmutablePureComponent {
 | 
			
		|||
 | 
			
		||||
        <div className='compose-form__publish'>
 | 
			
		||||
          <div className='compose-form__publish-button-wrapper'>
 | 
			
		||||
            <Button text={publishText} onClick={this.handleSubmit} disabled={!this.canSubmit()} block />
 | 
			
		||||
            <Button
 | 
			
		||||
              type="submit"
 | 
			
		||||
              text={publishText}
 | 
			
		||||
              onClick={this.handleSubmit}
 | 
			
		||||
              disabled={!this.canSubmit()}
 | 
			
		||||
              block
 | 
			
		||||
            />
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      </form>
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue