Skip to content

Commit 12dac5b

Browse files
[docs] Use () when referencing functions
1 parent ca63707 commit 12dac5b

File tree

16 files changed

+22
-22
lines changed

16 files changed

+22
-22
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ A big thanks to the 11 contributors who made this release possible.
358358

359359
360360

361-
- Fix `createTheme` with just color schemes (#43518) @siriwatknp
361+
- Fix `createTheme()` with just color schemes (#43518) @siriwatknp
362362
- [Menu,Popover] Fix Backdrop props descriptions (#43503) @Michael-Hutchinson
363363
- [MenuList] Do not react to an event with modifier key pressed (#43505) @MateuszGroth
364364

CHANGELOG.old.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5909,7 +5909,7 @@ A big thanks to the 15 contributors who made this release possible. Here are som
59095909
- [docs] Fix en-US format in the Skeleton demo (#33699) @husseinsaad98
59105910
- [docs] Update module reference for `usePagination` (#33675) @fullstackzach
59115911
- [docs] Fix code examples in `styled` API vs `sx` prop docs (#33665) @ZeeshanTamboli
5912-
- [docs][system] Throw an informative error when `theme.vars` is used in `createTheme` and mention this in the theming docs (#33619) @hbjORbj
5912+
- [docs][system] Throw an informative error when `theme.vars` is used in `createTheme()` and mention this in the theming docs (#33619) @hbjORbj
59135913

59145914
### Core
59155915

@@ -10448,7 +10448,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
1044810448
}
1044910449
```
1045010450

10451-
- [theme] Rename `createMuiTheme` to `createTheme` (#25992) @m4theushw
10451+
- [theme] Rename `createMuiTheme()` to `createTheme()` (#25992) @m4theushw
1045210452

1045310453
Developers only need one theme in their application. A prefix would suggest a second theme is needed. It's not the case. `createMuiTheme` will be removed in v6.
1045410454

docs/data/material/customization/css-theme-variables/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ In the example below, all the components inside the `div` will always be dark:
272272

273273
## Disabling CSS color scheme
274274

275-
By default, `createTheme` attaches a [CSS `color-scheme` property](https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme) based on the palette mode.
275+
By default, `createTheme()` attaches a [CSS `color-scheme` property](https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme) based on the palette mode.
276276
You can disable this by setting `disableCssColorScheme` to `true`:
277277

278278
```js

docs/data/material/customization/dark-mode/dark-mode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Dark mode only
66

7-
You can make your application use the dark theme as the default—regardless of the user's preference—by adding `mode: 'dark'` to the `createTheme` helper:
7+
You can make your application use the dark theme as the default—regardless of the user's preference—by adding `mode: 'dark'` to the `createTheme()` helper:
88

99
```js
1010
import { ThemeProvider, createTheme } from '@mui/material/styles';
@@ -26,7 +26,7 @@ export default function App() {
2626
}
2727
```
2828

29-
Adding `mode: 'dark'` to the `createTheme` helper modifies several palette values, as shown in the following demo:
29+
Adding `mode: 'dark'` to the `createTheme()` helper modifies several palette values, as shown in the following demo:
3030

3131
{{"demo": "DarkTheme.js", "bg": "inline", "hideToolbar": true}}
3232

docs/data/material/customization/default-theme/default-theme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<p class="description">This tree view allows you to explore how the theme object looks like with the default values.</p>
44

55
If you want to learn more about how the theme is assembled, take a look at [`material-ui/style/createTheme.ts`](https://github.com/mui/material-ui/blob/-/packages/mui-material/src/styles/createTheme.ts),
6-
and the related imports which `createTheme` uses.
6+
and the related imports which `createTheme()` uses.
77

88
You can play with the documentation theme object in your browser console,
99
as the `theme` variable is exposed on all the documentation pages.

docs/data/material/customization/palette/CustomColor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ declare module '@mui/material/styles' {
1818
neutral: Palette['primary'];
1919
}
2020

21-
// allow configuration using `createTheme`
21+
// allow configuration using `createTheme()`
2222
interface PaletteOptions {
2323
neutral?: PaletteOptions['primary'];
2424
}

docs/data/material/customization/right-to-left/right-to-left.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ You must apply the `dir` attribute directly to these components if it's not glob
4848

4949
### 2. Set the theme direction
5050

51-
Use the `createTheme` API to set the theme direction to `'rtl'`:
51+
Use the `createTheme()` API to set the theme direction to `'rtl'`:
5252

5353
```js
5454
import { createTheme } from '@mui/material/styles';

docs/data/material/customization/theming/CustomStyles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ declare module '@mui/material/styles' {
99
danger: string;
1010
};
1111
}
12-
// allow configuration using `createTheme`
12+
// allow configuration using `createTheme()`
1313
interface ThemeOptions {
1414
status?: {
1515
danger?: string;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ declare module '@mui/material/styles' {
6767
danger: string;
6868
};
6969
}
70-
// allow configuration using `createTheme`
70+
// allow configuration using `createTheme()`
7171
interface ThemeOptions {
7272
status?: {
7373
danger?: string;
@@ -159,8 +159,8 @@ Generate a theme base on the options received. Then, pass it as a prop to [`Them
159159
2. `...args` (_object[]_): Deep merge the arguments with the about to be returned theme.
160160

161161
:::warning
162-
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.
162+
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.
164164
:::
165165

166166
```js

docs/data/material/customization/typography/typography.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ declare module '@mui/material/styles' {
285285
poster: React.CSSProperties;
286286
}
287287

288-
// allow configuration using `createTheme`
288+
// allow configuration using `createTheme()`
289289
interface TypographyVariantsOptions {
290290
poster?: React.CSSProperties;
291291
}

0 commit comments

Comments
 (0)