[A11y] underline inline-links (#5102)

This commit is contained in:
Richard Schreiber
2025-05-15 12:32:23 +02:00
committed by GitHub
parent e7d024b146
commit 225b2452bd
3 changed files with 19 additions and 3 deletions

View File

@@ -94,10 +94,11 @@
</a> </a>
{% else %} {% else %}
<h1> <h1>
<a href="{% eventurl event "presale:event.index" cart_namespace=cart_namespace|default_if_none:"" %}">{{ event.name }}</a> <a href="{% eventurl event "presale:event.index" cart_namespace=cart_namespace|default_if_none:"" %}" class="no-underline">{{ event.name }}
{% if request.event.settings.show_dates_on_frontpage and not event.has_subevents %} {% if request.event.settings.show_dates_on_frontpage and not event.has_subevents %}
<small>{{ event.get_date_range_display_as_html }}</small> <small class="text-muted">{{ event.get_date_range_display_as_html }}</small>
{% endif %} {% endif %}
</a>
</h1> </h1>
{% endif %} {% endif %}
</div> </div>

View File

@@ -62,7 +62,7 @@
class="organizer-logo" /> class="organizer-logo" />
</a> </a>
{% else %} {% else %}
<h1><a href="{% eventurl organizer "presale:organizer.index" %}">{{ organizer.name }}</a></h1> <h1><a href="{% eventurl organizer "presale:organizer.index" %}" class="no-underline">{{ organizer.name }}</a></h1>
{% endif %} {% endif %}
</div> </div>
{% if organizer.settings.locales|length > 1 or request.organizer.settings.customer_accounts %} {% if organizer.settings.locales|length > 1 or request.organizer.settings.customer_accounts %}

View File

@@ -108,7 +108,22 @@ pre {
font-size: $font-size-base; font-size: $font-size-base;
} }
/* make all links in textflow underlined */
h1, h2, h3, h4, h5, h6, p, li {
a:not(.btn) {
text-decoration: underline;
}
}
a.no-underline:link, nav li a:link {
text-decoration: none;
}
a.no-underline:hover, nav li a:hover {
text-decoration: underline;
}
.help-block a {
color: inherit;
}
/* See https://github.com/pretix/pretix/pull/761 */ /* See https://github.com/pretix/pretix/pull/761 */