if (count($this->missing) > 0) {
$ko = ($translated ? _T('Ko') : 'Ko');
foreach ($this->missing as $m) {
- $html .= '<li><span>' . $m . '</span><span><i class="ui red times icon" aria-hidden="true"></i><span class="displaynone">' .
+ $html .= '<li><span>' . $m . '</span><span><i class="ui red times icon" aria-hidden="true"></i><span class="visually-hidden">' .
$ko . '</span></span></li>';
}
}
if (count($this->good) > 0) {
$ok = ($translated ? _T('Ok') : 'Ok');
foreach ($this->good as $m) {
- $html .= '<li><span>' . $m . '</span><span><i class="ui green check icon" aria-hidden="true"></i><span class="displaynone">' .
+ $html .= '<li><span>' . $m . '</span><span><i class="ui green check icon" aria-hidden="true"></i><span class="visually-hidden">' .
$ok . '</span></span></li>';
}
}
{
$img_name = ($arg === true) ? 'green check' : 'red times';
$alt = ($arg === true) ? _T("Ok") : _T("Ko");
- $img = '<i class="ui ' . $img_name . ' icon" aria-hidden="true"></i><span class="displaynone">' . $alt . '</span>';
+ $img = '<i class="ui ' . $img_name . ' icon" aria-hidden="true"></i><span class="visually-hidden">' . $alt . '</span>';
return $img;
}
<tfoot>
<tr>
<td data-scope="row">
- <span class="displaynone">
+ <span class="visually-hidden">
{% if class == 'Status' %}
{{ _T("New status") }}
{% else %}
</td>
<td class="left" data-title="{{ _T("Name") }}">
<div class="required field">
- <label for="name" class="displaynone">{{ _T("Name") }}</label>
+ <label for="name" class="visually-hidden">{{ _T("Name") }}</label>
<input size="40" type="text" name="{{ fields.libelle }}" required="required"/>
</div>
</td>
<input type="text" name="social_{{ social.id }}" id="social_{{ social.id }}" value="{{ social.url }}" class="large"/>
<a href="#" class="ui icon red button delete delsocial" title="{{ _T("Remove %type")|replace({"%type": social.getSystemType(social.type)})|e() }}">
<i class="trash icon" aria-hidden="true"></i>
- <span class="displaynone">{{ _T("Remove %type")|replace({"%type": social.getSystemType(social.type)})|e() }}</span>
+ <span class="visually-hidden">{{ _T("Remove %type")|replace({"%type": social.getSystemType(social.type)})|e() }}</span>
</a>
</div>
</div>
title="{{ _T("Previous")|escape }}"
>
<i class="step backward icon" aria-hidden="true"></i>
- <span class="displaynone">{{ _T("Previous") }}</span>
+ <span class="visually-hidden">{{ _T("Previous") }}</span>
</a>
<div class="item">{{ navigate.pos }} / {{ navigate.count }}</div>
<a
class="item{% if navigate.next is not defined %} disabled{% endif %}"
title="{{ _T("Next")|escape }}"
>
- <span class="displaynone">{{ _T("Next") }}</span>
+ <span class="visually-hidden">{{ _T("Next") }}</span>
<i class="step forward icon" aria-hidden="true"></i>
</a>
</nav>
{% if mode == "compact" %}
<div class="ui{% if cur_route in my_routes %} active-menu{% endif %} dropdown navigation item no-touch tooltip" data-html="{{ title }}" data-position="right center">
<i class="{{ icon }} icon" aria-hidden="true"></i>
- <span class="displaynone">{{ title }}</span>
+ <span class="visually-hidden">{{ title }}</span>
<i class="dropdown icon" aria-hidden="true"></i>
<div class="menu">
{% for item in items %}
title="{{ title }}"
>
<i class="ui {{ icon }} icon" aria-hidden="true"></i>
- <span class="displaynone">{{ title }}</span>
+ <span class="visually-hidden">{{ title }}</span>
</a>
{% endmacro %}
<tfoot>
<tr>
<td data-scope="row">
- <span class="displaynone">
+ <span class="visually-hidden">
{{ _T("Add payment type") }}
</span>
</td>
<td class="left" data-title="{{ _T("Label") }}">
<div class="required field">
- <label for="name" class="displaynone">{{ _T("Name") }}</label>
+ <label for="name" class="visually-hidden">{{ _T("Name") }}</label>
<input size="20" type="text" name="name" required="required"/>
</div>
</td>
<tfoot>
<tr>
<td data-scope="row">
- <span class="displaynone">
+ <span class="visually-hidden">
{{ _T("Add title") }}
</span>
</td>
<td class="left" data-title="{{ _T("Short form") }}">
<div class="required field">
- <label for="short_label" class="displaynone">{{ _T("Short form") }}</label>
+ <label for="short_label" class="visually-hidden">{{ _T("Short form") }}</label>
<input size="20" type="text" name="short_label" required="required"/>
</div>
</td>
<td class="left" data-title="{{ _T("Long form") }}">
<div class="required field">
- <label for="long_label" class="displaynone">{{ _T("Long form") }}</label>
+ <label for="long_label" class="visually-hidden">{{ _T("Long form") }}</label>
<input size="20" type="text" name="long_label" required="required"/>
</div>
</td>
>
<i class="plus tiny icon" aria-hidden="true"></i>
<i class="user check icon" aria-hidden="true"></i>
- <span class="displaynone">{{ _T("Create a new fee that will be attached to the current transaction") }}</span>
+ <span class="visually-hidden">{{ _T("Create a new fee that will be attached to the current transaction") }}</span>
</a>
<a
href="{{ url_for("addContribution", {"type": constant('Galette\\Entity\\Contribution::TYPE_DONATION')}) }}?trans_id={{ contribution.transaction.id }}"
>
<i class="plus tiny icon" aria-hidden="true"></i>
<i class="gift icon" aria-hidden="true"></i>
- <span class="displaynone">{{ _T("Create a new donation that will be attached to the current transaction") }}</span>
+ <span class="visually-hidden">{{ _T("Create a new donation that will be attached to the current transaction") }}</span>
</a>
{% endif %}
</div>
</span>
{% if contribution.isTransactionPart() %}
<i class="ui link icon" aria-hidden="true"></i>
- <span class="displaynone">{{ _T("Transaction: %s")|replace({"%s": contribution.transaction.description}) }}</span>
+ <span class="visually-hidden">{{ _T("Transaction: %s")|replace({"%s": contribution.transaction.description}) }}</span>
{% endif %}
{% endif %}
{% if not contribution.isTransactionPart() %}
<tr class="{% if loop.index % 2 == 0 %}even{% else %}odd{% endif %}">
<td data-scope="row">
{{ loop.index }}
- <span class="displaynone">
+ <span class="visually-hidden">
{{ _T("History entry %id")|replace({"%id": loop.index}) }}
</span>
</td>
{% else %}
{{ loop.index }}
{% endif %}
- <span class="displaynone">
+ <span class="visually-hidden">
{{ _T('Mailing entry %id')|replace({'%id': log.mailing_id}) }}
</span>
</td>
title="{{ _T("Translate '%s'")|replace({'%s': pref.pref_slogan}) }}"
>
<i class="language icon" aria-hidden="true"></i>
- <span class="displaynone">{{ _T("Translate '%s'")|replace({'%s': pref.pref_slogan}) }}</span>
+ <span class="visually-hidden">{{ _T("Translate '%s'")|replace({'%s': pref.pref_slogan}) }}</span>
</a>
</div>
</div>
title="{{ _T("Translate '%s'")|replace({"%s": pref.pref_card_abrev}) }}"
>
<i class="language icon" aria-hidden="true"></i>
- <span class="displaynone">{{ _T("Translate '%s'")|replace({'%s': pref.pref_card_abrev}) }}</span>
+ <span class="visually-hidden">{{ _T("Translate '%s'")|replace({'%s': pref.pref_card_abrev}) }}</span>
</a>
</div>
<span class="exemple">{{ _T("(10 characters max)") }}</span>
title="{{ _T("Translate '%s'")|replace({"%s": pref.pref_card_strip}) }}"
>
<i class="language icon" aria-hidden="true"></i>
- <span class="displaynone">{{ _T("Translate '%s'")|replace({'%s': pref.pref_card_strip}) }}</span>
+ <span class="visually-hidden">{{ _T("Translate '%s'")|replace({'%s': pref.pref_card_strip}) }}</span>
</a>
</div>
<span class="exemple">{{ _T("(65 characters max)") }}</span>
>
<i class="plus tiny icon" aria-hidden="true"></i>
<i class="user check icon" aria-hidden="true"></i>
- <span class="displaynone">{{ _T("Create a new fee that will be attached to the current transaction") }}</span>
+ <span class="visually-hidden">{{ _T("Create a new fee that will be attached to the current transaction") }}</span>
</a>
<a
href="{{ url_for("addContribution", {"type": constant('Galette\\Entity\\Contribution::TYPE_DONATION')}) }}?trans_id={{ transaction.id }}"
>
<i class="plus tiny icon" aria-hidden="true"></i>
<i class="gift icon" aria-hidden="true"></i>
- <span class="displaynone">{{ _T("Create a new donation that will be attached to the current transaction") }}</span>
+ <span class="visually-hidden">{{ _T("Create a new donation that will be attached to the current transaction") }}</span>
</a>
<a
href="#"
id="contribslist"
>
<i class="receipt icon" aria-hidden="true"></i>
- <span class="displaynone">{{ _T("Select an existing contribution in the database, and attach it to the current transaction") }}</span>
+ <span class="visually-hidden">{{ _T("Select an existing contribution in the database, and attach it to the current transaction") }}</span>
</a>
</div>
</th>
$html = $checks->toHtml();
$this->assertStringNotContainsString('green check icon', $html);
- $this->assertSame(1197, strlen($html));
+ $this->assertSame(1221, strlen($html));
}
/**