Closed scottrepreneur closed 1 month ago
I believe that adding display='flex'
would shrink elements width to it's min-content, thus the Box
size would equal Text
/Heading
. Does it happen if you add grow
prop to Box
?
Hello @scottrepreneur.
Please provide a minimal reproduction using StackBlitz, TypeScript Playground (for type issues), or a separate minimal GitHub repository.
Minimal reproductions are required as they save us a lot of time reproducing your config & environment, and trying to reproduce your issue. See Why reproductions are required.
Please reopen this issue when a reproduction is added.
Describe the bug
Edit: this appears to be specifically when the containing
Box
is set todisplay='flex'
Appears to occur on both
Text
andHeading
components.I am adding
align
to aText
component, but it is not being [centered] accordingly,similar to the. ApplyingHeading
componenttextAlign='center'
on the parent works forText
but doesn't seem to affectHeading
in my experience (works, if consistent here).Link to Minimal Reproducible Example
will try to add
Steps To Reproduce
Heading
andText
component into aBox
usingdisplay='flex'
align='center'
, text is not alignedtextAlign='center'
on the parentBox
, text is aligned.Frog Version
0.11.x
TypeScript Version
5.4.5
Check existing issues
Anything else?
No response