Comments (8)
Can't see any workarounds – this function should probably be refined a bit to create custom-style
elements only when css
has Polymer css mixins or properties present.
from angular-polymer.
I have been seeing issues with material2 styles and it looks like this is the culprit. It's unfortunate that this is still sitting here unassigned :(
@Saulis Do you know how to detect if the css "has Polymer css mixins or properties present"? I'm guessing that this would need something more than just looking for @apply
and CSS Variables? But wouldn't inspecting all of the contents of the style element come at a performance cost?
We've had to re-declare our material2 styles inside of Angular components to get them to work again. It's pretty ugly.
from angular-polymer.
Actually, I debugged my issues further and with or without the is="custom-style"
there was no change in behavior or Material2 styles. I found that I needed to configure Material2's new theming system for my app. After that, everything is working as expected with styling.
from angular-polymer.
@Splaktar can you share some details on how you configured material theming system to get it to work with polymer? Would be very helpful.
from angular-polymer.
The same issue for me. Can you please describe how to solve it?
from angular-polymer.
@jaichandra @logvi you can see the repo here and I have a blog post about upgrading from Angular 2 RC.4 and getting this working again here.
from angular-polymer.
@Splaktar Hm, it doesn't help me :(. I added custom theme but styles still overwritten by is="custom-style"
from angular-polymer.
@logvi the styles aren't overwritten, they just get the is="custom-style"
attribute added to them. It doesn't break anything for me. What problem are you seeing exactly?
from angular-polymer.
Related Issues (20)
- Configure CI build HOT 8
- Using with angular-cli HOT 4
- tests fail with newest jasmine-core lib
- Error encountered resolving symbol values statically HOT 5
- Accept multiple component names in PolymerElement() construct ? HOT 3
- Angular-Polymer meetup 2/17/2017 HOT 3
- [innerHTML] not working when defining PolymerElement HOT 9
- Angular 2, Problem in navigating from google chart to other component by click handler HOT 4
- Error: Cannot find a differ supporting object [vaadin-combo-box] HOT 4
- Renderer does not work with direct attributes HOT 2
- Renderer does not support styles inside angular component HOT 1
- Renderer folder is not copied when adding it as npm dependency HOT 1
- Is this compatible with angular 4.0.0? HOT 2
- How to get a build version of polymer components ? HOT 18
- documentation link not working HOT 1
- ng4 Quickstart with @vaadin/angular2-polymer - gives error - BrowserDomAdapter HOT 7
- Deprecate PolymerElement function
- Support Angular 4.x in the Renderer HOT 10
- Fix npm version HOT 3
- Property binding for complex Polymer components doesn't work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-polymer.