diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-06-29 18:27:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 18:27:34 +0200 |
commit | 54ed35f57c55fff639c8192b99fc60ab69c54f06 (patch) | |
tree | 78cee27bfe871569f3ae2e7aa62d847fe9df7046 /app/javascript/flavours/glitch/components/icon_button.js | |
parent | 63f79874b59b3ba28c0f940b9d36ea7aacb44c93 (diff) | |
parent | 485b43ed7e312ab2c3bad446132c57d6a0ce7de4 (diff) |
Merge pull request #1801 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/javascript/flavours/glitch/components/icon_button.js')
-rw-r--r-- | app/javascript/flavours/glitch/components/icon_button.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/components/icon_button.js b/app/javascript/flavours/glitch/components/icon_button.js index 9a05badd0..be2468d68 100644 --- a/app/javascript/flavours/glitch/components/icon_button.js +++ b/app/javascript/flavours/glitch/components/icon_button.js @@ -140,8 +140,16 @@ export default class IconButton extends React.PureComponent { ); if (href) { - contents = ( - <a href={href} target='_blank' rel='noopener noreferrer'> + return ( + <a + href={href} + aria-label={title} + title={title} + target='_blank' + rel='noopener noreferrer' + className={classes} + style={style} + > {contents} </a> ); |