-
-
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
Prevent extra brackets{ }
and whitespaces being added on token name searches (mentions)
#2902
Comments
@cuserox I have a fix for this available in Perhaps we could adjust this so after applying it strips out the extra space? For example if you have a token like |
{ }
being added on token name searches{ }
being added on token name searches
{ }
being added on token name searches{ }
and _spaces_ being added on token name searches (mentions)
{ }
and _spaces_ being added on token name searches (mentions){ }
and whitespaces being added on token name searches (mentions)
@six7 makes sense. All in all, this fix should be for no side effects to occur when a user searches tokens 🔨 |
@six7 @macintoshhelper @robinhoodie0823 I have created a Draft MR here, merely because it needs more testing. I believe it works well with my fix, but I wouldn't want to merge it and cause more trouble for V2 (and I'm off this Friday & Monday) 😇 Therefore if it's a pressing fix that needs to go out, please feel free to tweak, test & merge if needed! |
We'll tackle this with #2998 |
Describe the bug
Tweaking the extra space when token search is used (#2789) the way that search results are populated has been slightly broken!
To Reproduce
Steps to reproduce the behavior:
{}
added randomly on the inputExpected behavior
No extra bracket nor spaces should be added when a token name is clicked on after searching.
Screenshots or Screencasts
https://github.com/tokens-studio/figma-plugin/assets/114073780/335dd67b-6bf2-484f-b528-03733e1a3d50
The text was updated successfully, but these errors were encountered: