diff --git a/components/JobImage/index.scss b/components/JobImage/index.scss index dd990440..b5b8cef3 100644 --- a/components/JobImage/index.scss +++ b/components/JobImage/index.scss @@ -59,7 +59,8 @@ height: auto; z-index: 10; - &:hover .Accessory svg { + &:hover .Accessory svg, + &.Selected .Accessory svg { fill: var(--button-text-hover); } diff --git a/components/JobImage/index.tsx b/components/JobImage/index.tsx index 670899ea..8902abaa 100644 --- a/components/JobImage/index.tsx +++ b/components/JobImage/index.tsx @@ -8,6 +8,7 @@ import ShieldIcon from '~public/icons/Shield.svg' import ManaturaIcon from '~public/icons/Manatura.svg' import './index.scss' +import classNames from 'classnames' interface Props { job?: Job @@ -53,6 +54,11 @@ const JobImage = ({ const hasAccessory = job && job.accessory const image = {job?.name[locale]} + const classes = classNames({ + JobAccessory: true, + Selected: open, + }) + function handleAccessoryButtonClicked() { setOpen(!open) } @@ -71,7 +77,7 @@ const JobImage = ({ return (