diff --git a/docroot/modules/custom/nci_definition/config/install/nci_definition.settings.yml b/docroot/modules/custom/nci_definition/config/install/nci_definition.settings.yml index 3245ac6a55..23120839b4 100644 --- a/docroot/modules/custom/nci_definition/config/install/nci_definition.settings.yml +++ b/docroot/modules/custom/nci_definition/config/install/nci_definition.settings.yml @@ -1,4 +1,4 @@ -definition_classes: 'definition' +definition_classes: 'cgdp-definition-link' nci_glossary_dictionary_urls: - dictionary: 'Cancer.gov' audience: 'Patient' diff --git a/docroot/profiles/custom/cgov_site/themes/custom/cgov/cgov_common/src/libraries/analytics/analytics.js b/docroot/profiles/custom/cgov_site/themes/custom/cgov/cgov_common/src/libraries/analytics/analytics.js index e724d99a9c..1b40032ccc 100755 --- a/docroot/profiles/custom/cgov_site/themes/custom/cgov/cgov_common/src/libraries/analytics/analytics.js +++ b/docroot/profiles/custom/cgov_site/themes/custom/cgov/cgov_common/src/libraries/analytics/analytics.js @@ -237,7 +237,7 @@ $(window).on("load", function () { NCIAnalytics.BlogSubscribeClick(this, pageName); }); - $("#cgvBody.cgvblogpost").on("click", "a:not(.definition)", function () { + $("#cgvBody.cgvblogpost").on("click", "a:not(.definition):not(.cgdp-definition-link)", function () { var $this = $(this); var linkText = $this.text(); NCIAnalytics.BlogBodyLinkClick(this, linkText, pageName); diff --git a/docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/front-end/src/legacy/styles/_mainContent.scss b/docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/front-end/src/legacy/styles/_mainContent.scss index 61fa3438f8..489fe42256 100644 --- a/docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/front-end/src/legacy/styles/_mainContent.scss +++ b/docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/front-end/src/legacy/styles/_mainContent.scss @@ -24,7 +24,7 @@ a:hover, a:focus { text-decoration: underline; } -a.definition { +a.definition, a.cgdp-definition-link { color: $body-font-color; text-decoration: underline; text-decoration-style: dotted; diff --git a/docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/front-end/src/lib/components/cgdp-definition/styles/cgdp-definition-link.scss b/docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/front-end/src/lib/components/cgdp-definition/styles/cgdp-definition-link.scss index d8327b650b..b1ee4977f9 100644 --- a/docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/front-end/src/lib/components/cgdp-definition/styles/cgdp-definition-link.scss +++ b/docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/front-end/src/lib/components/cgdp-definition/styles/cgdp-definition-link.scss @@ -1,5 +1,6 @@ @use 'uswds-core' as *; +.cgdpl a.cgdp-definition-link, a.cgdp-definition-link, .cgdp-field-intro-text a.definition { @include u-color($theme-text-color); @@ -10,5 +11,7 @@ a.cgdp-definition-link, &:hover, &:focus { text-decoration-style: solid; + @include u-color($theme-text-color); } } +