mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Hide SVG icon titles globally
no issues - when svg icons include title tag, the titles are displayed on hover - this adds a global tailwind class pointer-events-none to the Icon component to hide the titles globally
This commit is contained in:
parent
63f0265e28
commit
6316680127
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ const Icon: React.FC<IconProps> = ({name, size = 'md', colorClass = '', classNam
|
|||
|
||||
if (SvgComponent) {
|
||||
return (
|
||||
<SvgComponent className={`${styles} ${className}`} />
|
||||
<SvgComponent className={`pointer-events-none ${styles} ${className}`} />
|
||||
);
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Add table
Reference in a new issue