Skip to main content
Solved

Nested Image Component Not Working

  • November 13, 2022
  • 2 replies
  • 363 views

Aman3

Hi guys! I’m trying to change the orientation of my image in a component, but it is not working.

Components Setup

  1. Image Component with three variants: landscape, portrait, square
  2. Card Component with a thumbnail (instance of image component), card title, and subtext.

Now, in the instance of the card component, I want to change the image orientation, but I can’t do it.

Here is the link to the file: https://www.figma.com/file/xMWWqpfpIJnr8jMmiFsOrH/Nested-Image-Component?node-id=0%3A1

Best answer by tank666

Add auto layout to your variants in the component set and everything will work.

View original
This topic has been closed for comments

2 replies

tank666
  • 4863 replies
  • Answer
  • November 13, 2022

Add auto layout to your variants in the component set and everything will work.


Aman3
  • Author
  • 1 reply
  • November 13, 2022

Thank you so much! It’s working!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings