<button type="button" class="btn btn-default">Default</button>
<button is="bootstrap-button" class="default">Default</button>I'm in the exact same situation with Polymer and Bootstrap in fact. I'm blissfully productive using leaking CSS. IMO Karsten was on the right track w/fixing this in bootstrap, there needs a adapter to be shadow dom aware. Maybe there's some clever less/sass/stylus hacking to make this painless. If i pull in a third party set of tags that are bootstrap based, then I should be able to apply same adapter to them as well. If third party has specified CSS locally, then that would be difficult I think and would be an argument against defining them locally IMO.
Follow Polymer on Google+: plus.google.com/107187849809354688692To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/b7ea2376-0c7f-4383-8e6f-c0317a1a3b8e%40googlegroups.com.
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAJj5OwCW-j%2Bc%2BLH4dO7p5QLy%3DWG6ennVipAhgFpXq2y9t7njcA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/04a84e86-2e31-4aff-8e5a-c7a6e468cc4c%40googlegroups.com.
ok, so I did write a quick tool for that: https://github.com/KarstenB/csstransform and used the resulting https://github.com/KarstenB/csstransform/blob/master/bootstrap_deep.css but a few issues arise from that:In Canary the /deep/'d version has priority over local declarations even within the element (not a good idea), so those have to be marked as !important
Browsers that are not aware of /deep/ fail to render anything correctly. So you need to provide a switch based on the fact whether applyAuthorStyle is supported... (very ugly)
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/a640ff38-8794-4dec-b47e-4c2b0b610985%40googlegroups.com.
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/3ee81bb8-71ff-402a-8139-53c8a4e3e95c%40googlegroups.com.
I would definitely suggest breaking up your CSS into chunks specific to each component. We need to break free of the idea of having one massive CSS file and one massive JS file like we did in the past. With web components write small css files and embed them inside your self contained elements.
> email to polymer-dev+unsubscribe@googlegroups.com.
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/a60dc10e-9982-48c0-928d-cc9e1011c0fa%40googlegroups.com.