Skip to content

Commit

Permalink
πŸ› hide icons in dialogs from screen readers
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Nov 12, 2024
1 parent 90ff034 commit 2d529a4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/front-end/app/components/dialogs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export default Dialogs;
<legend>Alert</legend>
<p>{{ dialogText }}</p>
<div>
<button class="fr" type="submit">βœ… OK</button>
<button class="fr" type="submit">
<span aria-hidden="true">βœ…</span>
OK
</button>
</div>
</fieldset>
</form>
Expand All @@ -77,9 +80,13 @@ export default Dialogs;
<legend>Confirm</legend>
<p>{{ dialogText }}</p>
<div>
<button type="submit" value="Cancel">🚫 Cancel</button>
<button type="submit" value="Cancel">
<span aria-hidden="true">🚫</span>
Cancel
</button>
<button class="fr" value="OK" @click.prevent="confirmed">
βœ… OK
<span aria-hidden="true">βœ…</span>
OK
</button>
</div>
</fieldset>
Expand Down

0 comments on commit 2d529a4

Please sign in to comment.