Skip to content

Commit

Permalink
[Glitch] Remove redundant title attribute
Browse files Browse the repository at this point in the history
Port c40ab43 to glitch-soc

Signed-off-by: Claire <[email protected]>
  • Loading branch information
c960657 authored and ClearlyClaire committed Oct 6, 2024
1 parent 7b40f14 commit c37daa1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ const ColumnLink = ({ icon, activeIcon, iconComponent, activeIconComponent, text

if (href) {
return (
<a href={href} className={className} data-method={method} title={text} {...other}>
<a href={href} className={className} data-method={method} {...other}>
{active ? activeIconElement : iconElement}
<span>{text}</span>
{badgeElement}
</a>
);
} else if (to) {
return (
<NavLink to={to} className={className} title={text} exact {...other}>
<NavLink to={to} className={className} exact {...other}>
{active ? activeIconElement : iconElement}
<span>{text}</span>
{badgeElement}
Expand All @@ -37,7 +37,7 @@ const ColumnLink = ({ icon, activeIcon, iconComponent, activeIconComponent, text
};
return (
// 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}
<span>{text}</span>
{badgeElement}
Expand Down

0 comments on commit c37daa1

Please sign in to comment.