Skip to content

Commit

Permalink
Merge pull request #875 from GSA/mmeyer/replace-xlink-href
Browse files Browse the repository at this point in the history
bump dependencies and update depreciaated svg use xlink:href to use href
  • Loading branch information
mark-meyer authored Jan 2, 2025
2 parents ecd89c3 + dda3236 commit b2a9a9a
Show file tree
Hide file tree
Showing 7 changed files with 216 additions and 201 deletions.
397 changes: 206 additions & 191 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@astrojs/check": "^0.9.3",
"@astrojs/mdx": "^3.1.9",
"@astrojs/sitemap": "^3.2.1",
"@uswds/uswds": "3.10.0",
"@uswds/uswds": "3.11.0",
"astro": "^4.16.18",
"dayjs": "^1.11.13",
"typescript": "^5.7.2",
Expand All @@ -32,11 +32,11 @@
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.17.0",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.18.0",
"@uswds/compile": "^1.2.0",
"@typescript-eslint/parser": "^8.18.2",
"@uswds/compile": "^1.2.1",
"eslint": "^9.17.0",
"eslint-plugin-astro": "^1.3.1",
"globals": "^15.13.0",
"globals": "^15.14.0",
"gulp": "^5.0.0",
"linkinator": "^6.1.2",
"pa11y-ci": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/ArrowListItem.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<li class="usa-icon-list__item">
<div class="usa-icon-list__icon">
<svg class="usa-icon" aria-hidden="true" focusable="false" role="img">
<use xlink:href=`${import.meta.env.BASE_URL}images/sprite.svg#${icon}`></use>
<use href=`${import.meta.env.BASE_URL}images/sprite.svg#${icon}`></use>
</svg>
</div>
<div class="usa-icon-list__content">
Expand Down
2 changes: 1 addition & 1 deletion src/components/CheckListItem.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<li class="usa-icon-list__item">
<div class={`usa-icon-list__icon ${color}`}>
<svg class="usa-icon" aria-hidden="true" focusable="false" role="img">
<use xlink:href=`${import.meta.env.BASE_URL}images/sprite.svg#${icon}`></use>
<use href=`${import.meta.env.BASE_URL}images/sprite.svg#${icon}`></use>
</svg>
</div>
<div class="usa-icon-list__content">
Expand Down
4 changes: 2 additions & 2 deletions src/components/GSAHeader.astro
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ show_site_link = show_site_link==='true';
<a href="https://www.linkedin.com/company/gsa-professional-services" class="text-middle" style="font-size:1.125em">
<svg class="usa-icon" aria-hidden="false" focusable="true" role="img">
<title id="linkedin-title">OASIS Plus LinkedIn account</title>
<use xlink:href=`${import.meta.env.BASE_URL}images/sprite.svg#linkedin`></use>
<use href=`${import.meta.env.BASE_URL}images/sprite.svg#linkedin`></use>
</svg>
</a>
<a href="https://twitter.com/GSAProfServices" class="text-middle" style="display:inline; vertical-align:bottom; font-size:1.125em">
<svg class="usa-icon" aria-hidden="false" focusable="true" role="img">
<title id="twitter-title">OASIS Plus Twitter account</title>
<use xlink:href=`${import.meta.env.BASE_URL}images/sprite.svg#twitter`></use>
<use href=`${import.meta.env.BASE_URL}images/sprite.svg#twitter`></use>
</svg>
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion src/components/OasisHelpFooter.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
>
<h3>
<svg class="usa-icon text-primary" aria-hidden="true" role="img">
<use xlink:href=`${import.meta.env.BASE_URL}images/sprite.svg#help_outline`></use>
<use href=`${import.meta.env.BASE_URL}images/sprite.svg#help_outline`></use>
</svg>
Need help with OASIS+?</h3>
We're here to answer your questions.
Expand Down
2 changes: 1 addition & 1 deletion src/pages/buyers-guide/printable.astro
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const toc_buyers_other_pages = buyers_entries.filter(h =>!h.slug.startsWith('res
<button id="print_button" class="usa-button usa-button--outline" onclick="window.print()">
<span class="display-block" aria-hidden="true">
<svg class="usa-icon text-primary text-middle" aria-hidden="true" role="img">
<use xlink:href=`${import.meta.env.BASE_URL}images/sprite.svg#print`></use>
<use href=`${import.meta.env.BASE_URL}images/sprite.svg#print`></use>
</svg> Print
</span>
</button>
Expand Down

0 comments on commit b2a9a9a

Please sign in to comment.