Skip to content

Commit a8de0d6

Browse files
committed
fix pa11y violations from nested buttons
1 parent cbbfb09 commit a8de0d6

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

pages/metrics/metrics.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ <h2 class="usa-heading">Metrics by Organization:</h2>
2424
</select>
2525
</div>
2626
<div class="mt-2">
27-
<a href="" id="metrics-reports__link">
28-
<button class="usa-button" type="button">
29-
View Report
30-
</button>
27+
<a class="usa-button" href="{{helpers.baseUrl}}/metrics/organization/{{metrics.orgList[0].name}}/index.html" id="metrics-reports__link">
28+
View Report
3129
</a>
3230
</div>
3331
</div>

pages/metrics/metrics_per-org.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ <h3 class="usa-heading">{{org.display_name}}</h3>
1616
<h6 class="usa-heading">Report Date: {{ metrics.end_date}}</h6>
1717
<p class="text-italic mt-3">All data shown represents the calendar month which ends at the Report Date.
1818
Data updates at the beginning of each new month to show the calendar month past.</p>
19-
<a href="https://harvest.data.gov/organization/{{org.name}}">
20-
<button class="usa-button" type="button">View Harvest Source Data</button>
21-
</a>
19+
<a class="usa-button" href="https://harvest.data.gov/organization/{{org.name}}">View Harvest Source Data</a>
2220
<div class="mt-5"></div>
2321
{% for block in metrics.orgs[org.name] %}
2422
{% assign cacheKey = block.meta.key %}

0 commit comments

Comments
 (0)