-
Notifications
You must be signed in to change notification settings - Fork 601
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
chore: refactor repeat select template by section #3259
chore: refactor repeat select template by section #3259
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To my eye, this is much cleaner. This way of factoring things makes it easier to change individual templates or add new ones without really touching existing code (Yay for the open close principle!).
Thanks again for your help in getting me past my last sticking point, @EisenbergEffect. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
smoked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome! So much easier to follow. Smoked.
...website/src/app/components/content-placement-container/content-placement-container.styles.ts
Show resolved
Hide resolved
)} | ||
` | ||
)} | ||
${repeat(x => x.selectData(), template)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
neat
* implement template select for reusability * fix feature card columns * fix feature counter number placement * fix hover styling in feature section * update framework template * Update design system imports * Consolidate css Co-authored-by: Michael Benson <[email protected]>
* implement template select for reusability * fix feature card columns * fix feature counter number placement * fix hover styling in feature section * update framework template * Update design system imports * Consolidate css Co-authored-by: Michael Benson <[email protected]>
Description
Refactor content placement container to select template based on section. The selectTemplate and selectData functions in the content-placement-container component pass the imported template and data based on the value of the select attribute provided, allowing for removal of the $when function. Section templates have been separated to their own individual files.
Update styling for feature section in content placement container.
Motivation & context
Issue type checklist
Is this a breaking change?
Adding or modifying component(s) in
@microsoft/fast-components
checklistProcess & policy checklist