File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ describe('Links', () => {
2929 const element = getByTestId ( 'link' )
3030 expect ( element . tagName ) . toEqual ( 'A' )
3131 expect ( element ) . toHaveAttribute ( 'href' , '/foo' )
32+ expect ( element ) . toHaveAttribute ( 'target' , '_blank' )
33+ expect ( element ) . toHaveAttribute ( 'rel' , 'noopener noreferrer' )
3234 } )
3335
3436 test ( 'ButtonRouteLink' , ( ) => {
Original file line number Diff line number Diff line change @@ -36,11 +36,12 @@ export interface OutgoingLinkProps extends ChakraLinkProps {
3636
3737export const OutgoingLink : React . FC < OutgoingLinkProps > = ( {
3838 children,
39+ isExternal = true ,
3940 showExternalIcon = false ,
4041 ...props
4142} ) => {
4243 return (
43- < ChakraLink { ...props } >
44+ < ChakraLink isExternal = { isExternal } { ...props } >
4445 { children }
4546 { showExternalIcon && (
4647 < Icon
You can’t perform that action at this time.
0 commit comments