fix(Inline): Problem with alignItems center#1581
Conversation
|
Size stats
|
|
Deploy preview for mistica-web ready!
Deployed with vercel-action |
|
Accessibility report ℹ️ You can run this locally by executing |
|
Screenshot tests report ✔️ All passing |
| containerBase, | ||
| { | ||
| cursor: 'pointer', | ||
| display: 'flex', |
| // Propagate alignItems to wrapper divs so icon SVGs (inline elements) are | ||
| // correctly centered within each wrapper, not just the wrappers themselves. | ||
| // Only activates when childDisplay is set (i.e. alignItems !== 'stretch'). | ||
| display: fallbackVar(childDisplay, 'block'), | ||
| alignItems: fallbackVar(childAlignItems, 'normal'), |
There was a problem hiding this comment.
I believe we fall back to block/normal to preserve current behavior when alignItems is stretch, but current behavior is probably wrong. I think we should fallback to flex/stretch: We could remove the conditional in the inline.tsx component and the fallback function here.
There was a problem hiding this comment.
There was a problem hiding this comment.
Yeah... Perhaps we can fix it in the future
There was a problem hiding this comment.
music for my eyes
| // Propagate alignItems to wrapper divs so icon SVGs (inline elements) are | ||
| // correctly centered within each wrapper, not just the wrappers themselves. | ||
| // Only activates when childDisplay is set (i.e. alignItems !== 'stretch'). | ||
| display: fallbackVar(childDisplay, 'block'), | ||
| alignItems: fallbackVar(childAlignItems, 'normal'), |
There was a problem hiding this comment.
Yeah... Perhaps we can fix it in the future




This PR fix a problem with center alignments in Inline component. You can see the screenshots diff to see the improvement