From e9ce4228334b97c621949221948859e8a559e240 Mon Sep 17 00:00:00 2001 From: MadanKumarGovindaswamy Date: Thu, 23 May 2024 11:33:26 +0530 Subject: [PATCH 1/3] Update: Added missing data attribute --- packages/terra-hyperlink/CHANGELOG.md | 3 +++ packages/terra-hyperlink/src/Hyperlink.jsx | 1 + .../tests/jest/__snapshots__/Hyperlink.test.jsx.snap | 1 + 3 files changed, 5 insertions(+) diff --git a/packages/terra-hyperlink/CHANGELOG.md b/packages/terra-hyperlink/CHANGELOG.md index 2d31c54ed02..fae3326bd0c 100644 --- a/packages/terra-hyperlink/CHANGELOG.md +++ b/packages/terra-hyperlink/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +* Fixed + * Added missing data attribute for default variant. + ## 2.70.0 - (May 8, 2024) * Changed diff --git a/packages/terra-hyperlink/src/Hyperlink.jsx b/packages/terra-hyperlink/src/Hyperlink.jsx index 8ce2e83f805..365b18fac7d 100644 --- a/packages/terra-hyperlink/src/Hyperlink.jsx +++ b/packages/terra-hyperlink/src/Hyperlink.jsx @@ -243,6 +243,7 @@ class Hyperlink extends React.Component { role="link" type="button" ref={this.linkRef} + data-focus-styles-enabled > diff --git a/packages/terra-hyperlink/tests/jest/__snapshots__/Hyperlink.test.jsx.snap b/packages/terra-hyperlink/tests/jest/__snapshots__/Hyperlink.test.jsx.snap index d52cdd30a1a..daa996cae54 100644 --- a/packages/terra-hyperlink/tests/jest/__snapshots__/Hyperlink.test.jsx.snap +++ b/packages/terra-hyperlink/tests/jest/__snapshots__/Hyperlink.test.jsx.snap @@ -232,6 +232,7 @@ exports[`Hyperlink should render a external hyperlink 1`] = ` exports[`Hyperlink should render a hyperlink button when oonClick is provided 1`] = ` +`; + exports[`Hyperlink should render a disabled hyperlink 1`] = ` `; -exports[`Hyperlink should render a hyperlink button when oonClick is provided 1`] = ` +exports[`Hyperlink should render a hyperlink button when onClick is provided 1`] = `