-
Notifications
You must be signed in to change notification settings - Fork 405
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
The styleModifier variabile keeps previous values #444
Comments
I've uploaded my test case which shows this functionality working as designed. |
Hi, @bmuenzenmeyer, to see the bug in action you should put the modified pattern as the last of the patterns that use that particular include. I'm having the same problem and to see the bug in action I created these patterns: 01-button.mustache 02-include-mod.mustache But then, if you add a third pattern without modification the bug disappears 03-include.mustache In your example you should put the modified button in "Zzanother" to see the bug. BUGNO BUG |
I can confirm this bug - mods going down to atoms. |
@gfnool thanks for the additional steps - I've reproduced now. Should be easy enough to catch with a unit test and then fix. |
I've pushed this to You can update your If I get some positive vibes from you all, I will start version build. |
I confirm the fix, using #dev 2.5.0. |
I am using Pattern Lab Node
v2.3.0
onMac
, with Nodev6.2.2
, using theGulp
Edition.Expected Behavior
When looking at a single pattern, the
styleModifier
should be empty (or ignored).Actual Behavior
When
styleModifier
is used in a page to modify an included pattern, the single pattern inherits that styleModifier instead of being clean.Steps to Reproduce
#1
with astyleModifier
#2
and set a styleModifier for the#1
pattern#1
styleModifier
set in#2
instead of being cleanThe text was updated successfully, but these errors were encountered: