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

add target option to links #196

Merged
merged 2 commits into from
Nov 15, 2023
Merged

Conversation

summer-cook
Copy link
Contributor

@summer-cook summer-cook commented Nov 15, 2023

Story

Adds a target prop so users can optionally pass target: _blank in order to open footer links in a new tab

Related

Acceptance

  • As a user, I can open a link in a new tab if it has the target: _blank prop

Video

https://share.zight.com/04ud8wnJ

}

Link.defaultProps = {
addClass: '',
icon: '',
style: {},
target: ''
Copy link
Member

@alishaevn alishaevn Nov 15, 2023

Choose a reason for hiding this comment

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

the default value for this attribute is target='_self'. (ref: docs) what behavior does an empty string perform?

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 does the exact same thing as target='_self', but i will change it to self if for best practices purposes

@summer-cook summer-cook merged commit a10e467 into main Nov 15, 2023
@alishaevn alishaevn deleted the footer-links-in-new-tab-option branch February 27, 2024 21:28
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.

3 participants