diff --git a/src/app/ItemPage.js b/src/app/ItemPage.js index 0e8a173..5ede8a0 100644 --- a/src/app/ItemPage.js +++ b/src/app/ItemPage.js @@ -980,12 +980,19 @@ function HTML5Badge({ usesHTML5, isLoading }) { } function HTML5BadgeLayout({ children, tooltipLabel, ...props }) { + const [isHovered, setIsHovered] = React.useState(false); + const [isFocused, setIsFocused] = React.useState(false); + return ( setIsHovered(true)} + onMouseLeave={() => setIsHovered(false)} + onFocus={() => setIsFocused(true)} + onBlur={() => setIsFocused(false)} {...props} > {children}