@@ -173,17 +173,21 @@ export const ModalFooter: React.FC<ModalFooterProps> = ({ helpText, children, va
173
173
export const ModalButtonPrimary : React . FC = styled ( ContainedButton ) ( ( { theme } ) => ( {
174
174
backgroundColor : theme . palette . background . brand ?. default ,
175
175
color : theme . palette . text . constant ?. white ,
176
+ '&:hover' : {
177
+ background : theme . palette . background . brand ?. hover
178
+ } ,
176
179
'&.MuiButton-contained.Mui-disabled' : {
177
- color : theme . palette . text . disabled ,
178
- backgroundColor : theme . palette . primary . disabled
180
+ color : theme . palette . text . constant ?. disabled ,
181
+ backgroundColor : theme . palette . background . constant ? .disabled
179
182
}
180
183
} ) ) ;
181
184
182
185
// ModalButtonSecondary
183
186
export const ModalButtonSecondary = styled ( OutlinedButton ) ( ( { theme } ) => ( {
184
187
'&.MuiButton-outlined' : {
185
- border : `1px solid ${ theme . palette . common . white } ` ,
188
+ border : `1px solid ${ theme . palette . background . constant ? .white } ` ,
186
189
color : theme . palette . text . constant ?. white ,
190
+ backgroundColor : 'transparent' ,
187
191
'&:hover' : {
188
192
background : 'transparent' ,
189
193
color : theme . palette . text . constant ?. white
@@ -192,7 +196,7 @@ export const ModalButtonSecondary = styled(OutlinedButton)(({ theme }) => ({
192
196
'&.MuiButton-outlined.Mui-disabled' : {
193
197
color : theme . palette . text . disabled ,
194
198
border : 'none' ,
195
- backgroundColor : theme . palette . secondary . disabled
199
+ backgroundColor : theme . palette . background . brand ? .disabled
196
200
}
197
201
} ) ) ;
198
202
@@ -204,5 +208,8 @@ export const ModalButtonTertiary = styled(TextButton)(({ theme }) => ({
204
208
// ModalButtonDanger
205
209
export const ModalButtonDanger = styled ( ContainedButton ) ( ( { theme } ) => ( {
206
210
backgroundColor : theme . palette . background . error ?. default ,
207
- color : theme . palette . text . constant ?. white
211
+ color : theme . palette . text . constant ?. white ,
212
+ '&:hover' : {
213
+ background : theme . palette . background . error ?. hover
214
+ }
208
215
} ) ) ;
0 commit comments