Skip to content

Commit cc4fcbe

Browse files
authored
Merge pull request #7727 from mediafreakch/patch-2
Fix global theme overrides example in docs
2 parents 7f8e1c8 + cdc5cf5 commit cc4fcbe

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/Theming.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,14 @@ const theme = {
215215
components: {
216216
...defaultTheme.components,
217217
RaDatagrid: {
218-
root: {
219-
backgroundColor: "Lavender",
220-
"& .RaDatagrid-headerCell": {
221-
backgroundColor: "MistyRose",
222-
},
223-
}
218+
styleOverrides: {
219+
root: {
220+
backgroundColor: "Lavender",
221+
"& .RaDatagrid-headerCell": {
222+
backgroundColor: "MistyRose",
223+
},
224+
}
225+
}
224226
}
225227
}
226228
};

0 commit comments

Comments
 (0)