Skip to content

Commit

Permalink
[NOREF] - Removed styling from pdf link (#654)
Browse files Browse the repository at this point in the history
Removed styling from pdf link
  • Loading branch information
patrickseguraoddball authored Jul 31, 2023
1 parent 3cbe166 commit 6f20ba7
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 29 deletions.
23 changes: 16 additions & 7 deletions src/components/ShareExport/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,24 @@ exports[`ShareExportModal matches the snapshot 1`] = `
class="line-height-mono-4"
>
These are created in
<a
aria-label="Open AMS in a new tab"
class="usa-link usa-link--external"
href="https://ams.cmmi.cms.gov"
rel="noopener noreferrer"
target="_blank"
<span
class="mint-no-print"
>
<a
aria-label="Open AMS in a new tab"
class="usa-link usa-link--external"
href="https://ams.cmmi.cms.gov"
rel="noopener noreferrer"
target="_blank"
>
CMMI Analysis & Management System (AMS).
</a>
</span>
<span
class="mint-only-print-inline"
>
CMMI Analysis & Management System (AMS).
</a>
</span>
Skip these fields until your model has been added to AMS. Not all models will have demo codes.
</p>
<div
Expand Down
9 changes: 9 additions & 0 deletions src/stylesheets/print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@
.page-break {
display: none;
}

}

@media screen {
.mint-only-print {
display: none;
}

.mint-only-print-inline {
display: none;
}
}

@media print {
Expand All @@ -19,6 +24,10 @@
display: block !important;
}

.mint-only-print-inline {
display: inline-block !important;
}

.page-break {
display: block !important;
page-break-before: always;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,24 @@ exports[`Read Only Model Plan Summary -- Model Basics matches snapshot 1`] = `
class="line-height-mono-4"
>
These are created in
<a
aria-label="Open AMS in a new tab"
class="usa-link usa-link--external"
href="https://ams.cmmi.cms.gov"
rel="noopener noreferrer"
target="_blank"
<span
class="mint-no-print"
>
<a
aria-label="Open AMS in a new tab"
class="usa-link usa-link--external"
href="https://ams.cmmi.cms.gov"
rel="noopener noreferrer"
target="_blank"
>
CMMI Analysis & Management System (AMS).
</a>
</span>
<span
class="mint-only-print-inline"
>
CMMI Analysis & Management System (AMS).
</a>
</span>
Skip these fields until your model has been added to AMS. Not all models will have demo codes.
</p>
<div
Expand Down
23 changes: 15 additions & 8 deletions src/views/ModelPlan/ReadOnly/ModelBasics/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,22 @@ const ReadOnlyModelBasics = ({

<p className="line-height-mono-4">
{planBasicsMiscT('otherIdentifiersInfo1')}
<TrussLink
aria-label="Open AMS in a new tab"
href="https://ams.cmmi.cms.gov"
target="_blank"
rel="noopener noreferrer"
variant="external"
>

<span className="mint-no-print">
<TrussLink
aria-label="Open AMS in a new tab"
href="https://ams.cmmi.cms.gov"
target="_blank"
rel="noopener noreferrer"
variant="external"
>
{planBasicsMiscT('otherIdentifiersInfo2')}
</TrussLink>
</span>

<span className="mint-only-print-inline">
{planBasicsMiscT('otherIdentifiersInfo2')}
</TrussLink>
</span>

{planBasicsMiscT('otherIdentifiersInfo3')}
</p>
Expand Down
23 changes: 16 additions & 7 deletions src/views/ModelPlan/ReadOnly/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -636,15 +636,24 @@ exports[`Read Only Model Plan Summary matches snapshot 1`] = `
className="line-height-mono-4"
>
These are created in
<a
aria-label="Open AMS in a new tab"
className="usa-link usa-link--external"
href="https://ams.cmmi.cms.gov"
rel="noopener noreferrer"
target="_blank"
<span
className="mint-no-print"
>
<a
aria-label="Open AMS in a new tab"
className="usa-link usa-link--external"
href="https://ams.cmmi.cms.gov"
rel="noopener noreferrer"
target="_blank"
>
CMMI Analysis & Management System (AMS).
</a>
</span>
<span
className="mint-only-print-inline"
>
CMMI Analysis & Management System (AMS).
</a>
</span>
Skip these fields until your model has been added to AMS. Not all models will have demo codes.
</p>
<div
Expand Down

0 comments on commit 6f20ba7

Please sign in to comment.