Closed jorgefilipecosta closed 3 years ago
Thanks @jorgefilipecosta !!
The SelectDropdown
component was recently merged:
https://github.com/ItsJonQ/g2/issues/161
I'm going to see if I can recreate the FontSizePicker
in G2 to accommodate this use case.
The internal state management will be interesting. I'm sure it can be made easier using substate
.
That means the internal implementation will differ from the one using within @wordpress/components
. I think that's okay 😊
On font size under typography tools https://g2-components.xyz/iframe.html?id=designtools-presentation-typographypanel--default&viewMode=story we should have the option to have font size presets display in a custom select control (where each option shows the font size used). Even if font size presets in the future may not be a common thing we need to be back-compatible with the current font size presets.
Current version on WordPress components: