Skip to content

Commit 3fdcb91

Browse files
satendra03satendra-configuralmapache-salvajeZeeshanTamboli
authored
[docs] Clarify createTheme warning for future compatibility (#46476)
Signed-off-by: Satendra Kumar Parteti <[email protected]> Co-authored-by: satendra-configural <[email protected]> Co-authored-by: mapache-salvaje <[email protected]> Co-authored-by: ZeeshanTamboli <[email protected]>
1 parent e01c4df commit 3fdcb91

File tree

1 file changed

+2
-1
lines changed
  • docs/data/material/customization/theming

1 file changed

+2
-1
lines changed

docs/data/material/customization/theming/theming.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ Generate a theme base on the options received. Then, pass it as a prop to [`Them
160160

161161
:::warning
162162
Only the first argument (`options`) is processed by the `createTheme()` function.
163-
If you want to actually merge two themes' options and create a new one based on them, you may want to deep merge the two options and provide them as a first argument to the `createTheme()` function.
163+
While passing multiple arguments currently works for backward compatibility, this behavior may be removed in future versions.
164+
To ensure your code remains forward-compatible, you should manually deep merge the theme objects and pass the result as a single object to `createTheme()`.
164165
:::
165166

166167
```js

0 commit comments

Comments
 (0)