Add missing video descriptions (#8416)
* Pass through video description as necessary. * Add title to video, matching aria-label.
This commit is contained in:
parent
869a3af3c0
commit
ac092d03e7
9 changed files with 9 additions and 3 deletions
|
@ -50,6 +50,7 @@ export default class ExtendedVideoPlayer extends React.PureComponent {
|
|||
role='button'
|
||||
tabIndex='0'
|
||||
aria-label={alt}
|
||||
title={alt}
|
||||
muted={muted}
|
||||
controls={controls}
|
||||
loop={!controls}
|
||||
|
|
|
@ -154,6 +154,7 @@ class Item extends React.PureComponent {
|
|||
<video
|
||||
className='media-gallery__item-gifv-thumbnail'
|
||||
aria-label={attachment.get('description')}
|
||||
title={attachment.get('description')}
|
||||
role='application'
|
||||
src={attachment.get('url')}
|
||||
onClick={this.handleClick}
|
||||
|
|
|
@ -230,6 +230,7 @@ export default class Status extends ImmutablePureComponent {
|
|||
<Component
|
||||
preview={video.get('preview_url')}
|
||||
src={video.get('url')}
|
||||
alt={video.get('description')}
|
||||
width={239}
|
||||
height={110}
|
||||
inline
|
||||
|
|
|
@ -36,6 +36,7 @@ export default class StatusCheckBox extends React.PureComponent {
|
|||
<Component
|
||||
preview={video.get('preview_url')}
|
||||
src={video.get('url')}
|
||||
alt={video.get('description')}
|
||||
width={239}
|
||||
height={110}
|
||||
inline
|
||||
|
|
|
@ -60,6 +60,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
|
|||
<Video
|
||||
preview={video.get('preview_url')}
|
||||
src={video.get('url')}
|
||||
alt={video.get('description')}
|
||||
width={300}
|
||||
height={150}
|
||||
inline
|
||||
|
|
|
@ -315,6 +315,7 @@ export default class Video extends React.PureComponent {
|
|||
role='button'
|
||||
tabIndex='0'
|
||||
aria-label={alt}
|
||||
title={alt}
|
||||
width={width}
|
||||
height={height}
|
||||
onClick={this.togglePlay}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue