You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to modify Bootstrap so that it works with Polymer elements.
Polymer elements introduce a ShadowDOM boundary which breaks descendant/child-selectors. To make such selectors work the ^ (hat - one boundery) ^^ (cat all boundaries) are needed in between.
body ^^ .panel-group selects all .panel-group-elements no matter how many shadowDOM levels it encapsulated with.
After adding a hat or cat selector in one of the Bootsrap less source files I get this error:
Running "less:compileCore" (less) task
>> ParseError: Unrecognised input in less/panels.less on line 152, column 6:
>> 151
>> 152 body ^ .panel-group {
>> 153 margin-bottom: @line-height-computed;
Do you have any plans to support these selectors?
I'm new to less.
Maybe there is an easy solution/workaround that I am not aware of.
If you could have a look at the tests I've written and let me know if there are any other weird cases for these combinators, that would be great. since its just adding a new type of selector combinator, I don't see that it needs any more advanced tests combining it with other features, it should just work.
Activity
lukeapage commentedon Jan 11, 2014
It should be easy to add.. I'll have a go and if it goes well it will be in our bugfix release 1.6.1 very soon.
lukeapage commentedon Jan 11, 2014
If you could have a look at the tests I've written and let me know if there are any other weird cases for these combinators, that would be great. since its just adding a new type of selector combinator, I don't see that it needs any more advanced tests combining it with other features, it should just work.
zoechi commentedon Jan 11, 2014
That's great, thanks a lot!
zoechi commentedon Jan 29, 2014
Sorry, I missed your post about the test cases.
LGTM!