title | description | releaseUrl | releaseDate | version |
---|---|---|---|---|
Version 1.6.2 |
Explore the changelog for Chakra UI version 1.6.2. Learn about the latest features, bug fixes, and improvements. |
May 17, 2021 |
1.6.2 |
-
1d8f8e2d0
Thanks @segunadebayo! - > This is an internal package- Add support for state tags and pure
transition
function - Return
service
inuseMachine
- Add machine status to
Machine
class - Add support for
or
,and
andnot
guard composition for better DX.
- Add support for state tags and pure
-
773497896
#3997 Thanks @segunadebayo! - Ring stylesAdded ring style props to make it easier to style an element's focus ring shadows. Props are
ring
,ringColor
,ringOffset
, andringOffsetColor
.// adds a 2px box-shadow with `gray.400` color <Box ring="2px" ringColor="gray.400"> Sample </Box> // adds main box-shadow + offset box-shadow <Box ring="2px" ringColor="gray.400" ringOffset="3px" ringOffsetColor="white"> Sample </Box>
Filter styles
Added css variable based API to apply css filter properties (blur, backdrop-blur) to an element. Props are
filter
,blur
,sepia
,brightness
,invert
,saturation
,backdropFilter
,backdropBlur
,sepia
,saturation
, etc.To use this API, you'll need to set
filter
toauto
, same forbackdropFilter
.// adds a 3px blur filter to this element <Image src="boruto.png" filter="auto" blur="3px" /> // adds a 3px blur and 40% saturation filter to this element <Image src="boruto.png" filter="auto" blur="3px" saturation={0.4} />
Transform styles
Added css variable based API to apply css transform properties (translateX, translateY, scale, etc.). Props are
translateX
,translateY
,rotate
,scaleX
,scaleY
, andscale
.To use this API, you'll need to set
transform
toauto
orauto-gpu
(for the GPU accelerated version).<Circle transform="auto" translateX="4" _hover={{ translateX: "8" }}> <CheckIcon /> </Circle>
-
Add
mixBlendMode
,backgroundBlendMode
, andbgBlendMode
props to apply blend modes to elements -
Automatic wrapping of
backgroundImage
orbgImage
props withurl()
so you can just pass the image URL directly.
// You can now do this! <Box bgImage="naruto.png" /> // This still works <Box bgImage="url(naruto.png)" />
-
text decoration styles: Added
textDecorationColor
,textDecorationLine
,textDecorationStyles
style props. -
Add
isolation
style prop to create a new stacking context.
High Contrast Mode
Fixed issue where setting
outline:0
oroutline:none
and usingbox-shadow
for focus outlines don't work in high-contrast mode.To fix this, we've added
outline: 2px solid transparent
whenever you setoutline:0
to make your components work in high-constrast mode by default.-
Fix the
_dark
pseudo props to map to.chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]
. -
Added
_light
pseudo props to map to.chakra-ui-light &, [data-theme=light] &, &[data-theme=light]
for users that prefer to start with dark mode. -
Added
overscroll
,overscrollX
, andoverscrollY
style prop to manage overscroll behavior of an container
-
-
4f1cf6d6b
#3997 Thanks @segunadebayo! - Add blur token values forfilter
andbackdropFilter
{ "none": 0, "sm": "4px", "base": "8px", "md": "12px", "lg": "16px", "xl": "24px", "2xl": "40px", "3xl": "64px" }
- Updated dependencies
[
c1f8d90ad
]
620f0b7d7
Thanks @segunadebayo! - Fix issue where FormLabel could not be used without form-control
- Updated dependencies
[
620f0b7d7
]
-
e190ce1b3
Thanks @segunadebayo! - Fix issue where keyboard navigation doesn't workisLazy
is passed. -
8dc0622e8
Thanks @segunadebayo! - Fix issue where typeaheaad overrides input keydown -
Updated dependencies [
c1f8d90ad
]
- Updated dependencies
[
c1f8d90ad
]
-
4a7f8dab7
Thanks @segunadebayo! - Fix warning with scroll listener whenallowMouseWheel
is passed -
Updated dependencies [
620f0b7d7
]
f4ad5c7dd
Thanks @segunadebayo! - Fix issue whereRadio
oruseRadio
gets non-unique id when wrapped withinFormControl
.- Updated dependencies
[
620f0b7d7
]
ddd5ef4a1
#3985 Thanks @TimKolberger! -ChakraProvider
now accepts the propcssVarsRoot
which defaults to:host, :root
.- Updated dependencies
[
4f1cf6d6b
,e190ce1b3
,8dc0622e8
,ddd5ef4a1
,f4ad5c7dd
,c1f8d90ad
,620f0b7d7
,4a7f8dab7
]
- Updated dependencies
[
620f0b7d7
]
- Updated dependencies
[
ddd5ef4a1
]
-
ddd5ef4a1
#3985 Thanks @TimKolberger! - Attach CSS vars to:host, :root
to fix usage in shadow dom. -
Updated dependencies [
773497896
]
- Updated dependencies
[
620f0b7d7
]
c1f8d90ad
Thanks @segunadebayo! - Fix issue where onAnimationComplete is not forwarded to motion element
dee5a15c8
#4017 Thanks @LekoArts! - PasspluginOptions
correctly to theChakraProvider
. Fixes chakra-ui#4014
- Updated dependencies
[
ddd5ef4a1
]
- Updated dependencies
[
ddd5ef4a1
]