diff --git a/src/lib/components/RoundedIcon/RoundedIcon.js b/src/lib/components/RoundedIcon/RoundedIcon.js index a13a451e..43d715a8 100644 --- a/src/lib/components/RoundedIcon/RoundedIcon.js +++ b/src/lib/components/RoundedIcon/RoundedIcon.js @@ -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 (
- diff --git a/src/lib/components/RoundedIcon/roundedIcon.scss b/src/lib/components/RoundedIcon/roundedIcon.scss index b73d5a86..5f1445ae 100644 --- a/src/lib/components/RoundedIcon/roundedIcon.scss +++ b/src/lib/components/RoundedIcon/roundedIcon.scss @@ -41,5 +41,17 @@ opacity: 1; } } + + &-disabled { + path { + fill: $spunPearl; + } + + &:hover { + &::before { + opacity: 0; + } + } + } } }