about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-07 15:48:46 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-11-07 20:04:31 +0100
commit2bc22be66cf09ed19eb7fb23b08324882a73b2b9 (patch)
treefd2f30f2cb28a964442cc7b10d8ad8729bd659d2 /app/javascript/flavours/glitch
parentbe7032b9cf5fe0ed3461be4e880503a6d0463623 (diff)
[Glitch] Add aria-expanded to content warning toggle button
Port 622f603ac73e40a9e41c254fa90079eeecfe1e02 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r--app/javascript/flavours/glitch/components/status_content.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/status_content.js b/app/javascript/flavours/glitch/components/status_content.js
index 61788f350..c618cedca 100644
--- a/app/javascript/flavours/glitch/components/status_content.js
+++ b/app/javascript/flavours/glitch/components/status_content.js
@@ -332,7 +332,7 @@ export default class StatusContent extends React.PureComponent {
           >
             <span dangerouslySetInnerHTML={spoilerContent} className='translate' lang={lang} />
             {' '}
-            <button tabIndex='0' className='status__content__spoiler-link' onClick={this.handleSpoilerClick}>
+            <button type='button' className='status__content__spoiler-link' onClick={this.handleSpoilerClick} aria-expanded={!hidden}>
               {toggleText}
             </button>
           </p>