ItsJonQ / g2

✨ An experimental reimagining of WordPress components
http://g2-components.com/
MIT License
105 stars 12 forks source link

Dropdown/Action Sheet (Dialog) #258

Open ItsJonQ opened 3 years ago

ItsJonQ commented 3 years ago

For mobile (and possible tablet), I think it would be a good idea to explore enhancing any (custom) Dropdown based component to render an alternative UI - that being the "action sheet", which is more native to the mobile experience.

This came from recent convos with @diegohaz https://github.com/ItsJonQ/g2/pull/250#issuecomment-771015412

I put together a very rough prototype here: https://codesandbox.io/s/better-mobile-dropdowns-l5pfn

I think having an dedicated ActionSheet/Modal component be beneficial in general as it could vastly improve mobile touch/gesture based experiences.