googlearchive / polyup

A helpful assistant for migrating from Polymer v0.5 to 1.0. Does many of the boring mechanical parts for you.
http://polymerlabs.github.io/polyup/
BSD 3-Clause "New" or "Revised" License
38 stars 9 forks source link

element-mapping.js: Replace paper-dropdown with paper-menu-button #92

Closed brian-cruickshank closed 9 years ago

brian-cruickshank commented 9 years ago

Currently, paper-dropdown is replaced with iron-dropdown, which needs non trivial manual changes to get to work properly.

A better approach would be to replace paper-dropdown with paper-menu-button https://elements.polymer-project.org/elements/paper-menu-button?view=demo:demo/index.html

rictic commented 9 years ago

Looking at the source code of the 0.5 paper-dropdown demo I'm not sure that I agree.

paper-dropdown is documented as a building block for making a dropdown-based UI component like paper-dropdown-menu or paper-menu-button, and the closest analog to that in the 1.0 world is iron-dropdown (plus a paper-material for the shadow effect).