Skip to content

feat(dropdowns): make the fluid width an opt-in option

What does this MR do?

We previously made dropdowns' width more flexible by droppping the fixed width in favor of a min and a max width, letting the panel resize itself based on its contents. This restores the fixed width as the default behavior, but makes the fluid width available via the fluid-width prop.

Relevant review app links:

Screenshots

Here's the listbox's with-long-content story with fluid-width disabled and enabled:

Disabled Enabled
Screenshot_2023-04-19_at_8.14.29_AM Screenshot_2023-04-19_at_8.14.16_AM

Closes #2209 (closed)

Edited by Paul Gascou-Vaillancourt

Merge request reports