Skip to content

Commit

Permalink
Add aria-hidden to content warning field when dimmed so that it is no…
Browse files Browse the repository at this point in the history
…t confusing to screen reader users (mastodon#22568)
  • Loading branch information
hs4man21 authored and Nonexistent committed Jan 12, 2023
1 parent 0877218 commit 9f82389
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -225,7 +225,7 @@ class ComposeForm extends ImmutablePureComponent {

<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
placeholder={intl.formatMessage(messages.spoiler_placeholder)}
value={this.props.spoilerText}
Expand Down

0 comments on commit 9f82389

Please sign in to comment.