[Glitch] Add lang
attribute to media and poll options
Port d3eefead30
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
committed by
Claire
parent
276c1d32d6
commit
0e476f3c4f
@@ -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
|
||||
|
Reference in New Issue
Block a user