diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-07 15:48:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 15:48:46 +0100 |
commit | 622f603ac73e40a9e41c254fa90079eeecfe1e02 (patch) | |
tree | 341600cef0e3ff5687bf1e19c34e57f324e79eb3 /app | |
parent | 1e1289b024052ed47c95e145eb34909cb175ce30 (diff) |
Add aria-expanded to content warning toggle button (#19975)
Fixes #19920
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/components/status_content.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/status_content.js b/app/javascript/mastodon/components/status_content.js index 3e3ba7d0f..139e8ed16 100644 --- a/app/javascript/mastodon/components/status_content.js +++ b/app/javascript/mastodon/components/status_content.js @@ -258,7 +258,7 @@ class StatusContent extends React.PureComponent { <p style={{ marginBottom: hidden && status.get('mentions').isEmpty() ? '0px' : null }}> <span dangerouslySetInnerHTML={spoilerContent} className='translate' lang={lang} /> {' '} - <button tabIndex='0' className={`status__content__spoiler-link ${hidden ? 'status__content__spoiler-link--show-more' : 'status__content__spoiler-link--show-less'}`} onClick={this.handleSpoilerClick}>{toggleText}</button> + <button type='button' className={`status__content__spoiler-link ${hidden ? 'status__content__spoiler-link--show-more' : 'status__content__spoiler-link--show-less'}`} onClick={this.handleSpoilerClick} aria-expanded={!hidden}>{toggleText}</button> </p> {mentionsPlaceholder} |