Skip to content

Commit

Permalink
use ExternalLink to hint that docs links open in new window/tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Rua Haszard committed Sep 25, 2023
1 parent 9bc6046 commit 6de1f35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/payment-details/dispute-details/dispute-notice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
import React from 'react';
import { __, sprintf } from '@wordpress/i18n';
import { ExternalLink } from '@wordpress/components';
import { createInterpolateElement } from '@wordpress/element';

/**
Expand Down Expand Up @@ -64,8 +65,7 @@ const DisputeNotice: React.FC< DisputeNoticeProps > = ( {
sprintf( noticeText, shopperDisputeReason ),
{
a: (
// eslint-disable-next-line jsx-a11y/anchor-has-content
<a
<ExternalLink
target="_blank"
rel="noopener noreferrer"
href={ learnMoreDocsUrl }
Expand Down

0 comments on commit 6de1f35

Please sign in to comment.