Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant