Skip to content

Commit 4c85209

Browse files
authored
Merge pull request #532 from captain-Akshay/master
feat(btn): fix dynamic
2 parents 6797248 + b457921 commit 4c85209

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

src/custom/Feedback/style.tsx

+14-10
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
CHINESE_SILVER,
99
CULTURED,
1010
DARK_JUNGLE_GREEN,
11+
DARK_KEPPEL,
1112
DARK_PRIMARY_COLOR,
1213
DARK_SLATE_GRAY,
1314
KEPPEL,
@@ -61,7 +62,7 @@ const containerPositionMap: Record<
6162
right: '10px'
6263
},
6364
closed: {
64-
bottom: '-42%',
65+
bottom: '-448px',
6566
right: '10px'
6667
}
6768
},
@@ -71,7 +72,7 @@ const containerPositionMap: Record<
7172
left: '10px'
7273
},
7374
closed: {
74-
bottom: '-42%',
75+
bottom: '-448px',
7576
left: '10px'
7677
}
7778
},
@@ -82,7 +83,7 @@ const containerPositionMap: Record<
8283
},
8384
closed: {
8485
top: '0px',
85-
right: '-42%'
86+
right: '-448px'
8687
}
8788
},
8889
'right-middle': {
@@ -93,7 +94,7 @@ const containerPositionMap: Record<
9394
},
9495
closed: {
9596
top: '50%',
96-
right: '-42%',
97+
right: '-448px',
9798
transform: 'translateY(-50%)'
9899
}
99100
},
@@ -104,7 +105,7 @@ const containerPositionMap: Record<
104105
},
105106
closed: {
106107
bottom: '0px',
107-
right: '-42%'
108+
right: '-448px'
108109
}
109110
}
110111
};
@@ -144,7 +145,10 @@ export const FeedbackSubmitButton = styled(Button)<SubmitProp>(({ isOpen }) => (
144145
height: '2.25rem',
145146
textTransform: 'none',
146147
boxShadow: '0px 1px 8px rgba(0, 0, 0, 0.25)',
147-
backgroundColor: isOpen ? buttonDisabled.main : KEPPEL
148+
backgroundColor: isOpen ? buttonDisabled.main : KEPPEL,
149+
'&:hover': {
150+
backgroundColor: DARK_KEPPEL
151+
}
148152
}));
149153

150154
export const FeedbackButton = styled(Button)<RenderPositionType>(({ theme, renderPosition }) => ({
@@ -180,17 +184,17 @@ const positionMap: Record<
180184
},
181185
'right-top': {
182186
top: '8%',
183-
right: '-4%',
187+
right: '-45px',
184188
transform: 'rotate(-90deg)'
185189
},
186190
'right-middle': {
187191
top: '50%',
188-
right: '-6%',
192+
right: '-70px',
189193
transform: 'rotate(-90deg) translateY(-50%)'
190194
},
191195
'right-bottom': {
192-
bottom: '5%',
193-
right: '-4%',
196+
bottom: '10%',
197+
right: '-45px',
194198
transform: 'rotate(-90deg)'
195199
}
196200
};

src/theme/colors/colors.ts

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { alpha } from '@mui/material';
44
* Define the base common colors to derive from
55
*/
66
export const KEPPEL = '#00B39F';
7+
export const DARK_KEPPEL = '#00A18F';
78
export const CARIBBEAN_GREEN = '#00D3A9';
89
export const TEAL_BLUE = '#477E96';
910
export const CHARCOAL = '#3C494F';

0 commit comments

Comments
 (0)