Skip to content

Commit

Permalink
Merge pull request #4714 from cloud-gov/fix-duplicate-a11y-recs
Browse files Browse the repository at this point in the history
fix: Remove redundant a11y recommendation content
  • Loading branch information
sknep authored Feb 3, 2025
2 parents d7a6730 + 04c9f2b commit 94e4dec
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions frontend/pages/reports/components/ScanFinding.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,33 +246,6 @@ const FindingRecommendation = ({ anchor, solution, sbtType }) => (
))}
</>
)}
{sbtType === 'a11y' && (
<>
{solution.split('\n\n').map((fixList, listindex) => (
<div key={`${anchor}-location-${listindex}`}>
{fixList.split('\n').map((str, i) =>
i === 0 ? (
<h4 key={i} className="usa-summary-box__heading">
{str}
<a
href={`#${anchor}-recommendation`}
className="usa-link target-highlight anchor-indicator"
>
#
</a>
</h4>
) : (
<div key={i} className="usa-summary-box__body">
<ul className="usa-list margin-bottom-2">
<li className="font-body-md">{str}</li>
</ul>
</div>
),
)}
</div>
))}
</>
)}
</div>
</div>
);
Expand Down

0 comments on commit 94e4dec

Please sign in to comment.