Summary
I noticed that if I have a Layer prop (boolean), that affects “child layers” with Layer props as well, those switches/properties don’t hide in the instance properties panel. Why is that? Guessing a current limitation?
Example
I have this Banner component. There is a group for all the “buttons/actions”. The Dismiss icon button is within this group, so if I turn off the Actions switch, I’d expect the Dismissable switch to disappear. See a simple demo of this (not) happening:
Problems
This was causing some confusion with some of the designers (consumers) using the components, as well as myself at first. What you see was not what you get in terms of the Inspect panel too. (Dismissable = true, but it wasn’t even visible on the canvas.) Ideally, the “Dismissable” prop in the Inspect panel would just not be shown at all.
Thanks for the consideration!