I have a component with two variants, Lg and Sm. The Lg has 16px padding (using variables), and the Sm has 12px padding (also using variables).
When I add an instance of the component to a frame with auto layout, change the component’s resizing to fill container, and switch the instance from Lg to Sm, the component does not maintain the fill container resizing and changes it to fixed.
This issue only occurs with the applied variables. If I break the token and add the values directly, it works normally.