mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-15 04:03:06 -05:00
[Glitch] Add aria-expanded to content warning toggle button
Port 622f603ac73e40a9e41c254fa90079eeecfe1e02 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
be7032b9cf
commit
2bc22be66c
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user