Skip to content

Commit 6895a97

Browse files
author
Sharma
committed
Fixed colors for action buttons
1 parent 04f06ff commit 6895a97

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

packages/react-sdk-components/src/components/infra/ActionButtons/ActionButtons.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,18 @@ interface ActionButtonsProps {
1010
onButtonPress: any;
1111
}
1212

13-
const useStyles = makeStyles(() => ({
13+
const useStyles = makeStyles(theme => ({
1414
divider: {
1515
marginTop: '10px',
1616
marginBottom: '10px'
17+
},
18+
secondaryButton: {
19+
backgroundColor: theme.actionButtons.secondary.backgroundColor,
20+
color: theme.actionButtons.secondary.color
21+
},
22+
primaryButton: {
23+
backgroundColor: theme.actionButtons.primary.backgroundColor,
24+
color: theme.actionButtons.primary.color
1725
}
1826
}));
1927

@@ -36,7 +44,7 @@ export default function ActionButtons(props: ActionButtonsProps) {
3644
{arSecondaryButtons.map(sButton => (
3745
<Grid2 key={sButton.name}>
3846
<Button
39-
// className={classes.secondaryButton}
47+
className={classes.secondaryButton}
4048
color='secondary'
4149
variant='contained'
4250
onClick={() => {
@@ -54,7 +62,7 @@ export default function ActionButtons(props: ActionButtonsProps) {
5462
{arMainButtons.map(mButton => (
5563
<Grid2 key={mButton.name}>
5664
<Button
57-
// className={classes.primaryButton}
65+
className={classes.primaryButton}
5866
color='primary'
5967
variant='contained'
6068
onClick={() => {

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,16 @@ const lightTheme = createTheme({
139139
}
140140
}
141141
},
142+
actionButtons: {
143+
primary: {
144+
backgroundColor: '#cc0f60',
145+
color: '#FFFFFF'
146+
},
147+
secondary: {
148+
backgroundColor: '#3F51B5',
149+
color: '#FFFFFF'
150+
}
151+
},
142152
modal: {
143153
backgroundColor: 'rgba(100, 100, 100, 0.4)',
144154
topColor: 'white'
@@ -196,6 +206,16 @@ const darkTheme = createTheme({
196206
}
197207
}
198208
},
209+
actionButtons: {
210+
primary: {
211+
backgroundColor: '#C70BB5',
212+
color: '#FFFFFF'
213+
},
214+
secondary: {
215+
backgroundColor: '#FFFFFF',
216+
color: '#C70BB5'
217+
}
218+
},
199219
embedded: {
200220
resolutionTextColor: 'darkslategray'
201221
},

0 commit comments

Comments
 (0)