[Glitch] Remove redundant title attribute

Port c40ab43dc7 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
pull/2867/head
Christian Schmidt 2024-10-04 18:23:05 +02:00 committed by Claire
parent 7b40f14452
commit c37daa11f2
1 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ const ColumnLink = ({ icon, activeIcon, iconComponent, activeIconComponent, text
if (href) { if (href) {
return ( return (
<a href={href} className={className} data-method={method} title={text} {...other}> <a href={href} className={className} data-method={method} {...other}>
{active ? activeIconElement : iconElement} {active ? activeIconElement : iconElement}
<span>{text}</span> <span>{text}</span>
{badgeElement} {badgeElement}
@ -23,7 +23,7 @@ const ColumnLink = ({ icon, activeIcon, iconComponent, activeIconComponent, text
); );
} else if (to) { } else if (to) {
return ( return (
<NavLink to={to} className={className} title={text} exact {...other}> <NavLink to={to} className={className} exact {...other}>
{active ? activeIconElement : iconElement} {active ? activeIconElement : iconElement}
<span>{text}</span> <span>{text}</span>
{badgeElement} {badgeElement}
@ -37,7 +37,7 @@ const ColumnLink = ({ icon, activeIcon, iconComponent, activeIconComponent, text
}; };
return ( return (
// eslint-disable-next-line jsx-a11y/anchor-is-valid -- intentional to have the same look and feel as other menu items // eslint-disable-next-line jsx-a11y/anchor-is-valid -- intentional to have the same look and feel as other menu items
<a href='#' onClick={onClick && handleOnClick} className={className} title={text} {...other} tabIndex={0}> <a href='#' onClick={onClick && handleOnClick} className={className} {...other} tabIndex={0}>
{iconElement} {iconElement}
<span>{text}</span> <span>{text}</span>
{badgeElement} {badgeElement}