Skip to content

Commit 5bff85b

Browse files
theme file, selectable card and styles changed (#502)
* theme file, selectable card and styles changed --------- Co-authored-by: Siva Rama Krishna <[email protected]>
1 parent f507906 commit 5bff85b

File tree

6 files changed

+21
-29
lines changed

6 files changed

+21
-29
lines changed

packages/react-sdk-components/src/common.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.psdk-root {
2+
background-color: var(--app-form-bg-color);
3+
}
4+
15
.portal-load-error {
26
height: 100vh;
37
width: 100vw;
@@ -37,7 +41,7 @@
3741

3842
.logout-btn:hover {
3943
background: var(--app-warning-color-dark);
40-
color: var(--app-form-color);
44+
color: var(--app-form-bg-color);
4145
}
4246

4347
.portals-list {

packages/react-sdk-components/src/components/field/RadioButtons/RadioButtons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export default function RadioButtons(props: RadioButtonsProps) {
108108
return (
109109
<div>
110110
<h4 style={{ marginTop: 0, marginBottom: 0 }}>{label}</h4>
111-
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(min(30%, 40ch), 1fr))', gridAutoRows: '1fr', gap: '0.5rem' }}>
111+
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(min(200px, 100%), 1fr))', gap: '1rem' }}>
112112
<SelectableCard
113113
hideFieldLabels={hideFieldLabels}
114114
additionalProps={additionalProps}

packages/react-sdk-components/src/components/field/SelectableCard/SelectableCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default function SelectableCard(props) {
9393
alt={image.alt}
9494
style={{
9595
width: '100%',
96-
backgroundColor: 'rgb(233, 238, 243)',
96+
backgroundColor: 'transparent',
9797
aspectRatio: '16 / 9',
9898
maxHeight: '100%',
9999
height: '100%',

packages/react-sdk-components/src/components/infra/MultiStep/MultiStep.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ mat-horizontal-stepper {
213213
}
214214

215215
.psdk-horizontal-step-label {
216-
color: rgba(0, 0, 0, 0.54);
216+
color: var(--text-secondary-color);
217217
display: inline-block;
218218
min-width: 50px;
219219
vertical-align: middle;
@@ -223,7 +223,7 @@ mat-horizontal-stepper {
223223
}
224224

225225
.psdk-horizontal-step-label-selected {
226-
color: rgba(0, 0, 0, 0.87);
226+
color: var(--text-primary-color);
227227
display: inline-block;
228228
min-width: 50px;
229229
vertical-align: middle;
Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
11
/* global styles*/
2-
3-
.psdk-flow-container-top {
4-
max-width: 1400px;
5-
width: 50%;
6-
margin-left: auto;
7-
margin-right: auto;
8-
margin-top: 5%;
9-
margin-bottom: 5%;
10-
padding: 0;
11-
}
12-
.psdk-horizontal-stepper-header-container {
13-
display: none;
14-
margin-bottom: 2rem;
15-
}
16-
172
#pega-part-of-page .psdk-flow-container-top {
183
max-width: 1400px;
194
width: 50%;
@@ -39,7 +24,3 @@
3924
#pega-part-of-page .MuiCardContent-root:last-child {
4025
padding-bottom: 0px !important;
4126
}
42-
43-
#pega-part-of-page img {
44-
background-color: transparent !important;
45-
}

packages/react-sdk-components/src/theme.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const lightThemeColours = {
5353
'--app-warning-color-dark': '#f57c00',
5454

5555
'--app-background-color': 'whitesmoke',
56-
'--app-form-color': 'white',
56+
'--app-form-bg-color': 'white',
5757

5858
/* App Navigation */
5959
'--app-nav-bg': '#262626' /*! default */,
@@ -75,7 +75,10 @@ const lightThemeColours = {
7575
'--selected-step-label-color': 'rgba(0, 0, 0, 0.87)',
7676
'--step-label-color': 'rgba(0, 0, 0, 0.54)',
7777
'--svg-color': 'invert(0%)',
78-
'--secondary-button-text-color': '#ffffff'
78+
'--secondary-button-text-color': '#ffffff',
79+
80+
'--text-primary-color': '#000',
81+
'--text-secondary-color': '#c0c0c0'
7982
}
8083
};
8184
const darkThemeColours = {
@@ -95,7 +98,7 @@ const darkThemeColours = {
9598
'--app-warning-color-dark': '#c68400' /* dark amber */,
9699

97100
'--app-background-color': '#060326' /* main dark background */,
98-
'--app-form-color': '#18132c' /* slightly lighter for forms */,
101+
'--app-form-bg-color': '#23273f' /* slightly lighter for forms */,
99102

100103
/* App Navigation */
101104
'--app-nav-bg': '#18132c' /* navigation background */,
@@ -117,7 +120,10 @@ const darkThemeColours = {
117120
'--selected-step-label-color': 'rgba(0, 0, 0, 0.87)',
118121
'--step-label-color': 'rgba(0, 0, 0, 0.54)',
119122
'--svg-color': 'invert(100%)',
120-
'--secondary-button-text-color': '#1a103c'
123+
'--secondary-button-text-color': '#1a103c',
124+
125+
'--text-primary-color': '#e0e0e0',
126+
'--text-secondary-color': '#c0c0c0'
121127
}
122128
};
123129

@@ -247,7 +253,8 @@ const darkTheme = createTheme({
247253
},
248254
background: {
249255
// default: 'radial-gradient(178.62% 112% at 50% -12%, #0B0F2A 69.96%, #111951 89.19%)',
250-
paper: '#18132c'
256+
// paper: '#18132c'
257+
paper: '#191b2c' // card-bg
251258
},
252259
text: {
253260
primary: '#e0e0e0', // text-light

0 commit comments

Comments
 (0)