PolymerElements / paper-dropdown-menu

A Material Design browser select element
https://www.webcomponents.org/element/PolymerElements/paper-dropdown-menu
61 stars 107 forks source link

Docs confusing - CSS hard to track down #201

Open StokeMasterJack opened 8 years ago

StokeMasterJack commented 8 years ago

In your demo, you have this snipped:

            <paper-dropdown-menu label="Dinosaurs">
                <paper-listbox class="dropdown-content">
                    <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>

This snippet uses a CSS class (dropdown-content). Unfortunately, it's hard to track down where the CSS is coming from. Apparently, for efficiency purposes, someone created some reusable CSS (somewhere) that this example uses. But, for demo code, reusable CSS is less important than clarity. Please just put the CSS as part of the example. Thanks.

StokeMasterJack commented 8 years ago

Also, what is paper-dropdown-menu-light? It is in the examples, but not clear what it is or why it's there. How does is differ from paper-dropdown-menu (without the -light suffix)? Thanks.

arthurevans commented 7 years ago

Thanks @StokeMasterJack. Here's what the docs should clarify:

notwaldorf commented 7 years ago

paper-dropdown-menu-light is documented here: https://github.com/PolymerElements/paper-dropdown-menu/blob/master/paper-dropdown-menu-light.html#L27

arthurevans commented 7 years ago

Yes, but: docs aren't getting picked up on the catalog:

https://elements.polymer-project.org/elements/paper-dropdown-menu

I think it just needs to get added to bower.json for the catalog's sake.