-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable To Apply Max-width Tokens On Component Instances #2426
Comments
For some reason, my original screencast was replaced with another one in the ticket description, and it seems to be a bit misleading in terms of describing the issue. @robinhoodie0823 I just wanted you to see the original too, hoping that it'll help with verifying the fix. (The issue is simply: max-width applied on an instance doesn't work. It only works on the master). max-width-bug-on-instance.movThanks, –oo |
The problem here lies in the fact that Figma cannot update maxWidth or minWidth component instances. Even if you tried doing it in Figma itself without the help of a plugin, you cannot do it. CleanShot.2024-01-04.at.22.33.37.mp4I'm closing this, as there's nothing we can do here unfortunately. It's just how Figma works. If you feel this is done in error, feel free to comment (maybe i misunderstood) |
@six7 yes, it makes sense that Figma cannot override the max-width of the nested element. But the instance itself should follow the max-width token, because Figma allows for it. In your example, if you select the instance "Rectangle 2", and apply a max-width token, you'll see that it doesn't work (even though Figma does allow the max-width value natively) max-width-on-instance.movCan we reopen this ticket? |
Oh that makes sense, thanks for highlighting that part 👍 Reopened the issue |
Will be fixed in 2.0 |
Added to Featurebase Roadmap- 🐛 V2 Bug Fixes |
1 similar comment
Added to Featurebase Roadmap- 🐛 V2 Bug Fixes |
Reopening as this issue is still present in RC7 (@cuserox). Here's the test file with steps mentioned on how to reproduce. Here's also a video of the bug: |
Describe the bug
When applying the max-width token directly to an instance, it does not get applied/override. The max-width override however works as expected when applied to the master component.
This also seems similar to #2270
To Reproduce
Steps to reproduce the behavior:
Test
setTest
setTest
setExpected behavior
Max/min-width tokens should also override on instances.
Screenshots or Screencasts
https://github.com/tokens-studio/figma-plugin/assets/93133012/68d3ff55-3683-425c-8d84-ac1e0fc87094
Figma file (optional)
Test board
The text was updated successfully, but these errors were encountered: