Skip to content

Commit e944d37

Browse files
Fix .sr-only -> .visually-hidden
1 parent d5e3422 commit e944d37

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

templates/_entity_collection_javascript.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function addFormToCollection($collectionHolderClass) {
5353
}
5454
5555
function addCollectionFormDeleteLink($collectionFormLi) {
56-
var $removeFormButton = $('<button type="button" class="btn btn-sm bg-danger text-bg-danger"><i class="fas fa-trash"></i><span class="sr-only">Delete</span></button>');
56+
var $removeFormButton = $('<button type="button" class="btn btn-sm bg-danger text-bg-danger"><i class="fas fa-trash"></i><span class="visually-hidden">Delete</span></button>');
5757
$('div.input-group', $collectionFormLi).append($removeFormButton);
5858
$removeFormButton.on('click', function(e) {
5959
// remove the li for the form

templates/donation/_donation_row.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<td class="text-end" data-order="{{ donation.amount }}">{{ donation.amount|format_currency(donation.currency) }}</td>
2121
<td class="text-end" data-order="{{ donation.processingFee }}">{{ donation.processingFee|format_currency(donation.currency) }}</td>
2222
<td class="text-end font-weight-bold" data-order="{{ donation.netAmount }}">{{ donation.netAmount|format_currency(donation.currency) }}</td>
23-
<td class="text-center" data-order="{{ donation.isRecurring }}">{{ donation.isRecurring ? '<i class="fas fa-redo"></i><span class="sr-only">Yes</span>' : '<span class="sr-only">No</span>' }}</td>
23+
<td class="text-center" data-order="{{ donation.isRecurring }}">{{ donation.isRecurring ? '<i class="fas fa-redo"></i><span class="visually-hidden">Yes</span>' : '<span class="visually-hidden">No</span>' }}</td>
2424
<td>
2525
{% if donation.id %}
2626
<a href="{{ path('donation_edit', {id: donation.id}) }}"><i class="fas fa-edit fa-fw"></i></a>

templates/security/login.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
{% else %}
2323
<div class="h3 mb-3 font-weight-normal">Please sign in</div>
2424
{% endif %}
25-
<label for="inputEmail" class="sr-only">Email address</label>
25+
<label for="inputEmail" class="visually-hidden">Email address</label>
2626
<input name="email" type="email" id="inputEmail" class="form-control" placeholder="Email address" value="{{ last_username }}" required autofocus>
27-
<label for="inputPassword" class="sr-only">Password</label>
27+
<label for="inputPassword" class="visually-hidden">Password</label>
2828
<input name="password" type="password" id="inputPassword" class="form-control" placeholder="Password" required>
2929
<div class="checkbox mb-3">
3030
<label>

0 commit comments

Comments
 (0)