g2 icon indicating copy to clipboard operation
g2 copied to clipboard

Font families should be mainly select based

Open jorgefilipecosta opened this issue 5 years ago • 2 comments
trafficstars

The font family control on the typography tools https://g2-components.xyz/iframe.html?id=designtools-presentation-typographypanel--default&viewMode=story should be mainly select based. The user will be presented with a set of font-family options. The user can choose one of the predefined options. I guess if a value outside of one of the options is passed we may render a text input, but that should not be the default.

jorgefilipecosta avatar Nov 23 '20 20:11 jorgefilipecosta

Agreed. It could be a-la-react-select which would accept custom values too, but it should primarily work as a select input :+1:

aristath avatar Nov 25 '20 08:11 aristath

Sounds like we need a ComboBox :)

That's what react-select is (at least it's primary configuration is a combobox).

We can use downshift, which is what we did for the recently added SelectDropdown (same library used in @wordpress/components).

ItsJonQ avatar Nov 25 '20 14:11 ItsJonQ