0
Fork 0
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:
Sodbileg Gansukh 2023-11-21 09:47:52 +08:00
parent 63f0265e28
commit 6316680127

View file

@ -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;