Skip to content

Commit 06565a5

Browse files
committed
Add aria-hidden="true" to icons
1 parent b8aca56 commit 06565a5

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

index.html

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,17 @@
4141
<body>
4242
<header>
4343
<div class="container">
44-
<h1><img src="static/logo.png" alt="" width="64" height="64"> Source 2 Viewer</h1>
44+
<h1><img src="static/logo.png" alt="" width="64" height="64" aria-hidden="true"> Source 2 Viewer</h1>
4545
<div class="header-buttons">
46-
<a href="https://github.com/ValveResourceFormat/ValveResourceFormat" class="header-github" title="View on GitHub"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="40" height="40"><path d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z" fill="currentColor"></path></svg></a>
46+
<a href="https://github.com/ValveResourceFormat/ValveResourceFormat" class="header-github" title="View on GitHub">
47+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="40" height="40" aria-hidden="true">
48+
<path d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z" fill="currentColor" />
49+
</svg>
50+
</a>
4751
<a href="https://github.com/ValveResourceFormat/ValveResourceFormat/releases" class="header-download" id="js-download-header" title="Download Source 2 Viewer">
48-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z" fill="currentColor"/><path d="M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z" fill="currentColor"/></svg>
52+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" aria-hidden="true">
53+
<path d="M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z" fill="currentColor"/><path d="M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z" fill="currentColor" />
54+
</svg>
4955
DOWNLOAD
5056
</a>
5157
</div>
@@ -59,11 +65,11 @@ <h1><img src="static/logo.png" alt="" width="64" height="64"> Source 2 Viewer</h
5965
<p>This open-source project is based entirely on a reverse engineered effort as there is no Source 2 SDK.</p>
6066
<p class="supported">
6167
All Source 2 projects are supported including
62-
<a href="https://www.counter-strike.net"><img alt="" width="16" height="16" src="static/games/cs2.png"> Counter-Strike 2</a>,
63-
<a href="https://www.dota2.com"><img alt="" width="16" height="16" src="static/games/dota2.png"> Dota 2</a>,
64-
<a href="https://half-life.com"><img alt="" width="16" height="16" src="static/games/alyx.png"> Half-Life: Alyx</a>,
65-
<a href="https://www.steamvr.com"><img alt="" width="16" height="16" src="static/games/steamvr.png"> SteamVR</a>,
66-
<a href="https://playdeadlock.com"><img alt="" width="16" height="16" src="static/games/deadlock.png"> Deadlock</a>,
68+
<a href="https://www.counter-strike.net"><img alt="" width="16" height="16" aria-hidden="true" src="static/games/cs2.png"> Counter-Strike 2</a>,
69+
<a href="https://www.dota2.com"><img alt="" width="16" height="16" aria-hidden="true" src="static/games/dota2.png"> Dota 2</a>,
70+
<a href="https://half-life.com"><img alt="" width="16" height="16" aria-hidden="true" src="static/games/alyx.png"> Half-Life: Alyx</a>,
71+
<a href="https://www.steamvr.com"><img alt="" width="16" height="16" aria-hidden="true" src="static/games/steamvr.png"> SteamVR</a>,
72+
<a href="https://playdeadlock.com"><img alt="" width="16" height="16" aria-hidden="true" src="static/games/deadlock.png"> Deadlock</a>,
6773
and <a href="https://steamdb.info/tech/Engine/Source2/" title="List of Source 2 games on SteamDB">more…</a>
6874
</p>
6975

@@ -96,7 +102,7 @@ <h1><img src="static/logo.png" alt="" width="64" height="64"> Source 2 Viewer</h
96102
<div class="library-list">
97103
<div class="library">
98104
<div class="library-icon">
99-
<img src="static/libraries/console.png" alt="" width="64" height="64">
105+
<img src="static/libraries/console.png" alt="" width="64" height="64" aria-hidden="true">
100106
</div>
101107
<div class="library-description">
102108
<h2>Command line utility</h2>
@@ -107,7 +113,7 @@ <h2>Command line utility</h2>
107113
</div>
108114
<div class="library">
109115
<div class="library-icon">
110-
<img src="static/libraries/vrf.png" alt="" width="64" height="64">
116+
<img src="static/libraries/vrf.png" alt="" width="64" height="64" aria-hidden="true">
111117
</div>
112118
<div class="library-description">
113119
<h2>ValveResourceFormat</h2>
@@ -119,7 +125,7 @@ <h2>ValveResourceFormat</h2>
119125
</div>
120126
<div class="library">
121127
<div class="library-icon">
122-
<img src="static/libraries/vpk.png" alt="" width="64" height="64">
128+
<img src="static/libraries/vpk.png" alt="" width="64" height="64" aria-hidden="true">
123129
</div>
124130
<div class="library-description">
125131
<h2>ValvePak</h2>
@@ -131,7 +137,7 @@ <h2>ValvePak</h2>
131137
</div>
132138
<div class="library">
133139
<div class="library-icon">
134-
<img src="static/libraries/vdf.png" alt="" width="64" height="64">
140+
<img src="static/libraries/vdf.png" alt="" width="64" height="64" aria-hidden="true">
135141
</div>
136142
<div class="library-description">
137143
<h2>ValveKeyValue</h2>

0 commit comments

Comments
 (0)