Skip to content
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

update readme: fallback cta icon is star #706

Merged
merged 1 commit into from
Apr 21, 2020
Merged

update readme: fallback cta icon is star #706

merged 1 commit into from
Apr 21, 2020

Conversation

oshi97
Copy link
Contributor

@oshi97 oshi97 commented Apr 20, 2020

No description provided.

@oshi97
Copy link
Contributor Author

oshi97 commented Apr 20, 2020

@@ -652,7 +652,8 @@ Note: A CTA without both a label and icon will not be rendered.
const callsToAction = [{
// Label below the CTA icon, default null
label: 'cta label',
// Icon name for the CTA that is one of the SDK icons, default to undefined (no icon)
// Icon name for the CTA that is one of the SDK icons, defaults to undefined (no icon). If your icon
// is not recognized it will default to 'star'.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this what happens? That seems fancy/magical and we don't do that anywhere else for icons, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh no we do this everywhere for icons!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woah, TIL! Awesome, LGTM!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's in lines 146-149 of handlebarsrenderer.js

@oshi97 oshi97 merged commit 2631169 into v0.13.3 Apr 21, 2020
@oshi97 oshi97 deleted the cta-icon-readme branch April 21, 2020 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants