Skip to content

Commit

Permalink
More accesibility & contrast tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
danthedeckie committed Mar 14, 2024
1 parent c86a0aa commit 8296f29
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ <h1>Name finder</h1>
</label>
</div>
<div class="buttons">
<button type="button" id="findMatchesButton">Search</button><br />
<button type="button" id="findMatchesButton" aria-live="polite">Search</button><br />
</div>
<table>
<thead>
<td>Original Name</td>
<td>Possible Matches</td>
<td>Score</td>
</thead>
<tbody id="matchesOutput">
<tbody id="matchesOutput" aria-live="polite">
<tr class="certain">
<td>Example almost certain match</td>
<td>...</td>
Expand All @@ -45,9 +45,9 @@ <h1>Name finder</h1>
<td>Example possible match</td>
<td>
Possible match
<span class="joiner"></span>
<span class="joiner" aria-label="or" role="separator"></span>
Similarly possible match
<span class="joiner"></span>
<span class="joiner" aria-label="or" role="separator"></span>
<span class="less-likely">Less Likely match</span>
</td>
<td>33</td>
Expand Down
8 changes: 4 additions & 4 deletions src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ tr:nth-child(even).possible {
}

.unlikely {
color: #555555;
color: #333333;
font-style: italic;
}

.nothing {
color: #aaaaaa;
color: #888888;
font-style: italic;
}

Expand Down Expand Up @@ -161,9 +161,9 @@ span.joiner {
opacity: 1;
}
.unlikely {
color: #222222;
color: #111111;
}
.nothing {
color: #555555;
color: #333333;
}
}
2 changes: 1 addition & 1 deletion src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ buttonEl.addEventListener("click", () => {
<td>${name}</td>
<td><div class="matchoptions">${possibleMatches
.map(makeMatchDisplay)
.join(' <span class="joiner">⊕</span> ')}</div></td>
.join(' <span class="joiner" aria-label="or" role="separator">⊕</span> ')}</div></td>
<td class="score">${score.toFixed(2)}</td>
</tr>`,
);
Expand Down

0 comments on commit 8296f29

Please sign in to comment.