-
-
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
Box shadows #306
Box shadows #306
Conversation
…311) * fix lightOrDark visualization by converting hsla before calculating * fix tests
* add textCase and textDecoration * add tests * add more tests * add transforms to allow users to type lowercase * add tests and transforms * introduce small_caps and small_caps_forced * remove log
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/six7/figma-tokens/DfwKAEYjoVk96Gu5VXe9iaegoyyt |
May I try and help with the remaining "Add tests" task? I see there's tests only for the files in the |
Oh sure, that would be great! I just pushed another commit. Right, not everything has coverage right now - tests live (except cypress) right next to their function files. Ideally we'd have a cypress test for editing a box shadow token and adding multiple. I'd love to release this on Friday/weekend - if you dont manage to get to it by then now worries - I could take care of it as well by then 👍 |
Amazing, thanks for all the info 👍 |
I'm not gonna be able to get this done by tomorrow, so I prefer not to block your plans (thanks for the clarity!). I have spent some time getting familiar with the codebase (and also learning cypress) but I need a bit more time to be able to confidently contribute :) I think I found a bug, while testing the feature manually: when you have multiple values for a shadow token, the inputs lose focus on every keystroke. I believe this is caused by the To solve this, I would temporarily add the generated id to the value object (in |
Awesome, thank you! I'll get to it. I think this is due to me removing |
* Box shadows (#306) * add support for multiple box shadows * fix color evaluation * remove logs * remove logs * revert css removal * remove line * remove code not part of boxShadows * fix alias calculation (#307) * fix lightOrDark visualization by converting hsla before calculating (#311) * fix lightOrDark visualization by converting hsla before calculating * fix tests * fixes #295 (#304) * fixes #295 * add spec * add textCase and textDecoration (#303) * add textCase and textDecoration * add tests * add more tests * add transforms to allow users to type lowercase * add tests and transforms * introduce small_caps and small_caps_forced * remove log * add type props * add working pull/update with json * add catch for lightOrDark * fix removal of documentation tokens * move extraProperties to upper layer so isActive works * bump release * add edit boxshadow ui * add pretty import dialog * fix shadow input not updating, styling * add test for filterMatchingStyle * add tests for setEffectValuesOnTarget * add tests for setValuesOnNode * update tests for updateStyles * add test for tokenHelper array * add cypress tests * add cypress spec * fixes #331 * remove log * fix apply shadows * GitHub sync enterprise support & optimizations (#329) * add working gh enterprise sync * Add baseUrl to permission check * remove console log * fix unexpected pull * add checks for future optimizations * add tests * add permission check to restoring * fix git sync permissions * fix duplicate keys * show error when bad credentials * fix cancel import * Allow spaces in token names (#339) * allow spaces in token names * remove unneccessary escape fixes #323 * fix spec * Update tokens.spec.js * Update tokens.spec.js * fix dnd * bump release
This is a Draft PR on Box Shadow improvements.
Fixes #281