Skip to content

Commit

Permalink
Fix [UI] Edit a an artifact tag from the overview tab does not have e…
Browse files Browse the repository at this point in the history
…xit option (#98)
  • Loading branch information
ilan7empest authored Dec 20, 2022
1 parent c2d2743 commit 8b274e4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
20 changes: 5 additions & 15 deletions src/lib/components/RoundedIcon/RoundedIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,18 @@ import TextTooltipTemplate from '../TooltipTemplate/TextTooltipTemplate'
import './roundedIcon.scss'

const RoundedIcon = React.forwardRef(
(
{ children, className, disabled, id, isActive, onClick, tooltipText },
ref
) => {
({ children, className, disabled, id, isActive, onClick, tooltipText }, ref) => {
const wrapperClassNames = classNames('round-icon-cp', className)
const IconClassNames = classNames(
'round-icon-cp__circle',
isActive && 'round-icon-cp__circle-active'
isActive && 'round-icon-cp__circle-active',
disabled && 'round-icon-cp__circle-disabled'
)

return (
<div className={wrapperClassNames} ref={ref}>
<Tooltip
hidden={!tooltipText}
template={<TextTooltipTemplate text={tooltipText} />}
>
<button
onClick={onClick}
disabled={disabled}
id={id}
className={IconClassNames}
>
<Tooltip hidden={!tooltipText} template={<TextTooltipTemplate text={tooltipText} />}>
<button onClick={onClick} disabled={disabled} id={id} className={IconClassNames}>
{children}
</button>
</Tooltip>
Expand Down
12 changes: 12 additions & 0 deletions src/lib/components/RoundedIcon/roundedIcon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,17 @@
opacity: 1;
}
}

&-disabled {
path {
fill: $spunPearl;
}

&:hover {
&::before {
opacity: 0;
}
}
}
}
}

0 comments on commit 8b274e4

Please sign in to comment.