Simplify the DOM and CSS of ColorIcon component
[MAILPOET-4418]
This commit is contained in:
@@ -35,21 +35,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mailpoet-automation-colored-icon {
|
.mailpoet-automation-colored-icon {
|
||||||
|
border-radius: 50%;
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.mailpoet-automation-colored-icon-background {
|
|
||||||
border-radius: 50%;
|
|
||||||
height: 100%;
|
|
||||||
left: 0;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
svg {
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -19,12 +19,9 @@ export function ColoredIcon({
|
|||||||
style={{
|
style={{
|
||||||
width: iconProps.width,
|
width: iconProps.width,
|
||||||
height: iconProps.height,
|
height: iconProps.height,
|
||||||
|
backgroundColor: background,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
className="mailpoet-automation-colored-icon-background"
|
|
||||||
style={{ backgroundColor: background }}
|
|
||||||
/>
|
|
||||||
<Icon color={foreground} {...iconProps} />
|
<Icon color={foreground} {...iconProps} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user