forked from chakra-ui/chakra-ui-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔄 Synced file(s) with chakra-ui/chakra-ui (chakra-ui#1497)
- Loading branch information
1 parent
0f7b0b7
commit a93e022
Showing
1 changed file
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
title: Version 2.5.4 | ||
description: | ||
Explore the changelog for Chakra UI version 2.5.4. Learn about the latest | ||
features, bug fixes, and improvements. | ||
releaseUrl: https://github.com/chakra-ui/chakra-ui/pull/7482 | ||
releaseDate: March 27, 2023 | ||
version: 2.5.4 | ||
--- | ||
|
||
## Minor Changes | ||
|
||
### Styled System `2.7.0` | ||
|
||
Creates the `gradients` theme key for props `bgGradient`, `bgImage`, `bgImg`, | ||
and `backgroundImage` | ||
|
||
This addition allows you to use tokens for the gradient values, semantic tokens | ||
included! | ||
|
||
```tsx live=false | ||
// gradients.ts | ||
|
||
export const gradients = { | ||
lightBgGradient: | ||
"linear-gradient(102.7deg, #B9F1B9 0%, #5484EA 51.56%, #3A8E89 100%)", | ||
} | ||
|
||
// SomeComponent.tsx | ||
|
||
<Box bgGradient='lightBgGradient' /> | ||
``` | ||
|
||
🚨 NOTE: The | ||
[Background Gradient API](https://chakra-ui.com/docs/styled-system/gradient#background-gradient-api) | ||
can not be used in a token as the conversion is done when the api is used | ||
directly on a prop and not when compiling the theme config | ||
|
||
## Patch Changes | ||
|
||
### Tag `3.0.0` | ||
|
||
Fix issue where the tag's base style doesn't set the `--badge-bg` and | ||
`--badge-color` css variables. | ||
|
||
### Toast `6.1.0` | ||
|
||
Add support for the `colorScheme` property in the `useToast` hook | ||
|
||
```jsx live=false | ||
const toast = useToast({ | ||
title: "Account created.", | ||
description: "We've created your account for you.", | ||
colorScheme: "blue", | ||
}) | ||
``` | ||
|
||
### Checkbox `2.2.13`, Radio `2.0.22` | ||
|
||
Fix issue where browser shows console warning due to `preventDefault` call in | ||
pointer event on mobile | ||
|
||
### Next.js `2.1.1` | ||
|
||
Fix issue where theming related props (`variant`, `size`) could not be passed to | ||
the `Link` component |