Figma Support Forum

Hug Contents for variant-components with Fill Container children

As mentioned in:

I’d like to be able to set ‘Hug Contents’ on a component that has variants that are set to ‘Fill Container’. Hug contents is a great way to keep components with variants tidy. However, often I want the variants to be set to Fill container, as that will be their auto-layout behaviour where they will be placed in artboards.

Currently it’s not possible to combine having a multiple-variant-component set to Hug Content, with variants set to Fill Container inside of it.

I realise this does not fit with the parent-hug-contents and child-fill-container logic. My thinking here is that there would be an exception for the master-component only, although I’m not sure exactly how it would work.


This topic was automatically closed after 30 days. New replies are no longer allowed.