Skip to content

Commit a01b855

Browse files
authored
Fixed issues with ThemedLogo component implementation (#2588)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
1 parent be39cb5 commit a01b855

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

portal-ui/src/screens/Console/Common/Components/AutoColorIcon.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// along with this program. If not, see <http://www.gnu.org/licenses/>.
1616

1717
import React from "react";
18-
import { ThemedLogo } from "mds";
18+
import { Grid, ThemedLogo } from "mds";
1919
import { useSelector } from "react-redux";
2020
import { AppState } from "../../../../store";
2121

@@ -35,14 +35,18 @@ const AutoColorIcon = ({ marginRight, marginTop }: IAutoColorIcon) => {
3535
tinycolor(colorVariants?.backgroundColor || "#fff").getBrightness() <= 128;
3636

3737
return (
38-
<ThemedLogo
39-
style={{
40-
width: 105,
41-
marginRight,
42-
marginTop,
43-
fill: isDark ? "#fff" : "#081C42",
38+
<Grid
39+
sx={{
40+
"& svg": {
41+
width: 105,
42+
marginRight,
43+
marginTop,
44+
fill: isDark ? "#fff" : "#081C42",
45+
},
4446
}}
45-
/>
47+
>
48+
<ThemedLogo />
49+
</Grid>
4650
);
4751
};
4852

portal-ui/src/screens/Console/License/License.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ const License = () => {
227227
display: "flex",
228228
alignItems: "center",
229229

230-
"& .min-icon": {
230+
"& svg": {
231231
width: "83px",
232232
height: "14px",
233-
marginLeft: "5px",
233+
marginLeft: "8px",
234234
marginRight: "5px",
235235
},
236236
}}

0 commit comments

Comments
 (0)