Skip to content

Commit 8e96920

Browse files
authored
Merge pull request #1151 from FaheemOnHub/update/feedback/orgColor
add: Feedback wrapper should be organisation based.
2 parents 01ac203 + 32a47db commit 8e96920

File tree

4 files changed

+16
-22
lines changed

4 files changed

+16
-22
lines changed

src/custom/Feedback/style.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Box, Button, Checkbox, styled } from '@mui/material';
22
import {} from '../../constants/constants';
33
import {
44
BLACK,
5-
BUTTON_MODAL,
65
CARIBBEAN_GREEN,
76
CHINESE_SILVER,
87
CULTURED,
@@ -150,7 +149,7 @@ export const FeedbackSubmitButton = styled(Button)<SubmitProp>(({ isOpen }) => (
150149
}));
151150

152151
export const FeedbackButton = styled(Button)<RenderPositionType>(({ theme, renderPosition }) => ({
153-
backgroundColor: BUTTON_MODAL,
152+
backgroundColor: theme.palette.interactive.primary,
154153
color: CULTURED,
155154
borderRadius: '5px',
156155
padding: '10px 20px',
@@ -159,7 +158,7 @@ export const FeedbackButton = styled(Button)<RenderPositionType>(({ theme, rende
159158
position: 'fixed',
160159
...positionMap[renderPosition],
161160
'&:hover': {
162-
backgroundColor: theme.palette.mode === 'dark' ? BLACK : '#213A45'
161+
boxShadow: theme.shadows[4]
163162
}
164163
}));
165164

@@ -250,14 +249,8 @@ export const FeedbackOptionButton = styled(Button)<FeedbackMessageProps>(({ them
250249
padding: '0rem',
251250
borderRadius: '0px',
252251
flexDirection: 'column',
253-
borderBottom: isOpen ? `2px solid ${KEPPEL}` : '',
254-
background: isOpen
255-
? theme.palette.mode === 'dark'
256-
? BLACK
257-
: SNOW_WHITE
258-
: theme.palette.mode === 'dark'
259-
? DARK_JUNGLE_GREEN
260-
: DARK_SLATE_GRAY,
252+
borderBottom: isOpen ? `2px solid ${theme.palette.interactive.primary}` : '',
253+
background: isOpen ? SNOW_WHITE : theme.palette.navigation.secondary,
261254
color: isOpen
262255
? theme.palette.mode === 'dark'
263256
? SNOW_WHITE

src/custom/ModalCard/style.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,25 @@ export const ModalWrapper = styled('div')(() => ({
1111
borderRadius: '5px'
1212
}));
1313

14-
export const ButtonContainer = styled('div')(() => ({
14+
export const ButtonContainer = styled('div')(({ theme }) => ({
1515
padding: '1.25rem 1rem',
1616
display: 'flex',
1717
justifyContent: 'flex-end',
1818

19-
background: 'linear-gradient(90deg, #3B687B 0%, #507D90 100%)',
20-
boxShadow: 'inset 0px 3px 5px 0px rgba(0,0,0,0.25)',
19+
background: theme.palette.surface.tint,
2120
position: 'relative',
2221
zIndex: '100'
2322
}));
2423

2524
export const HeaderTypography = styled(Typography)({
2625
fontSize: '18px'
2726
});
28-
export const HeaderModal = styled('div')(() => ({
27+
export const HeaderModal = styled('div')(({ theme }) => ({
2928
display: 'flex',
3029
borderRadius: '5px 5px 0px 0px',
3130
justifyContent: 'space-between',
3231
padding: '11px 16px',
3332
height: '52px',
3433
fill: WHITE,
35-
boxShadow: 'inset 0px -1px 3px 0px rgba(0,0,0,0.2)',
36-
background: 'linear-gradient(90deg, #3B687B 0%, #507D90 100%)'
34+
background: theme.palette.surface.tint
3735
}));

src/icons/Calender/CalenderIcon.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import { FC } from 'react';
22
import { KEPPEL_GREEN_FILL } from '../../constants/constants';
33
import { IconProps } from '../types';
4+
import { useTheme } from './../../theme/index';
45

56
const CalenderIcon: FC<IconProps> = ({ width, height, ...props }) => {
7+
const theme = useTheme();
68
return (
79
<svg
810
width={width}
@@ -18,7 +20,7 @@ const CalenderIcon: FC<IconProps> = ({ width, height, ...props }) => {
1820
<path d="M11 13H4V15H11V13Z" />
1921
<path
2022
d="M15.256 20V17.744H13V16.244H15.256V14H16.756V16.244H19V17.744H16.756V20H15.256Z"
21-
fill={props.stroke || KEPPEL_GREEN_FILL}
23+
fill={theme.palette.interactive.primary}
2224
/>
2325
</svg>
2426
);

src/icons/Idea/IdeaIcon.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { FC } from 'react';
22
import { DEFAULT_HEIGHT, DEFAULT_WIDTH, KEPPEL_GREEN_FILL } from '../../constants/constants';
33
import { IconProps } from '../types';
4-
4+
import { useTheme } from './../../theme/index';
55
const IdeaIcon: FC<IconProps> = ({ width = DEFAULT_WIDTH, height = DEFAULT_HEIGHT, ...props }) => {
6+
const theme = useTheme();
67
return (
78
<svg
89
width={width}
@@ -16,15 +17,15 @@ const IdeaIcon: FC<IconProps> = ({ width = DEFAULT_WIDTH, height = DEFAULT_HEIGH
1617
<path d="M7.49634 0C3.81658 0 0.833008 3.0072 0.833008 6.71664C0.833008 7.938 1.17348 9.07344 1.72134 10.0702C3.35777 13.0418 3.7911 14.7106 4.05801 16.3255C4.28206 17.6794 4.59206 17.9938 5.60658 17.9938C6.03801 17.9938 6.74444 17.9938 7.49634 17.9938C8.24825 17.9938 8.95467 17.9938 9.38586 17.9938C10.4009 17.9938 10.7106 17.6789 10.9347 16.3255C11.2016 14.7106 11.6351 13.0416 13.2716 10.0702C13.8197 9.07368 14.1597 7.938 14.1597 6.71664C14.1599 3.0072 11.1763 0 7.49634 0Z" />
1718
<path
1819
d="M9.87735 18.4805H5.11544C4.9183 18.4805 4.7583 18.6415 4.7583 18.8405V19.0805C4.7583 19.2794 4.9183 19.4405 5.11544 19.4405H9.87735C10.0745 19.4405 10.2345 19.2794 10.2345 19.0805V18.8405C10.2345 18.6415 10.0745 18.4805 9.87735 18.4805Z"
19-
fill={props.stroke || KEPPEL_GREEN_FILL}
20+
fill={theme.palette.interactive.primary}
2021
/>
2122
<path
2223
d="M9.87735 19.9199H5.11544C4.9183 19.9199 4.7583 20.081 4.7583 20.2799V20.5199C4.7583 20.7189 4.9183 20.8799 5.11544 20.8799H9.87735C10.0745 20.8799 10.2345 20.7189 10.2345 20.5199V20.2799C10.2345 20.081 10.0745 19.9199 9.87735 19.9199Z"
23-
fill={props.stroke || KEPPEL_GREEN_FILL}
24+
fill={theme.palette.interactive.primary}
2425
/>
2526
<path
2627
d="M9.87735 21.3604H5.11544C4.9183 21.3604 4.7583 21.5214 4.7583 21.7204V21.9604C4.7583 22.1593 4.9183 22.3204 5.11544 22.3204H9.87735C10.0745 22.3204 10.2345 22.1593 10.2345 21.9604V21.7204C10.2345 21.5214 10.0745 21.3604 9.87735 21.3604Z"
27-
fill={props.stroke || KEPPEL_GREEN_FILL}
28+
fill={theme.palette.interactive.primary}
2829
/>
2930
<path d="M5.71045 22.7998H9.28188C9.28188 23.5198 8.3295 23.9998 7.49616 23.9998C6.66283 23.9998 5.71045 23.5198 5.71045 22.7998Z" />
3031
</svg>

0 commit comments

Comments
 (0)