frontend-rw #1
1 changed files with 8 additions and 16 deletions
|
@ -14,14 +14,7 @@ interface IForkAwesomeIcon extends React.HTMLAttributes<HTMLLIElement> {
|
||||||
fixedWidth?: boolean;
|
fixedWidth?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ForkAwesomeIcon: React.FC<IForkAwesomeIcon> = ({ id, className, fixedWidth, ...rest }) => {
|
const ForkAwesomeIcon: React.FC<IForkAwesomeIcon> = ({ id, className, fixedWidth, ...rest }) => (
|
||||||
// Use the Fork Awesome retweet icon, but change its alt
|
|
||||||
// tag. There is a common adblocker rule which hides elements with
|
|
||||||
// alt='retweet' unless the domain is twitter.com. This should
|
|
||||||
// change what screenreaders call it as well.
|
|
||||||
// const alt = (id === 'retweet') ? 'repost' : id;
|
|
||||||
|
|
||||||
return (
|
|
||||||
<i
|
<i
|
||||||
role='img'
|
role='img'
|
||||||
// alt={alt}
|
// alt={alt}
|
||||||
|
@ -29,6 +22,5 @@ const ForkAwesomeIcon: React.FC<IForkAwesomeIcon> = ({ id, className, fixedWidth
|
||||||
{...rest}
|
{...rest}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
|
||||||
|
|
||||||
export { ForkAwesomeIcon as default };
|
export { ForkAwesomeIcon as default };
|
||||||
|
|
Loading…
Reference in a new issue