Closed ItsJonQ closed 3 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/itsjonq/g2/kbjmtuwun
✅ Preview: https://g2-git-update-flex-wrap-font-size-control.itsjonq.vercel.app
This update improves Flex-based layout rendering for potentially longer translation labels.
This is achieved by enhancing how
Flex
handleswrap
rendering. Previously,Flex
only provided margin gaps on one axis (eitherx
for horizontal, ory
for vertical). With the updated<Flex wrap />
, thegap
value is now applied on bothx
andy
to accommodate wrapped content.This solution seems to work well. However, it involves quite a bit of manual CSS for the individual children of
HStack
.The
FontSizeControl
how usesHStack
instead ofGrid
for inner UI rendering.(Screenshot of Google translated German labels)
(Original English labels)
FontSizeControl
The changes made to this
FontSizeControl
need to be ported to Gutenberg. We technically don't need to updateFontSizeControl
here. I mostly did it for reference to make the updating easier in Gutenberg.Resolves https://github.com/ItsJonQ/g2/issues/251