Well, then you still would have to specify the looks of that button within 
the bootstrap-button element. There you can either specify it locally (bad 
idea for performance and maintainability) or get it from the outside 
(better idea for both performance and maintainability). The things that you 
would want to specify locally, and which makes the shadow story 
interesting, is the fact that you can take care of the parts that you need, 
without being bothered from the outside, like shape, while color comes from 
the outside.

On Wednesday, May 21, 2014 2:33:46 PM UTC+2, Martin Kleinschrodt wrote:
>
> I've been wondering about this, too. Afaik the only way to get bootstrap 
> to work across shadow dom boundaries is to adjust the selectors to use the 
> /shadow-deep/ combinator. However, I'm wondering if using something like 
> bootstrap is even idiomatic to web components. Perhaps what we need is 
> something like a set of bootstrap-like styled web components? So instead of
>
> <button type="button" class="btn btn-default">Default</button>
>
>
> We could do something like
>
> <button is="bootstrap-button" class="default">Default</button>
>
>
>
>
> On Wednesday, May 21, 2014 12:40:27 PM UTC+2, Karsten Becker wrote:
>>
>> Hi,
>> I have a polymer application that is heavily using elements. The overall 
>> look of the page should be bootstrap, so I used applyAuthorStyle for all 
>> elements. This works well up to the latest carnary chrome, which now 
>> ignores those. So my app is basically broken there, and probably will be in 
>> a foreseeable future.
>>
>> My first attempt at fixing this is by linking the bootstrap css from each 
>> polymer-element, which works, but the performance penalty is way too big. 
>> The site is flickering all over the place. So I was wondering, did anyone 
>> work on a bootstrap version with ::shadow and /deep/ that I could use to 
>> globally style my page?
>>
>> Or am I missing another way of doing things?
>>
>> Karsten
>>
>

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/c934ba8b-7b0c-4d4b-bd5a-347ae637faf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to