Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored and aarongarciah committed Oct 22, 2024
1 parent 2988c1e commit 3ba5940
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.old.md
Original file line number Diff line number Diff line change
Expand Up @@ -3301,7 +3301,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
- [docs] Add summary and improve `test_static` CI doc in CONTRIBUTING readme file (#36711) @kriskw1999
- [docs] Update theme customization TypeScript (#35551) @siriwatknp
- [docs] Add Joy Frames X web blocks template (#37203) @siriwatknp
- [docs] Change Base UI `alpha` to `beta` in README (#37228) @ZeeshanTamboli
- [docs] Change Base UI `alpha()` to `beta()` in README (#37228) @ZeeshanTamboli
- [docs] Improve Base UI overview page (#37227) @mnajdova
- [docs] Update Joy + Material guide (#36911) @cherniavskii

Expand Down Expand Up @@ -13019,7 +13019,7 @@ Here are some highlights ✨:
### `@material-ui/[email protected]`

- [TreeView] Fix bundle size link and refactor array spreads (#22992) @joshwooding
- [TreeView] Fix `alpha` color utility instead of deprecated `fade` (#22978) @joshwooding
- [TreeView] Fix `alpha()` color utility instead of deprecated `fade()` (#22978) @joshwooding
- [core] Ship modern bundle (#22814) @eps1lon

### `@material-ui/[email protected]`
Expand Down Expand Up @@ -14927,7 +14927,7 @@ You can expect similar releases like this one in the coming months.

#### Deprecations

- [theme] Deprecate `fade` color utility in favor of `alpha` (#22837) @mnajdova
- [theme] Deprecate `fade()` color utility in favor of `alpha()` (#22837) @mnajdova
- [theme] Deprecate theme.mixins.gutters (#22245) @joshwooding
- [Avatar] Add circular variant (#22090) @eps1lon
- [Badge] Add overlap circular and rectangular (#22076) @eps1lon
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/customization/palette/palette.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const theme = createTheme({
{{"demo": "ManuallyProvideCustomColor.js", "defaultCodeOpen": false}}

If you need to manipulate colors, `@mui/material/styles` provides [a set of utilities](https://github.com/mui/material-ui/blob/master/packages/mui-material/src/styles/index.d.ts#L52-L67) to help with this.
The following example uses the `alpha` and `getContrastRatio` utilities to define tokens using opacity:
The following example uses the `alpha()` and `getContrastRatio()` utilities to define tokens using opacity:

```jsx
import { createTheme, alpha, getContrastRatio } from '@mui/material/styles';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ Nested imports of more than one level are private. For example, you can no longe

### ✅ Rename fade to alpha

`fade` was renamed to `alpha` to better describe its functionality.
`fade()` was renamed to `alpha()` to better describe its functionality.

The previous name caused confusion when the input color already had an alpha value. The helper overrides the alpha value of the color.

Expand Down
2 changes: 1 addition & 1 deletion packages/mui-codemod/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2503,7 +2503,7 @@ You can find more details about this breaking change in [the migration guide](ht
#### `fade-rename-alpha`
Renames the `fade` style utility import and calls to `alpha`.
Renames the `fade` style utility import and calls to `alpha()`.
```diff
-import { fade, lighten } from '@material-ui/core/styles';
Expand Down

0 comments on commit 3ba5940

Please sign in to comment.