-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution][Detections] Follow up cleanup after two bugfixes #87516
Conversation
export const ExternalLink: FC<ExternalLinkProps> = ({ url, children, ariaLabel }) => { | ||
if (!children) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<EuiLink href={url} aria-label={ariaLabel} external target="_blank" rel="noopener"> | ||
{text} | ||
</EuiLink> | ||
<EuiToolTip content={url} position="top" data-test-subj="externalLinkTooltip"> | ||
<EuiLink | ||
href={url} | ||
aria-label={ariaLabel} | ||
external | ||
target="_blank" | ||
rel="noopener" | ||
data-test-subj="externalLink" | ||
> | ||
{children} | ||
</EuiLink> | ||
</EuiToolTip> |
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 guy needs unification with ExternalLink
component from x-pack/plugins/security_solution/public/common/components/links/index.tsx
. I'll create a ticket for that and address separately targeting 7.12+, because this change can touch too many things in the UI.
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.
LGTM 👍
💚 Build SucceededMetrics [docs]Async chunks
Distributable file count
To update your PR or re-run it, just comment with: |
…lastic#87516) ## Summary This is a follow-up PR addressing some of the comments in: - elastic#86908 - elastic#87004
…lastic#87516) ## Summary This is a follow-up PR addressing some of the comments in: - elastic#86908 - elastic#87004
Summary
This is a follow-up PR addressing some of the comments in:
Checklist
[ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support[ ] Documentation was added for features that require explanation or tutorials[ ] Unit or functional tests were updated or added to match the most common scenarios[ ] Any UI touched in this PR is usable by keyboard only (learn more about keyboard accessibility)[ ] Any UI touched in this PR does not create any new axe failures (run axe in browser: FF, Chrome)[ ] This renders correctly on smaller devices using a responsive layout. (You can test this in your browser)[ ] This was checked for cross-browser compatibilityFor maintainers