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

Add a way to share styles between elements and the global scope #1876

Closed
sorvell opened this Issue Jun 15, 2015 · 7 comments

Comments

Projects
None yet
6 participants
@sorvell
Member

sorvell commented Jun 15, 2015

Given that a user has made a custom-style for something like layout, for example, it's convenient to be able to use this inside an element as well. Currently, this requires code duplication.

If we supported a new syntax like this: <link rel="import" is="custom-stylesheet"> then the style could be defined once and used globally (via cusotm-style functionality) or locally inside an element via the link's location inside an element <dom-module> (custom-style uses this technique now). If we do this, we should deprecate the current syntax for loading remote stylesheets in element (<link rel="import" type="css">)

@eximius313

This comment has been minimized.

eximius313 commented Jun 20, 2015

+1

1 similar comment
@vsimonian

This comment has been minimized.

vsimonian commented Jun 20, 2015

+1

@ebidel

This comment has been minimized.

Member

ebidel commented Jun 20, 2015

/sub

@agektmr

This comment has been minimized.

agektmr commented Jul 8, 2015

+1

@lorenzleutgeb lorenzleutgeb referenced this issue Aug 7, 2015

Open

Share styling between similar components #40

0 of 3 tasks complete
@sorvell

This comment has been minimized.

Member

sorvell commented Aug 8, 2015

Changes that will be merged for this issue are here: #2198.

@sorvell

This comment has been minimized.

Member

sorvell commented Sep 1, 2015

@arthurevans can you please close this when you feel this has been adequately documentated? Thanks.

@arthurevans

This comment has been minimized.

Contributor

arthurevans commented Oct 1, 2015

Documented, as described in #2229.

@arthurevans arthurevans closed this Oct 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment