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

Hover effects for paper-dropdown #251

Open
IchordeDionysos opened this issue Jun 22, 2017 · 1 comment
Open

Hover effects for paper-dropdown #251

IchordeDionysos opened this issue Jun 22, 2017 · 1 comment

Comments

@IchordeDionysos
Copy link

IchordeDionysos commented Jun 22, 2017

Description

E.g. the paper-dropdown-menu especially the paper-input and iron-icon element should e.g. get a little bit opacity when hovered.

Expected outcome

The dropdown shouldn't have opacity, making it easy to see what elements are in the dropdown.

Actual outcome

The dropdown has opacity as well, making it hard to see what elements are in the dropdown.

Demo

<style is="custom-style">
    paper-dropdown-menu {
        opacity: 0.5;
        -webkit-transition: opacity 0.3s;
        -moz-transition: opacity 0.5s;
        -ms-transition: opacity 0.5s;
        -o-transition: opacity 0.5s;
        transition: opacity 0.3s;
        will-change: opacity;
    }
    paper-dropdown-menu:hover, paper-dropdown-menu:active {
        opacity: 1;
    }
</style>
<paper-dropdown-menu label="Dinosaurs">
  <paper-listbox slot="dropdown-content" selected="1">
    <paper-item>allosaurus</paper-item>
    <paper-item>brontosaurus</paper-item>
    <paper-item>carcharodontosaurus</paper-item>
    <paper-item>diplodocus</paper-item>
  </paper-listbox>
</paper-dropdown-menu>

Currently I think only this is possible.

@IchordeDionysos
Copy link
Author

Live demo: https://jsfiddle.net/ojk7er8u/

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

1 participant