Dropdown without menu's #575
Replies: 4 comments 7 replies
-
I would love to see this. At the moment, using input within a dropdown doesn't work well at all. |
Beta Was this translation helpful? Give feedback.
-
@ju5t I just tried a couple of things, e.g.: <div>
<flux:dropdown>
<flux:button icon-trailing="chevron-down">Show</flux:button>
<flux:menu class="max-w-xs">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio soluta quia aperiam ea pariatur repudiandae repellendus, blanditiis rem recusandae cumque. Neque dolores consequuntur repellendus deleniti accusamus cumque aut voluptatibus asperiores!</p>
<flux:separator class="my-2" />
<flux:input />
</flux:menu>
</flux:dropdown>
</div> And it worked well for me. To your comments, I haven't checked the accessibility or focus trapping, but I wouldn't be surprised if |
Beta Was this translation helpful? Give feedback.
-
It doesn't work with other elements. Just tried with date-picker and is not working. I'm developing a table filter but the dropdown menu is not working with other components, so i need to find another approach. :( |
Beta Was this translation helpful? Give feedback.
-
What you're all after is a popover component. That should be coming in a future release as we're working on it 🙂 |
Beta Was this translation helpful? Give feedback.
-
We have a use-case for dropdown's that are not used as a menu. We're planning to use them for table filters, but there will be other situations where they might be useful. There's probably a word for such dropdown 'boxes'?
An example, which actually works, would be:
This does what we'd like, but it might lack the accessibility features that this would need. Perhaps even focus trapping, but not sure if that would be expected here.
Beta Was this translation helpful? Give feedback.
All reactions