question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some odds while upgrading to Chakra UI V 1.x

See original GitHub issue

Hi 😃

We have recently upgraded to chakra ui v1.x and while doing so I noticed 2 odd behaviours there are not bugs maybe

With the upgrade, the background colour with value keyword cyan was not showing up here. So I have added the following which works:

background: theme.colors.cyan['500'],

Ref: https://github.com/NeonLaw/codebase/pull/744#discussion_r481439168

Opposite to what the migration docs https://next.chakra-ui.com/docs/migration#radio say the Radio component after the update is not taking up the 100% of the parent’s width rather it’s only taking up the content width:

image

This is how it looks now after the update to v 1.x:

image

This is how it looked before:

image

Note: there was no isFullWidth prop used before.

I have added the above width="100%" so that it takes up the full width.

Ref: https://github.com/NeonLaw/codebase/pull/744#discussion_r481444198

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
segunadebayocommented, Sep 13, 2020

Looking through this conversation, and I think it’s fine the way it is, to be honest.

We can plan to document it some more in the future to clear any doubt or confusion.

Thanks for chiming in @with-heart and @ljosberinn. You guys are amazing!

2reactions
with-heartcommented, Sep 8, 2020

imo it’d be even more confusing for users if cyan by itself defaulted to a color that isn’t even in the Chakra system. I think it’s fine the way it is. We definitely need to take a closer look at documenting how colors work with the scales though, as a number of users are confused by it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading to v1 - Chakra UI
Upgrading to v1. Chakra UI v1.0 is focused on improving the ideas and concepts from v0.8 to make it even easier to create,...
Read more >
Limitations of Chakra UI - Ryosuke
I've been using Chakra UI for a couple weeks now to create a new design system and I feel like I can provide...
Read more >
Chakra UI Reviews and Pricing 2022 - SourceForge
Guaranteed to boost your productivity when building your app or website. Chakra UI strictly follows WAI-ARIA standards for all components.
Read more >
@chakra-ui/react-use-update-effect | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >
Chakra UI v1 just released! : r/reactjs - Reddit
I love how composable it is and it pretty much is Tailwind UI in a react library. Pretty much a staple on any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found