Skip to content

Commit 381aadd

Browse files
committed
[#2379] experimental Search feedback notification screenreader test
1 parent 451a4e6 commit 381aadd

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

src/open_inwoner/components/templates/components/Form/Error.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load i18n button_tags icon_tags button_tags icon_tags notification_tags %}
22

33
{% for message in messages %}
4-
<div class="notifications notifications__errors">
4+
<div class="notifications notifications__errors" role="alert" aria-live="assertive">
55
<div class="notification notification--warning">
66
{% icon icon="warning_amber" icon_position="before" outlined=True %}
77
<div class="notification__content">

src/open_inwoner/components/templates/components/Notification/Notification.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% load i18n utils button_tags icon_tags button_tags icon_tags %}
2-
<div class="notification{% if contents %} notification--contents{% endif %}{% if type %} notification--{{ type }}{% endif %}{% if compact %} notification--compact{% endif %} {% if ctx %}notification--{{ ctx }}{% endif %}" role="alert">
2+
<div class="notification{% if contents %} notification--contents{% endif %}{% if type %} notification--{{ type }}{% endif %}{% if compact %} notification--compact{% endif %} {% if ctx %}notification--{{ ctx }}{% endif %}" role="alert" aria-live="assertive">
33
{% if not icon == False %}
44
<div class="notification__icon">
55
{% icon icon outlined=True %}

src/open_inwoner/components/templates/components/Notification/Notifications.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% load notification_tags string_tags %}
22

3-
<div class="notifications">
3+
<div class="notifications" role="alert" aria-live="assertive">
44
{% for message in messages %}
55
{% with as_markdown=message.extra_tags|is_substring:"as_markdown" %}
66
{% with local_message=message.extra_tags|is_substring:"local_message" %}

src/open_inwoner/scss/components/Grid/Grid.scss

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@
3535
}
3636
}
3737
}
38+
39+
/// Search grid
40+
&--search {
41+
display: flex;
42+
flex-direction: column;
43+
}
3844
}
3945

4046
&--limit &__sidebar,

src/open_inwoner/templates/master.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
{% block header_image %}{% endblock header_image %}
111111

112112
{% block notifications %}
113-
<div class="container container--no-margin">
113+
<div class="container container--no-margin" role="alert" aria-live="assertive">
114114
{% notifications messages closable=True %}
115115
</div>
116116
{% endblock %}

src/open_inwoner/templates/pages/search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h2 class="utrecht-heading-2">{% trans "Zoekfilters" %}</h2>
2828
{# end search filters #}
2929
</aside>
3030

31-
<div class="grid__main">
31+
<div class="grid__main grid__main--search">
3232
{% if paginator.count %}
3333
<div class="search-results">
3434
<h2 class="utrecht-heading-2 search-results__title">

0 commit comments

Comments
 (0)