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.

Flex component doesn't add `display: 'flex'` to div (in rc.4)

See original GitHub issue

Hello there.

I’ve noticed that somehow in chakra-ui v1.0.0 rc.4, Flex component doesn’t add display: 'flex' property to chakra.div element. Maybe it could be related to this commit.

Enclosing images of same Flex component rendered using rc.3 and rc.4:

  • RC.3:
Screenshot 2020-09-27 at 14 19 40
  • RC.4
Screenshot 2020-09-27 at 14 25 33

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
ljosberinncommented, Sep 28, 2020

Glad its resolved 😃 I believe __css is exposed because there can be (rare) use cases, but its technically an internal API. Use sx to merge with existing, predefined styles.

2reactions
sebqqcommented, Sep 28, 2020

@ljosberinn You’re right and I’m so sorry. Actually, after revising code more closely I’ve found that I added _css property to my Flex component. Somehow, this managed to get rid of display: 'flex' attribute.

The problem is fixed after changing __css property to sx.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flex / Grid layouts not working on button or fieldset elements
In some browsers the <button> element doesn't accept changes to its display value, beyond switching between block and inline-block .
Read more >
428049 - 100% height doesn't work on child of a definite-flex ...
To fix this, the app developer needs to dig into the implementation of the UI component and restyle it to not use percentage...
Read more >
Typical use cases of flexbox - CSS: Cascading Style Sheets
In this guide, we will take a look at some of the common use cases for flexbox — those places where it makes...
Read more >
Layout > Troubleshooting - Angular Material
If you are having difficulty with a specific element/component, but not others, try applying the flex attributes to a parent or child <div>...
Read more >
PowerFlex 750-Series AC Drives Reference Manual
Control Modes for PowerFlex 755 Drives Operating on the ... display does not indicate if the drive is in Manual, but rather if...
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