Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can MUI dropdown to drop up? #296

Open
nhandt64 opened this issue Nov 17, 2018 · 2 comments
Open

Can MUI dropdown to drop up? #296

nhandt64 opened this issue Nov 17, 2018 · 2 comments

Comments

@nhandt64
Copy link

As title, can MUI dropdown to drop up?
Thanks

@amorey
Copy link
Member

amorey commented Nov 21, 2018

Hi @Wello6143! Currently you can't do drop ups. However, it sounds like a useful feature. Here's an example of how we could expose it using a mui-dropdown__menu--up class:

<div class="mui-dropdown">
  <button class="mui-btn mui-btn--primary" data-mui-toggle="dropdown">
    Dropup
    <span class="mui-caret" style="transform:rotate(180deg)"></span>
  </button>
  <ul class="mui-dropdown__menu mui-dropdown__menu--up">
    <li><a href="#">Option 1</a></li>
    <li><a href="#">Option 2</a></li>
    <li><a href="#">Option 3</a></li>
    <li><a href="#">Option 4</a></li>
  </ul>
</div>

And this is what it would look like:
localhost_8080_examples_css-js_dropdowns_html

Let me know if that would work for you.

@amorey
Copy link
Member

amorey commented Jul 31, 2019

Dropup/Dropright/Dropleft options are live in v0.9.43:
https://www.muicss.com/docs/v1/css-js/dropdowns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants