Figma Support Forum

Exclude component in a auto layout component

I am building components with auto layout, and want 1 of the layers not to interfere with the auto layout rules.
2 examples:
1 - Have a component on the background of a card design to specify the border radius and shadow.
2 - Have a border around a button for the hover state.

But every time I try this, the layer gets involved with the auto layout rules. So, I am looking for a way to have a layer expluded from the auto layout rules.

@Patrick_Loonstra you could try using the zero frame hack :arrow_upper_right:

1 Like