Skip to content

Commit 8fbeed2

Browse files
committed
Improve MUI theme for autocomplete component
1 parent 5a12b48 commit 8fbeed2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/mui.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,18 @@ export function getMuiDsfrThemeOptions(params: {
199199
}
200200
}
201201
},
202+
"MuiAutocomplete": {
203+
"styleOverrides": {
204+
"option": {
205+
"border": "1px solid transparent",
206+
"&.Mui-focusVisible": {
207+
"backgroundColor":
208+
decisions.background.contrast.grey.default + " !important",
209+
"border": `1px solid ${decisions.border.active.blueFrance.default}`
210+
}
211+
}
212+
}
213+
},
202214
...(() => {
203215
const nonTypedMuiComponents = {
204216
"MuiDataGrid": {

0 commit comments

Comments
 (0)