-
Notifications
You must be signed in to change notification settings - Fork 237
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
Investigate making macros work better with the prototype kit #548
Comments
I did a small experiment how downstream macros can wrap upstream components, which might help this: https://glitch.com/edit/#!/downstream-nunjucks-macro-example Since we have control over the kit we could add options merging custom functions to make it more robust. |
I think a question here is if we did this (and it seems very useful to do so) how would we document it in the design system? The nunjucks tab would be different for prototyping and production. |
Yeah, we need to weigh up the overhead of a forked journey I guess |
This is relevant: #624 |
@joelanman to look for related ticket raised by Ollie |
From support, a checkbox
item
could look like this:In the kit we could make this much simpler.
checked
automatically, by looking at the name and value and checking it against the stored data.Leading to:
This would be relevant to other macros too.
I wonder if we can have macros in the prototype kit that try to do this extra work first, then call the Frontend macros. That way we keep in sync with Frontend macros.
The text was updated successfully, but these errors were encountered: