Skip to content
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

Closed
keeganedwin opened this issue Dec 13, 2023 · 8 comments · Fixed by #2484 or #2842
Closed

Unable To Apply Max-width Tokens On Component Instances #2426

keeganedwin opened this issue Dec 13, 2023 · 8 comments · Fixed by #2484 or #2842
Assignees
Labels
bug Something isn't working ❇️ Featurebase Roadmap Issue was added to a featurebase roadmap post Figma component instance plugin v2 variables, UI, WTCG format, Bitbucket token type dimensions

Comments

@keeganedwin
Copy link
Collaborator

keeganedwin commented Dec 13, 2023

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 is quite impactful for us because it means not only are we unable to see proper max-widths on the instances with theme/set overrides, but if a designer accidentally types in a max-width value on the instance, it sticks i.e. the tokenized value from the master never resets it back to what it should be.

This also seems similar to #2270

To Reproduce
Steps to reproduce the behavior:

  1. Select main component
  2. Check Test set
  3. See change
  4. Uncheck Test set
  5. Select component instance
  6. Check Test set
  7. See error

Expected 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

@keeganedwin keeganedwin added the bug Something isn't working label Dec 13, 2023
@keeganedwin keeganedwin changed the title Unable To Override Max-width Tokens On Component Instances Unable To Apply Max-width Tokens On Component Instances Dec 13, 2023
@rbosker rbosker moved this from 📥 Triage to 📤 Ready for dev in Tokens Studio for Figma Roadmap Dec 15, 2023
@robinhoodie0823 robinhoodie0823 moved this from 📤 Ready for dev to 🕜 In Progress in Tokens Studio for Figma Roadmap Dec 27, 2023
@robinhoodie0823 robinhoodie0823 self-assigned this Dec 27, 2023
@robinhoodie0823 robinhoodie0823 moved this from 🕜 In Progress to 👀 Needs review in Tokens Studio for Figma Roadmap Dec 27, 2023
@onurorhon
Copy link

onurorhon commented Jan 2, 2024

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

Thanks, –oo

@robinhoodie0823 robinhoodie0823 moved this from 👀 Needs review to 🕜 In Progress in Tokens Studio for Figma Roadmap Jan 3, 2024
@six7
Copy link
Collaborator

six7 commented Jan 4, 2024

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

I'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 six7 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2024
@github-project-automation github-project-automation bot moved this from 🕜 In Progress to ✅ Done in Tokens Studio for Figma Roadmap Jan 4, 2024
@onurorhon
Copy link

onurorhon commented Jan 8, 2024

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

Can we reopen this ticket?

@six7 six7 reopened this Jan 9, 2024
@github-project-automation github-project-automation bot moved this from ✅ Done to 👀 Needs review in Tokens Studio for Figma Roadmap Jan 9, 2024
@six7
Copy link
Collaborator

six7 commented Jan 9, 2024

Oh that makes sense, thanks for highlighting that part 👍 Reopened the issue

@esthercheran esthercheran moved this from 👀 Needs review to 📤 Ready for dev in Tokens Studio for Figma Roadmap Jan 16, 2024
@robinhoodie0823 robinhoodie0823 moved this from 📤 Ready for dev to 🕜 In Progress in Tokens Studio for Figma Roadmap Jan 30, 2024
@robinhoodie0823 robinhoodie0823 moved this from 🕜 In Progress to 👀 Needs review in Tokens Studio for Figma Roadmap Feb 8, 2024
@six7
Copy link
Collaborator

six7 commented Feb 8, 2024

Will be fixed in 2.0

@six7 six7 closed this as completed Feb 8, 2024
@github-project-automation github-project-automation bot moved this from 👀 Needs review to ✅ Done in Tokens Studio for Figma Roadmap Feb 8, 2024
@SamIam4Hyma SamIam4Hyma added the ❇️ Featurebase Roadmap Issue was added to a featurebase roadmap post label Apr 8, 2024
@SamIam4Hyma
Copy link
Collaborator

Added to Featurebase Roadmap- 🐛 V2 Bug Fixes

1 similar comment
@SamIam4Hyma
Copy link
Collaborator

Added to Featurebase Roadmap- 🐛 V2 Bug Fixes

@keeganedwin
Copy link
Collaborator Author

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:
https://github.com/tokens-studio/figma-plugin/assets/93133012/99862b59-4a02-4b13-bc6b-dc9e3e65c533

@keeganedwin keeganedwin reopened this Jun 7, 2024
@github-project-automation github-project-automation bot moved this from ✅ Done to 👀 Needs review in Tokens Studio for Figma Roadmap Jun 7, 2024
@six7 six7 moved this from 👀 Needs review to 📤 Ready for dev in Tokens Studio for Figma Roadmap Jun 11, 2024
@LukeFinch LukeFinch self-assigned this Jun 11, 2024
@LukeFinch LukeFinch moved this from 📤 Ready for dev to 👀 Needs review in Tokens Studio for Figma Roadmap Jun 11, 2024
@six7 six7 moved this from 👀 Needs review to 🕜 In Progress in Tokens Studio for Figma Roadmap Jun 12, 2024
@robinhoodie0823 robinhoodie0823 moved this from 🕜 In Progress to 👀 Needs review in Tokens Studio for Figma Roadmap Jun 14, 2024
@six7 six7 closed this as completed Jun 15, 2024
@github-project-automation github-project-automation bot moved this from 👀 Needs review to ✅ Done in Tokens Studio for Figma Roadmap Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment