[Glitch] Add aria-expanded to content warning toggle button

Port 622f603ac7 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
rebase/4.0.0rc2^2^2
Claire 2022-11-07 15:48:46 +01:00
parent be7032b9cf
commit 2bc22be66c
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ export default class StatusContent extends React.PureComponent {
> >
<span dangerouslySetInnerHTML={spoilerContent} className='translate' lang={lang} /> <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} {toggleText}
</button> </button>
</p> </p>