:host-context

97 views
Skip to first unread message

Daniel Chin

unread,
Jun 3, 2014, 4:45:33 AM6/3/14
to polym...@googlegroups.com
Hi Guys


I am experiencing a issue whilst using :host-context to select a ancestor then finding a node back down :host-context('.form--horizontal') .control__label, Styles are being applied correctly when first rendered on .control__label but I have a binding setup using tokenList to listen to changes so .form--horizontal can be changed to .form--vertical then .control__label appearance can be changed based on this. This seems to be working and the styles seem to be attached when the property changed but the problem is the visual appearance is not updating. If I change a property within the inspector on .control__label then the screen gets updated correctly. 

Hope I have explained this ok.

Regards

Dan.


Eric Bidelman

unread,
Jun 3, 2014, 2:57:31 PM6/3/14
to Daniel Chin, polymer-dev
This could be a style recalc bug. Can you post a jsbin to repo the issue?


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/a74f93a8-c516-4fa7-afc0-258aff9efbce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Chin

unread,
Jun 4, 2014, 4:15:19 AM6/4/14
to polym...@googlegroups.com, danch...@googlemail.com
Hi Guys

Forgive me if there are any typo's etc I threw it together quickly http://jsbin.com/tuxuboqu/4/edit 

I seem to be getting the same behaviour as mentioned :(  

Hope this helps

Cheers

Dan

Elliott Sprehn

unread,
Jun 5, 2014, 2:14:00 AM6/5/14
to Daniel Chin, polymer-dev
Reply all
Reply to author
Forward
0 new messages