-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Add setting option to exclude mode from token value #309
base: main
Are you sure you want to change the base?
Conversation
* new setting to allow to only preserve mode in token name but exclude it from token value * add documentation in README.md * extend Checkbox component to ember Info component inline to the checkbox label * update jest moduleMapper to resolve "@src"
@lukasoppermann hi! |
Hey @0m4r, this is good, I just have to review it. I will probably remove the contributors section. I am happy for it to be added, but then we need to do a new PR and add all people who contributed. |
(I am not close to a computer to test at the moment) But, could you help me to replicate your settings with a screenshot? The "new" behavior should be setup by ticking off the "old" checkbox, and tick on the "new" one. ...now that I think about it may not be the best user experience, tho 😓 |
Hey, I updated the naming a bit but this does not matter. However, no matter if the new setting is on or off, it never adds the mode to the name. Adding to the name for me means it should be in the json structure {
base: { // <- (collection)
light: { // <- (mode)
green: {...} This is also how the name is referenced in the value (if the new setting is on). But this does not happen. I expect (but could not test it) that we are missing something in the export or somewhere. I also did not log the name to see if it is actually added. Just FYI I am on vacation for two weeks very soon, so I may not answer for two weeks. |
I have run a few tests and reported the findings here: |
Some updates but not working
Hey @0m4r are you still on this? I agree that the UX seems a bit confusing. Any idea how to fix it? |
Hi Lukas, I am still interested to fix this, but in the last weeks I have not really got a lot of time to spend on this. Let me come back to you with some ideas... |
Add setting configuration to add the mode name to the token name or value. Both token name and value can have the mode added, only one of them or none.
hi @lukasoppermann ,
by combining them, name and value can both be generated including the mode name, only one of them or none. The problem with values that reference variables in the same mode remains unresolved. (I have not updated screenshots and docs yet - I wanted to have a review of the current idea before completing all the work ) |
Pull Request Test Coverage Report for Build 11109230927Details
💛 - Coveralls |
@lukasoppermann I have now completed the work on this PR and updated the README.md. The code is not great, I know... still, what do you think? |
Fix #308