Hi Everyone,
I have a problem with replacing slots within a larger molecule component. I’ve built a complex component designed to be highly customizable. There are 6 slots that can be replaced by 8 pre-defined components (atoms or smaller molecules, each with desktop and mobile variants). Additionally, this molecule has both desktop and mobile variants.
All slot widths are set to fill the container, and their heights hug the content. Therefore, in theory, the replaced slot should adjust to the height of the replaced component. While this works initially, changing the device variant of the molecule and then a single slot item changes its height from “hug content” to “fixed size,” which messes up the autolayout. If this is unclear, please see the attached video: Dropbox
I even tried recreating this molecule from scratch, but the problem persists. Any ideas on what I might be doing wrong, or could this be a bug in Figma?