Skip to main content
Question

Component variant does not work with rotation

  • September 1, 2022
  • 8 replies
  • 3296 views

Nguy_n_Th_Hi_n

Hi all,
I got an error about component variant does not work properly with shape rotation.

I created a component with a shape, then I add one more variant (rotate 45). But it does not work as expected.

I have tried both Figma Desktop version 116.3.6 and web browser version.

Have got the same error?

8 replies

tank666
  • 4858 replies
  • September 1, 2022

Rotate not the variant of the component, but its contents.


Ulysses_De_Waegemaeker

Thank you Tank!


Joe_Lalonde

Any idea for how to rotate the contents when the component only contains a gradient fill?

I assume it can be done manually within the Fill controls, but I’d like the gradient to be an exact 180 flip of the an existing gradient fill. And it’s so tedious trying to get the gradient angle/position the same via eyeballing it. Any advice is appreciated!


tank666
  • 4858 replies
  • February 1, 2024
  1. Create a rectangle of the same size;
  2. Copy the fill or properties of the component;
  3. Paste the copied fill or properties into the rectangle;
  4. Rotate the rectangle to the degree you need;
  5. Flatten the rectangle;
  6. Copy the fill or properties of the rectangle and paste it into the component.

Or find plugins in the Figma Community that allow you to specify the exact angle for the gradient.


Joe_Lalonde

🤩 It works, thank you!


Austin422
  • 4 replies
  • August 24, 2024

Hi Tank,

I have a similar question where no matter how I rotated the key icon’s content or vector or even used flatten, when I used component and changed to this variant, it didn’t rotate successfully. Here is the Figma file. Thanks for the help!


tank666
  • 4858 replies
  • August 28, 2024

Your “Key” variant is flipped vertically. Select the layer with this name and press Shift+V.


Austin422
  • 4 replies
  • August 28, 2024

Thanks! Just figured it out!


Reply


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