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
|
@ -6,6 +6,7 @@ export default class GIFV extends React.PureComponent {
|
|||
static propTypes = {
|
||||
src: PropTypes.string.isRequired,
|
||||
alt: PropTypes.string,
|
||||
lang: PropTypes.string,
|
||||
width: PropTypes.number,
|
||||
height: PropTypes.number,
|
||||
onClick: PropTypes.func,
|
||||
|
@ -35,7 +36,7 @@ export default class GIFV extends React.PureComponent {
|
|||
};
|
||||
|
||||
render () {
|
||||
const { src, width, height, alt } = this.props;
|
||||
const { src, width, height, alt, lang } = this.props;
|
||||
const { loading } = this.state;
|
||||
|
||||
return (
|
||||
|
@ -48,6 +49,7 @@ export default class GIFV extends React.PureComponent {
|
|||
tabIndex='0'
|
||||
aria-label={alt}
|
||||
title={alt}
|
||||
lang={lang}
|
||||
onClick={this.handleClick}
|
||||
/>
|
||||
)}
|
||||
|
@ -58,6 +60,7 @@ export default class GIFV extends React.PureComponent {
|
|||
tabIndex='0'
|
||||
aria-label={alt}
|
||||
title={alt}
|
||||
lang={lang}
|
||||
muted
|
||||
loop
|
||||
autoPlay
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue