Flex component doesn't add `display: 'flex'` to div (in rc.4)
See original GitHub issueHello 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:
- RC.4
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Glad its resolved 😃 I believe
__css
is exposed because there can be (rare) use cases, but its technically an internal API. Usesx
to merge with existing, predefined styles.@ljosberinn You’re right and I’m so sorry. Actually, after revising code more closely I’ve found that I added
_css
property to myFlex
component. Somehow, this managed to get rid ofdisplay: 'flex'
attribute.The problem is fixed after changing
__css
property tosx
.