Skip to content

Commit 79b641f

Browse files
committed
fix
1 parent e3cfe02 commit 79b641f

File tree

3 files changed

+8
-39
lines changed

3 files changed

+8
-39
lines changed

src/components/Ui/Infobox/Infobox.module.css

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
align-items: center;
44
border-radius: 12px;
55
padding: 1rem;
6-
margin: 1rem 0;
6+
margin: 0;
7+
margin-bottom: 2rem;
78
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
89
overflow: hidden;
910
}
@@ -12,8 +13,8 @@
1213
flex-shrink: 0;
1314
width: 1.5rem;
1415
height: 1.5rem;
15-
color: #fff;
16-
margin-right: 1.25rem;
16+
color: var(--sapBackgroundColor);
17+
margin-right: 1rem;
1718
}
1819

1920
.content {
@@ -62,39 +63,6 @@
6263
}
6364

6465
.content > * {
65-
color: #fff;
66+
color: var(--sapBackgroundColor);
6667
line-height: 1.2rem;
6768
}
68-
69-
.dark-mode {
70-
.content > * {
71-
color: #000;
72-
}
73-
.icon {
74-
color: #000;
75-
}
76-
}
77-
78-
/* .variant-normal {
79-
border-color: var(--sapNeutralTextColor);
80-
background-color: var(--sapNeutralBackground);
81-
color: var(--sapNeutralTextColor);
82-
}
83-
84-
.variant-success {
85-
border-color: var(--sapPositiveTextColor);
86-
background-color: var(--sapPositiveBackground);
87-
color: var(--sapPositiveTextColor);
88-
}
89-
90-
.variant-warning {
91-
border-color: var(--sapCriticalTextColor);
92-
background-color: var(--sapCriticalBackground);
93-
color: var(--sapCriticalTextColor);
94-
}
95-
96-
.variant-danger {
97-
border-color: var(--sapNegativeTextColor);
98-
background-color: var(--sapErrorBackground);
99-
color: var(--sapNegativeTextColor);
100-
} */

src/components/Ui/Infobox/Infobox.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Icon } from '@ui5/webcomponents-react';
44

55
import styles from './Infobox.module.css';
66
import { useTheme } from '../../../hooks/useTheme';
7+
import FadeVisibility from '../FadeVisibility/FadeVisibility';
78

89
interface LabelProps {
910
id?: string;

src/components/Wizards/CreateManagedControlPlane/CreateManagedControlPlaneWizardContainer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,8 @@ export const CreateManagedControlPlaneWizardContainer: FC<CreateManagedControlPl
558558
/>
559559
</div>
560560
{isDuplicateMode && (
561-
<div style={{ width: '50%', paddingRight: '1rem', paddingTop: '1rem' }}>
562-
<Infobox size={'sm'} variant={'warning'}>
561+
<div style={{ width: '50%', paddingRight: '1rem', paddingTop: '2rem' }}>
562+
<Infobox size={'sm'}>
563563
<Text>
564564
<Trans
565565
i18nKey="editMCP.duplicatingMCPInfo1"

0 commit comments

Comments
 (0)