Add aria-hidden to content warning field when dimmed so that it is not confusing to screen reader users (#22568)

lolsob-rspec
Holden Foreman 2023-01-05 07:39:58 -05:00 committed by GitHub
parent 424e32ef32
commit 4515ec2696
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ class ComposeForm extends ImmutablePureComponent {
<ReplyIndicatorContainer /> <ReplyIndicatorContainer />
<div className={`spoiler-input ${this.props.spoiler ? 'spoiler-input--visible' : ''}`} ref={this.setRef}> <div className={`spoiler-input ${this.props.spoiler ? 'spoiler-input--visible' : ''}`} ref={this.setRef} aria-hidden={!this.props.spoiler}>
<AutosuggestInput <AutosuggestInput
placeholder={intl.formatMessage(messages.spoiler_placeholder)} placeholder={intl.formatMessage(messages.spoiler_placeholder)}
value={this.props.spoilerText} value={this.props.spoilerText}