Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a11y and usability fixes #1134

Merged
merged 18 commits into from
Sep 25, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
a11y: Improve sources page
Fixed some issues in sources.phtml template. made the favicon hidden by aria-hidden="true" because alt="" is not a efficient practise.
  • Loading branch information
Akash Kakkar authored and jtojnar committed Sep 25, 2019
commit 6a09b57d267f16f4e7779e2653241efccdc0d8a7
6 changes: 3 additions & 3 deletions templates/source.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class="source <?= isset($this->source) === false ? 'source-new' : '' ?> <?= (isset($this->source) && isset($this->source['error']) && strlen($this->source['error']) > 0) ? 'error' : '' ?>">
<div class="source-icon">
<?php if (isset($this->source) && isset($this->source['icon']) && $this->source['icon'] != '0') : ?>
<img src="<?= 'favicons/' . $this->source['icon']; ?>" alt="" />
<img src="<?= 'favicons/' . $this->source['icon']; ?>" aria-hidden="true" alt="" />
<?php endif; ?>
</div>

Expand Down Expand Up @@ -81,14 +81,14 @@

<!-- error messages -->
<?php if (isset($this->source) && isset($this->source['error'])) : ?>
<li class="source-error">
<li class="source-error" aria-live="assertive">
<?= $this->source['error']; ?>
</li>
<?php endif; ?>

<!-- save/delete -->
<li class="source-action">
<button class="source-save"><?= \F3::get('lang_source_save')?></button> &bull; <button class="source-cancel"><?= \F3::get('lang_source_cancel')?></button>
<button class="source-save" accesskey="s"><?= \F3::get('lang_source_save')?></button> &bull; <button class="source-cancel" accesskey="c"><?= \F3::get('lang_source_cancel')?></button>
</li>
</ul>

Expand Down