start-ui-web icon indicating copy to clipboard operation
start-ui-web copied to clipboard

Deprecated functions from Chakra

Open yoannfleurydev opened this issue 3 years ago β€’ 3 comments
trafficstars

isAccessible and transparentize functions are deprecated, we need to check for their alternatives in the Chakra UI code.

https://github.com/BearStudio/start-ui-web/blob/93c928b564b0416173a9c5b31477d842ad2e0a53/src/theme/components/button.ts#L4-L6

yoannfleurydev avatar Oct 29 '22 16:10 yoannfleurydev

getColor too

https://github.com/BearStudio/start-ui-web/blob/93c928b564b0416173a9c5b31477d842ad2e0a53/src/theme/components/input.ts#L3

For now chakra doesn't provide an alternative

https://github.com/chakra-ui/chakra-ui/discussions/5058#discussioncomment-3779826

Jessy-BAER avatar Dec 02 '22 15:12 Jessy-BAER

  1. A temporary solution is to code the function ourselves (or by copy/pasting the Chakra UI one).

  2. We are waiting for Chakra to release the v3 with Ark and Panda CSS and we'll see the utils that comes with it.

yoannfleurydev avatar May 15 '23 11:05 yoannfleurydev

This thread is a bit old but apparently they don't intend to replace these functions : https://github.com/chakra-ui/chakra-ui/discussions/6139#discussioncomment-2959343

ntatoud avatar Jul 10 '23 15:07 ntatoud