Add lang
attribute to media and poll options (#23891)
This commit is contained in:
parent
730bb3e211
commit
d3eefead30
16 changed files with 79 additions and 24 deletions
|
@ -76,6 +76,7 @@ export default class MediaItem extends ImmutablePureComponent {
|
|||
<img
|
||||
src={attachment.get('preview_url') || attachment.getIn(['account', 'avatar_static'])}
|
||||
alt={attachment.get('description')}
|
||||
lang={status.get('language')}
|
||||
onLoad={this.handleImageLoad}
|
||||
/>
|
||||
);
|
||||
|
@ -95,6 +96,7 @@ export default class MediaItem extends ImmutablePureComponent {
|
|||
<img
|
||||
src={attachment.get('preview_url')}
|
||||
alt={attachment.get('description')}
|
||||
lang={status.get('language')}
|
||||
style={{ objectPosition: `${x}% ${y}%` }}
|
||||
onLoad={this.handleImageLoad}
|
||||
/>
|
||||
|
@ -105,6 +107,7 @@ export default class MediaItem extends ImmutablePureComponent {
|
|||
className='media-gallery__item-gifv-thumbnail'
|
||||
aria-label={attachment.get('description')}
|
||||
title={attachment.get('description')}
|
||||
lang={status.get('language')}
|
||||
role='application'
|
||||
src={attachment.get('url')}
|
||||
onMouseEnter={this.handleMouseEnter}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue