Skip to content

Latest commit

 

History

History
826 lines (631 loc) · 31 KB

v1.6.6.mdx

File metadata and controls

826 lines (631 loc) · 31 KB
title description releaseUrl releaseDate version
Version 1.6.6
Explore the changelog for Chakra UI version 1.6.6. Learn about the latest features, bug fixes, and improvements.
August 9, 2021
1.6.6

Minor Changes

  • ff4dc7c38 #4317 Thanks @bhishp! - Added a container part to the FormControl component theme, allowing the root FormControl element to be themed.

    import { extendTheme } from "@chakra-ui/react"
    
    export const theme = extendTheme({
      components: {
        Form: {
          variants: {
            // create a variant named "custom"
            custom: {
              // style the root `FormControl` element
              container: {
                color: "white",
                bg: "blue.900",
              },
            },
          },
        },
      },
    })

Patch Changes

Minor Changes

  • ff4dc7c38 #4317 Thanks @bhishp! - Added a container part to the FormControl component theme, allowing the root FormControl element to be themed.

    import { extendTheme } from "@chakra-ui/react"
    
    export const theme = extendTheme({
      components: {
        Form: {
          variants: {
            // create a variant named "custom"
            custom: {
              // style the root `FormControl` element
              container: {
                color: "white",
                bg: "blue.900",
              },
            },
          },
        },
      },
    })

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

  • 1d4b1f874 #4460 Thanks @primos63! - Corrected parseGradient function so that it checks for CSS functions.

    Previously, using the CSS calc function would result in invalid CSS being generated.

    The expectation is that

    <Heading bgGradient="linear(to-r, green.200, pink.500 calc(20px + 20px))">
      Chakra-UI: Create accessible React apps with speed
    </Heading>

    functions similar to linear-gradient which handles using a CSS function

    <Heading
      bgImage="linear-gradient(
        to right,
        var(--chakra-colors-green-200)),
        var(--chakra-colors-pink-500 calc(20px + 20px))"
    >
      Chakra-UI: Create accessible React apps with speed
    </Heading>
  • 270b71ebb #4368 Thanks @avendiart! - Grid props type definitions now correclty reflect the implemented behavior in regard to tokens.

  • Updated dependencies [4c1071969, 43f66097b]:

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes