-
Notifications
You must be signed in to change notification settings - Fork 406
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
UIKit lineage still links to excluded patterns #845
Comments
As I understand states (which can also be excluded), a pattern of a higher state that includes a pattern with a lower state will inherit the lower state. Does excluding tags work differently by design? The other solution is of course to exclude any pattern that depends on an excluded pattern, since there is already have a concept of simply hiding patterns. Asking because I can't find the answer in either of the two issues above. |
tags are a proposed system not yet implemented, but would not have an inheritance logic built atop them. they would be labels for use within filtering and sorting mechanism, like How we handle patterns that rely on excluded patterns is a good question. When initially envisioning this, I considered this exclusion visual only in the finished product, but what I instead implemented was a non-write. This creates problems anywhere the pattern can be navigated too (lineage, pattern links, search maybe) and therefore each should be considered. Right now users will get missing patterns errors. Not sure if I answered your question. Curious, how do you think it should work? |
Thanks, that pretty much answers my question. What I thought
To simply hide I'm not sure which of the two behaviors would be the most useful to me, I feel that I have too little experience with the idea to confidently answer your question.
|
As part of #811 and #840 we delivered the ability to exclude patterns in a UIKit. This works for both the writing of the files and for them showing up in the navigation, but a pattern's lineage may still include an excluded pattern, causing a link to it appear. Clicking the link causes Pattern Lab to break.
The fix for this would involve combing through each pattern's lineage at the right time - likely right before build (?) within the context of individual uikits, so as to remove lineage nodes (both lineage and lineageR) from the pattern where the nodes are in the exclusion lists (state and tags).
The text was updated successfully, but these errors were encountered: