googlearchive / core-item Goto Github PK
View Code? Open in Web Editor NEWSimple 'item' element for lists and menus
Simple 'item' element for lists and menus
See core-item demo.html and polymer-project.org docs-menu.
The core-item should have a "value" property along with the "label" property. It would be nice to be able to attach a value when using the core-item in lists. For example, in a core-dropdown-menu or paper-dropdown-menu.
Does it have to be an attribute? Seems like just using <content>
would be more Webby?
The "hidden" attribute doesn't not hide
<core-item icon="event" label="Happening Today" hidden></core-item>
Polymer v0.5.5
If I have a core item with a relative link inside it <a href="#about" target="_self"></a>
, in a component, and I click the link, instead scrolling to the #about
label in the current window I am sent to the containing component loaded as a html page.
This was ok in 0.4.2
Broken in master as of 9d71578
See gist: https://gist.github.com/clyfe/ba7c8638b192a21d48cb
Is there a way to indicate an item (in a menu, for example) is a separator? Or do I have to style it manually (disabled, etc.)
This means that any tag within the will be not have its height and width taken into account when laying out the item.
In my use case I have a . And within it I have an tag with text like 'veerrryyy loooonnng tttexxxttt ssttring'. And because the position is absolute the width is not taken into account. This means the 's width is short than the 's width, causing obvious design problems.
I have hacked a fix like this:
core-item /deep/ a {
position: relative !important;
}
Obviously this is not idea. Can we not remove the position: absolute in the core-item?
https://github.com/Polymer/core-item/blob/master/core-item.css#L26
This makes the core-icon button to be incorrectly shaped in Firefox 31 - margin left and right are different and the button looks strange (wider on the right).
I had to override this in my app element with:
:host /deep/ core-item /deep/ core-icon {
margin: 0 0 0 0 ! important;
}
Why is this put in there, does it provide any functionality? If yes, should it be tested under the polyfill?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.