Skip to content
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
Closed

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

sorvell opened this issue Jun 15, 2015 · 7 comments
Assignees

Comments

@sorvell
Copy link
Contributor

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
Copy link

+1

1 similar comment
@adalinesimonian
Copy link

+1

@ebidel
Copy link
Contributor

ebidel commented Jun 20, 2015

/sub

@agektmr
Copy link

agektmr commented Jul 8, 2015

+1

@sorvell
Copy link
Contributor Author

sorvell commented Aug 8, 2015

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

@sorvell
Copy link
Contributor Author

sorvell commented Sep 1, 2015

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

@arthurevans
Copy link

Documented, as described in #2229.

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

No branches or pull requests

6 participants