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

feat(site-header): add optional CTA - FRONT-2514 #2196

Merged
merged 7 commits into from
Sep 21, 2021

Conversation

emeryro
Copy link
Contributor

@emeryro emeryro commented Sep 8, 2021

Add optional call-to-action link to standardised site header
This is done in two phases:

  • in the menu, for mobile display
  • in the site header for desktop

@github-actions
Copy link

github-actions bot commented Sep 13, 2021

cta_link: {
name: 'call to action',
type: { name: 'boolean' },
defaultValue: false,
Copy link
Collaborator

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,
Copy link
Collaborator

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.

Copy link
Collaborator

@planctus planctus left a 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.. ;)

@emeryro emeryro merged commit 02f9097 into v3-dev Sep 21, 2021
@emeryro emeryro deleted the FRONT-2514-header-button branch September 21, 2021 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants