Skip to content

Commit

Permalink
fix: small accessibility fix for IATI logos in header and footer
Browse files Browse the repository at this point in the history
Added ARIA labels to the IATI logo links in the header and footer
and null alt text attributes to the img tags to improve accessibility.
  • Loading branch information
chrisarridge committed Aug 21, 2024
1 parent 1acf1cb commit c186bca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/scss/layout/footer/footer.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ export const Footer: Story = {
render: (args) => html`
<footer class="iati-footer">
<div>
<a href="https://iatistandard.org/">
<a href="https://iatistandard.org/" aria-label="Go to IATI homepage">
<img
src="http://styles.iatistandard.org/assets/svg/source/logo-white.svg"
class="iati-footer__logo"
alt=""
/>
</a>
<div class="iati-footer__list">
Expand Down
3 changes: 2 additions & 1 deletion src/scss/layout/header/header.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ export const Header: Story = {
render: () => html`
<header class="iati-header">
<div>
<a href="https://iatistandard.org/">
<a href="https://iatistandard.org/" aria-label="Go to IATI homepage">
<img
src="http://styles.iatistandard.org/assets/svg/source/logo-colour.svg"
class="iati-header__logo"
alt=""
/>
</a>
</div>
Expand Down

0 comments on commit c186bca

Please sign in to comment.