Skip to main content
Question

Fixed Position Frame Shifts on Mode-Based Resizing


Hello! I'm experiencing an issue with a component that includes a right-aligned gradient frame. The gradient has a variable applied to its width and is set to fixed positioning.

When the component is resized for a different breakpoint by switching to a different mode, the gradient’s width updates correctly based on the variable. However, its position shifts inward and it no longer stays aligned with the right edge. It appears the resizing is anchored on the right side of the gradient, causing it to shift inward rather than staying aligned with the component edge.

Steps to Reproduce:

  1. Create a component with a gradient frame aligned to the right edge.

  2. Create at least two modes and add different width values in these modes. 

  3. Apply the width variable to gradient.  

  4. Set the gradient to fixed positioning (right).

  5. Resize the component via mode switching.

  6. Observe that the gradient shifts and is no longer flush with the right edge.

Expected Behavior:
The gradient should remain fixed to the right edge across breakpoints, maintaining its intended alignment even when its width changes via variable.

Actual Behavior:
On mode-based resize, the gradient width updates but shifts left, no longer aligned with the right edge.

The gradient settings within the component:

 

The instance resized via a different mode:

 

2 replies

Tom Reem
Figmate
  • Figmate
  • 62 replies
  • June 4, 2025

Hey ​@departing_sun — thanks for reaching out, and I have to say, I really like the direction you’re exploring with the color effects. ❤️🩷 Definitely want to help get this gradient shift issue sorted.

 

I recreated a similar setup in a test file based on the steps you provided (thank you again for laying those out!), but I wasn’t able to reproduce the same behavior on my end. If the issue is still showing up in your file, it’d be super helpful for us to take a closer look at how layers and components are nested.

 

For a more in-depth investigation, could you reach out to our Support team and include:

  • a reference to your post for more context
  • a full-size screen recording showing the issue in action (if possible)
  • a link to the affected file (and any related libraries)
  • make sure support-share@figma.com has edit access to the file.

 

Our Technical Quality team can take it from there. And of course, feel free to keep us posted here too. 🙏🏻


Hey ​@Tom Reem, thanks for checking it out — really appreciate it! And good to know the colors made an impression! 😊

I’ve reached out to the Support team with the file and details. Hopefully that helps get to the bottom of the issue.

I’ll keep this thread updated with any insights from the investigation. 😊


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