Skip to main content
Nguy_n_Th_Hi_n
September 1, 2022
Question

Component variant does not work with rotation

  • September 1, 2022
  • 8 replies
  • 4143 views

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?

This topic has been closed for replies.

8 replies

tank666
September 1, 2022

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

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Ulysses_De_Waegemaeker
November 3, 2022

Thank you Tank!

Joe_Lalonde
February 1, 2024

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
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.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Joe_Lalonde
February 1, 2024

🤩 It works, thank you!

Austin422
New Member
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!

Learning
tank666
August 28, 2024

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

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Austin422
New Member
August 28, 2024

Thanks! Just figured it out!

Learning