-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat(site-header): add optional CTA - FRONT-2514 #2196
Conversation
cta_link: { | ||
name: 'call to action', | ||
type: { name: 'boolean' }, | ||
defaultValue: false, |
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 defaultValue
is not needed, we now set it via the getArgs()
which you did, so you can remove it here .. ;)
argTypes.cta_link = { | ||
name: 'call to action', | ||
type: { name: 'boolean' }, | ||
defaultValue: false, |
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.
Same as before, the object we build in getArgs()
is replacing the defaultValue
for each control as we were used to set them.
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.
Two lines to be removed, for the rest for me is fine.. ;)
Add optional call-to-action link to standardised site header
This is done in two phases: