diff --git a/package-lock.json b/package-lock.json index bf6d26046e..d5d2bed807 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "@emotion/styled": "^11.3.0", "@fortawesome/fontawesome-free": "^6.4.2", "@joeattardi/emoji-button": "^4.6.4", - "@open-inwoner/design-tokens": "^0.0.3-alpha.0", + "@open-inwoner/design-tokens": "^0.0.5-alpha.5", "@tarekraafat/autocomplete.js": "^10.2.6", "bem.js": "^1.0.10", "emojibase-data": "^7.0.1", @@ -4140,9 +4140,9 @@ } }, "node_modules/@open-inwoner/design-tokens": { - "version": "0.0.3-alpha.0", - "resolved": "https://registry.npmjs.org/@open-inwoner/design-tokens/-/design-tokens-0.0.3-alpha.0.tgz", - "integrity": "sha512-UXS6KK2onthn6+mWw7/DxzUvNHq5iGDaoKE2hLll3/O8EvsygTXm3PiTkxcsEpHQN6m9QLSY/GGSqg47Fg/Sdw==" + "version": "0.0.5-alpha.5", + "resolved": "https://registry.npmjs.org/@open-inwoner/design-tokens/-/design-tokens-0.0.5-alpha.5.tgz", + "integrity": "sha512-oPTrpY/OA0oOMjgKauqEAzXJuggbb1+m3LvHFzLYZhiLPfqgJV+B6KcOT+gD2sHsiP74e8A8EgiC0rZBa16l1A==" }, "node_modules/@popperjs/core": { "version": "2.11.5", @@ -22718,9 +22718,9 @@ } }, "@open-inwoner/design-tokens": { - "version": "0.0.3-alpha.0", - "resolved": "https://registry.npmjs.org/@open-inwoner/design-tokens/-/design-tokens-0.0.3-alpha.0.tgz", - "integrity": "sha512-UXS6KK2onthn6+mWw7/DxzUvNHq5iGDaoKE2hLll3/O8EvsygTXm3PiTkxcsEpHQN6m9QLSY/GGSqg47Fg/Sdw==" + "version": "0.0.5-alpha.5", + "resolved": "https://registry.npmjs.org/@open-inwoner/design-tokens/-/design-tokens-0.0.5-alpha.5.tgz", + "integrity": "sha512-oPTrpY/OA0oOMjgKauqEAzXJuggbb1+m3LvHFzLYZhiLPfqgJV+B6KcOT+gD2sHsiP74e8A8EgiC0rZBa16l1A==" }, "@popperjs/core": { "version": "2.11.5", diff --git a/package.json b/package.json index 73dde5857c..77847bb5e2 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@emotion/styled": "^11.3.0", "@fortawesome/fontawesome-free": "^6.4.2", "@joeattardi/emoji-button": "^4.6.4", - "@open-inwoner/design-tokens": "^0.0.3-alpha.0", + "@open-inwoner/design-tokens": "^0.0.5-alpha.5", "@tarekraafat/autocomplete.js": "^10.2.6", "bem.js": "^1.0.10", "emojibase-data": "^7.0.1", diff --git a/src/open_inwoner/accounts/templates/accounts/email_verification.html b/src/open_inwoner/accounts/templates/accounts/email_verification.html index 591dbed32d..9ca1d11942 100644 --- a/src/open_inwoner/accounts/templates/accounts/email_verification.html +++ b/src/open_inwoner/accounts/templates/accounts/email_verification.html @@ -8,7 +8,7 @@ {% render_card tinted=True %} {% get_solo 'configurations.SiteConfiguration' as config %}

{% trans "E-mailadres bevestigen" %}


- {% if verification_text %}

{{ verification_text|linebreaksbr }}


{% endif %} + {% if verification_text %}

{{ verification_text|linebreaksbr }}


{% endif %}
{% csrf_token %} {% form_actions primary_icon='arrow_forward' primary_text=button_text %} diff --git a/src/open_inwoner/accounts/templates/accounts/inbox.html b/src/open_inwoner/accounts/templates/accounts/inbox.html index cb6a05e827..e8bf7ee2d2 100644 --- a/src/open_inwoner/accounts/templates/accounts/inbox.html +++ b/src/open_inwoner/accounts/templates/accounts/inbox.html @@ -22,9 +22,9 @@

{% trans 'Mijn berichten' %}

{% for conv in conversations.page_obj %} {% with conv_thread_url=conv.thread_url|qs_page:conversations.page_obj.number %} {% if other_user.uuid == conv.other_user_uuid %} - {% list_item conv.other_user_full_name|truncatechars:25 conv.content|truncatechars:25 conv_thread_url active=True %} + {% list_item conv.other_user_full_name|truncatechars:25 conv.content|truncatechars:25 conv_thread_url active=True strong=True %} {% else %} - {% list_item conv.other_user_full_name|truncatechars:25 conv.content|truncatechars:25 conv_thread_url %} + {% list_item conv.other_user_full_name|truncatechars:25 conv.content|truncatechars:25 conv_thread_url strong=True %} {% endif %} {% endwith %} {% endfor %} diff --git a/src/open_inwoner/accounts/templates/accounts/invite_accept.html b/src/open_inwoner/accounts/templates/accounts/invite_accept.html index c874c31f88..1623f4c3c3 100644 --- a/src/open_inwoner/accounts/templates/accounts/invite_accept.html +++ b/src/open_inwoner/accounts/templates/accounts/invite_accept.html @@ -6,7 +6,7 @@

{% trans "Accept an invitation" %}

-

+

{% blocktranslate with inviter_name=object.inviter.get_full_name %}Accept invitation from {{ inviter_name }} and join Open Inwoner Platform {% endblocktranslate %}

diff --git a/src/open_inwoner/accounts/templates/accounts/registration_necessary.html b/src/open_inwoner/accounts/templates/accounts/registration_necessary.html index 373a946d63..95d0a02fbd 100644 --- a/src/open_inwoner/accounts/templates/accounts/registration_necessary.html +++ b/src/open_inwoner/accounts/templates/accounts/registration_necessary.html @@ -7,7 +7,7 @@ {% render_column start=5 span=5 %} {% get_solo 'configurations.SiteConfiguration' as config %}

{% trans "Registratie voltooien" %}


- {% if config.registration_text %}

{{ config.registration_text|urlize|linebreaksbr }}

{% endif %} + {% if config.registration_text %}

{{ config.registration_text|urlize|linebreaksbr }}

{% endif %} {% csrf_token %} diff --git a/src/open_inwoner/accounts/templates/django_registration/registration_complete.html b/src/open_inwoner/accounts/templates/django_registration/registration_complete.html index 36256e8c53..5e9962d694 100644 --- a/src/open_inwoner/accounts/templates/django_registration/registration_complete.html +++ b/src/open_inwoner/accounts/templates/django_registration/registration_complete.html @@ -3,5 +3,5 @@ {% block content %}

{% trans "Succes" %}

-

{% trans "U bent nu geregistreerd" %}

+

{% trans "U bent nu geregistreerd" %}

{% endblock content %} diff --git a/src/open_inwoner/accounts/templates/registration/add_phone_number_1.html b/src/open_inwoner/accounts/templates/registration/add_phone_number_1.html index 3c78e783b0..dc8b431567 100644 --- a/src/open_inwoner/accounts/templates/registration/add_phone_number_1.html +++ b/src/open_inwoner/accounts/templates/registration/add_phone_number_1.html @@ -4,7 +4,7 @@ {% block content %} {{ block.super }} -

+

{% blocktrans trimmed %} Het nummer van uw mobiele telefoon is nog niet bij de Open Inwoner Platform bekend en is nodig voor toegang tot deze website. diff --git a/src/open_inwoner/accounts/templates/registration/add_phone_number_2.html b/src/open_inwoner/accounts/templates/registration/add_phone_number_2.html index 65eca03665..4f07f305c5 100644 --- a/src/open_inwoner/accounts/templates/registration/add_phone_number_2.html +++ b/src/open_inwoner/accounts/templates/registration/add_phone_number_2.html @@ -4,7 +4,7 @@ {% block content %} {{ block.super }} -

+

{% trans 'U ontvangt een SMS bericht op uw mobiele telefoon nummer met daarin een code. ' %} {% trans 'Vul hieronder de code in. Geen bericht ontvangen? ' %} {% trans 'Kies Vorige om uw telefoon nummer te controleren en eventueel aan te passen.' %} diff --git a/src/open_inwoner/accounts/templates/registration/verify_token.html b/src/open_inwoner/accounts/templates/registration/verify_token.html index 898259acf5..7f05ec1e29 100644 --- a/src/open_inwoner/accounts/templates/registration/verify_token.html +++ b/src/open_inwoner/accounts/templates/registration/verify_token.html @@ -3,7 +3,7 @@ {% block content %}

{% trans 'Account verificatie' %}

-

+

{% blocktrans trimmed %} U ontvangt binnen 1 minuut een sms-bericht op uw mobiele telefoon. Vul de code die in het bericht staat hieronder in en klik op diff --git a/src/open_inwoner/cms/banner/tests/test_plugin_banner.py b/src/open_inwoner/cms/banner/tests/test_plugin_banner.py index 32dab5d998..cc3e380467 100644 --- a/src/open_inwoner/cms/banner/tests/test_plugin_banner.py +++ b/src/open_inwoner/cms/banner/tests/test_plugin_banner.py @@ -49,4 +49,4 @@ def test_banner_text_with_description_is_rendered_in_plugin(self): ) self.assertIn(f'

{title}

', html) - self.assertIn(f'

{description}

', html) + self.assertIn(f'

{description}

', html) diff --git a/src/open_inwoner/components/templates/components/Action/Actions.html b/src/open_inwoner/components/templates/components/Action/Actions.html index 31eefdb828..49bb6d0c7e 100644 --- a/src/open_inwoner/components/templates/components/Action/Actions.html +++ b/src/open_inwoner/components/templates/components/Action/Actions.html @@ -7,7 +7,7 @@ {% button text=_("Filter") type="button" bordered=True %}
-

{% trans "Filter op:" %}

+

{% trans "Filter op:" %}

{% date_field action_form.end_date no_label=True no_help=True icon="today" %} {% input action_form.is_for no_label=True no_help=True icon="person" %} {% input action_form.status no_label=True no_help=True icon="expand_more" %} @@ -89,7 +89,7 @@
{% empty %} -

{% trans "er zijn geen acties gevonden met de huidige filters of er zijn geen acties" %}

+

{% trans "er zijn geen acties gevonden met de huidige filters of er zijn geen acties" %}

{% endfor %} diff --git a/src/open_inwoner/components/templates/components/Card/DescriptionCard.html b/src/open_inwoner/components/templates/components/Card/DescriptionCard.html index d42f567593..ca3816cf2e 100644 --- a/src/open_inwoner/components/templates/components/Card/DescriptionCard.html +++ b/src/open_inwoner/components/templates/components/Card/DescriptionCard.html @@ -8,7 +8,7 @@

{{ title }}

{% endif %} -

{{ description }}

+

{{ description }}

{% if object.end_date %}
{% trans "Einddatum" %}:
diff --git a/src/open_inwoner/components/templates/components/Card/LocationCard.html b/src/open_inwoner/components/templates/components/Card/LocationCard.html index a7a84acc4c..65f13ea926 100644 --- a/src/open_inwoner/components/templates/components/Card/LocationCard.html +++ b/src/open_inwoner/components/templates/components/Card/LocationCard.html @@ -4,9 +4,9 @@ {% if location_name %}

{% link href=location.get_absolute_url primary=True text=location_name %}

{% endif %} -
-

{{ address_line_1 }}

-

{{ address_line_2 }}

+
+

{{ address_line_1 }}

+

{{ address_line_2 }}

{% if phonenumber %} {% link href='tel:'|addstr:phonenumber secondary=True text=phonenumber %} {% endif %} diff --git a/src/open_inwoner/components/templates/components/Card/ProductCard.html b/src/open_inwoner/components/templates/components/Card/ProductCard.html index a3addc8c78..02f9a1e4db 100644 --- a/src/open_inwoner/components/templates/components/Card/ProductCard.html +++ b/src/open_inwoner/components/templates/components/Card/ProductCard.html @@ -15,7 +15,7 @@

{{ title }}

{{ title }}

{% endif %} -

{{ description }}

+

{{ description }}

{% if object.end_date %}
{% trans "Einddatum" %}:
diff --git a/src/open_inwoner/components/templates/components/Contact/ContactForm.html b/src/open_inwoner/components/templates/components/Contact/ContactForm.html index 7a7c542283..fad8315e41 100644 --- a/src/open_inwoner/components/templates/components/Contact/ContactForm.html +++ b/src/open_inwoner/components/templates/components/Contact/ContactForm.html @@ -28,7 +28,7 @@ {% endrender_form %} {% else %} -

{% trans "Contact formulier niet geconfigureerd." %}

+

{% trans "Contact formulier niet geconfigureerd." %}

{% endif %}
{% endrender_column %} diff --git a/src/open_inwoner/components/templates/components/Dashboard/Dashboard.html b/src/open_inwoner/components/templates/components/Dashboard/Dashboard.html index a8c99414cd..cf9d1ee43c 100644 --- a/src/open_inwoner/components/templates/components/Dashboard/Dashboard.html +++ b/src/open_inwoner/components/templates/components/Dashboard/Dashboard.html @@ -4,7 +4,7 @@
    {% for metric in metrics %}
  • -

    {{ metric.label }} {{ metric.value|default:'-' }}

    +

    {{ metric.label }} {{ metric.value|default:'-' }}

  • {% endfor %}
diff --git a/src/open_inwoner/components/templates/components/Faq/Faq.html b/src/open_inwoner/components/templates/components/Faq/Faq.html index 5c6d544412..87fd4cc8b1 100644 --- a/src/open_inwoner/components/templates/components/Faq/Faq.html +++ b/src/open_inwoner/components/templates/components/Faq/Faq.html @@ -14,7 +14,7 @@

{% firstof 'question-'|add:id|add:'-answer' as answer_id %} {% link bold=True href='#'|add:answer_id icon='keyboard_arrow_down' secondary=True text=question.question toggle="open" %}

-
{{ question.answer|ckeditor_content|safe }}
+
{{ question.answer|ckeditor_content|safe }}
{% endfor %} diff --git a/src/open_inwoner/components/templates/components/File/File.html b/src/open_inwoner/components/templates/components/File/File.html index 545d5b5c8e..7a03c59646 100644 --- a/src/open_inwoner/components/templates/components/File/File.html +++ b/src/open_inwoner/components/templates/components/File/File.html @@ -3,15 +3,15 @@ diff --git a/src/open_inwoner/components/templates/components/File/FileList.html b/src/open_inwoner/components/templates/components/File/FileList.html index 7e1166f3dd..9dc45851fe 100644 --- a/src/open_inwoner/components/templates/components/File/FileList.html +++ b/src/open_inwoner/components/templates/components/File/FileList.html @@ -15,7 +15,7 @@

{{ title }}

{% file file=file.file created=created name=file.name uuid=file.uuid allow_delete=allow_delete download_url=download_url show_download=show_download %} {% empty %} -
  • {% trans "Er zijn nog geen bestanden geüpload" %}

  • +
  • {% trans "Er zijn nog geen bestanden geüpload" %}

  • {% endfor %}
    diff --git a/src/open_inwoner/components/templates/components/Form/Autocomplete.html b/src/open_inwoner/components/templates/components/Form/Autocomplete.html index 0755f06a3f..de512e0cb8 100644 --- a/src/open_inwoner/components/templates/components/Form/Autocomplete.html +++ b/src/open_inwoner/components/templates/components/Form/Autocomplete.html @@ -10,7 +10,7 @@ {% if field.help_text %} -

    {{ field.help_text }}

    +

    {{ field.help_text }}

    {% endif %} {% if field.errors %} diff --git a/src/open_inwoner/components/templates/components/Form/DateField.html b/src/open_inwoner/components/templates/components/Form/DateField.html index d23b4b3fd0..9656931b9c 100644 --- a/src/open_inwoner/components/templates/components/Form/DateField.html +++ b/src/open_inwoner/components/templates/components/Form/DateField.html @@ -6,7 +6,7 @@ {% if not no_label %}{{ field.label }}{% endif %} {{ field|addclass:"input datefield" }} {% if field.help_text and not no_help %} -

    {{ field.help_text }}

    +

    {{ field.help_text }}

    {% endif %} {% if field.errors %} diff --git a/src/open_inwoner/components/templates/components/Form/Error.html b/src/open_inwoner/components/templates/components/Form/Error.html index 8496f683e0..8d90046f0d 100644 --- a/src/open_inwoner/components/templates/components/Form/Error.html +++ b/src/open_inwoner/components/templates/components/Form/Error.html @@ -5,7 +5,7 @@
    {% icon icon="warning_amber" icon_position="before" outlined=True %}
    -

    {{ message.message }}

    +

    {{ message.message }}

    diff --git a/src/open_inwoner/components/templates/components/Form/FileInput.html b/src/open_inwoner/components/templates/components/Form/FileInput.html index 0aa592f18a..3760fb5278 100644 --- a/src/open_inwoner/components/templates/components/Form/FileInput.html +++ b/src/open_inwoner/components/templates/components/Form/FileInput.html @@ -13,7 +13,7 @@ {% endrender_card %} - {% if field.help_text %}

    {{ field.help_text }}

    {% endif %} + {% if field.help_text %}

    {{ field.help_text }}

    {% endif %} {% if field.errors %}{% errors errors=field.errors %}{% endif %}
    diff --git a/src/open_inwoner/components/templates/components/Form/ImageCrop.html b/src/open_inwoner/components/templates/components/Form/ImageCrop.html index 4be6e47ff3..dea4321474 100644 --- a/src/open_inwoner/components/templates/components/Form/ImageCrop.html +++ b/src/open_inwoner/components/templates/components/Form/ImageCrop.html @@ -5,11 +5,11 @@ {{ field.label }} {{ field|addclass:"image-ratio" }} {% if field.help_text and not no_help %} -

    {{ field.help_text }}

    +

    {{ field.help_text }}

    {% endif %} {% if field.errors %} {% errors errors=field.errors %} {% endif %} -
    \ No newline at end of file +
    diff --git a/src/open_inwoner/components/templates/components/Form/Input.html b/src/open_inwoner/components/templates/components/Form/Input.html index 334191aeac..28a7a5f91f 100644 --- a/src/open_inwoner/components/templates/components/Form/Input.html +++ b/src/open_inwoner/components/templates/components/Form/Input.html @@ -9,7 +9,7 @@ {% field_as_widget field "input" form_id %} {% if field.help_text and not no_help %} -

    {{ field.help_text }}

    +

    {{ field.help_text }}

    {% endif %} {% if field.errors %} diff --git a/src/open_inwoner/components/templates/components/Form/MultipleCheckbox.html b/src/open_inwoner/components/templates/components/Form/MultipleCheckbox.html index cf1dfd8b21..0ffeabf1ce 100644 --- a/src/open_inwoner/components/templates/components/Form/MultipleCheckbox.html +++ b/src/open_inwoner/components/templates/components/Form/MultipleCheckbox.html @@ -8,7 +8,7 @@ {% if field.help_text %} -

    {{ field.help_text }}

    +

    {{ field.help_text }}

    {% endif %} {% if field.errors %} diff --git a/src/open_inwoner/components/templates/components/Form/MultipleRadio.html b/src/open_inwoner/components/templates/components/Form/MultipleRadio.html index 65d7bdf819..7a68c6459a 100644 --- a/src/open_inwoner/components/templates/components/Form/MultipleRadio.html +++ b/src/open_inwoner/components/templates/components/Form/MultipleRadio.html @@ -15,7 +15,7 @@ {% if field.help_text %} -

    {{ field.help_text }}

    +

    {{ field.help_text }}

    {% endif %} {% if field.errors %} diff --git a/src/open_inwoner/components/templates/components/Form/Textarea.html b/src/open_inwoner/components/templates/components/Form/Textarea.html index 10ebb10def..17822ae4f8 100644 --- a/src/open_inwoner/components/templates/components/Form/Textarea.html +++ b/src/open_inwoner/components/templates/components/Form/Textarea.html @@ -5,7 +5,7 @@ {% firstof field.label label %} {{ field|addclass:"textarea" }} {% if field.help_text %} -

    {{ field.help_text }}

    +

    {{ field.help_text }}

    {% endif %} {% if field.errors %} diff --git a/src/open_inwoner/components/templates/components/Header/Header.html b/src/open_inwoner/components/templates/components/Header/Header.html index 450a9541c7..ad38f3eb75 100644 --- a/src/open_inwoner/components/templates/components/Header/Header.html +++ b/src/open_inwoner/components/templates/components/Header/Header.html @@ -85,7 +85,7 @@
    {% if request.user.is_authenticated %} -

    +

    {% icon icon="person" icon_position="before" outlined=True %}{% trans "Ingelogd als" %} {{ request.user.get_short_name }}

    diff --git a/src/open_inwoner/components/templates/components/Messages/Messages.html b/src/open_inwoner/components/templates/components/Messages/Messages.html index 2959266819..8df2113ee0 100644 --- a/src/open_inwoner/components/templates/components/Messages/Messages.html +++ b/src/open_inwoner/components/templates/components/Messages/Messages.html @@ -2,8 +2,8 @@
    -

    {{ subject }}

    -

    {{ status }}

    +

    {{ subject }}

    +

    {{ status }}

    @@ -17,7 +17,7 @@

    {{ subject }}

    {% for day in days %}
  • -

    {{ day.text }}

    +

    {{ day.text }}

      @@ -68,7 +68,7 @@

      {{ day.text }}

      {% form_actions primary_text=_("Verzenden") primary_icon='arrow_forward' %} {% endrender_form %} {% else %} -

      {% trans "De gebruiker is inactief. Het is niet mogelijk een bericht te sturen." %}

      +

      {% trans "De gebruiker is inactief. Het is niet mogelijk een bericht te sturen." %}

      {% endif %}
  • diff --git a/src/open_inwoner/components/templates/components/Notification/Notification.html b/src/open_inwoner/components/templates/components/Notification/Notification.html index 69f947a7ea..cea1fa2d00 100644 --- a/src/open_inwoner/components/templates/components/Notification/Notification.html +++ b/src/open_inwoner/components/templates/components/Notification/Notification.html @@ -8,7 +8,7 @@
    {% if title %}

    {{ title }}

    {% endif %} - {% if notification %}

    {{ notification }}

    {% endif %} + {% if notification %}

    {{ notification }}

    {% endif %} {% if action %}{% button href=action text=action_text %}{% endif %} {% if contents %} {{ contents }} @@ -16,7 +16,7 @@ {% if as_markdown %} {{ message|markdown|safe }} {% else %} -

    {{ message }}

    +

    {{ message }}

    {% endif %} {% endif %}
    diff --git a/src/open_inwoner/components/templates/components/Product/finder.html b/src/open_inwoner/components/templates/components/Product/finder.html index 278f8378a8..e109662bd2 100644 --- a/src/open_inwoner/components/templates/components/Product/finder.html +++ b/src/open_inwoner/components/templates/components/Product/finder.html @@ -2,13 +2,13 @@ {% render_column span=6 compact=True extra_classes="product-finder" %}

    {{configurable_text.home_page.home_product_finder_title}}

    -

    {{configurable_text.home_page.home_product_finder_intro|linebreaksbr}}

    +

    {{configurable_text.home_page.home_product_finder_intro|linebreaksbr}}

    {% if not conditions_done %}

    {{ condition.question }}

    {% if condition.rule %} -

    {{ condition.rule }}

    +

    {{ condition.rule }}

    {% endif %} {% if show_previous %} @@ -17,7 +17,7 @@

    {{ condition.question }}

    {% form id="product-finder" spaceless=True form_object=form method="POST" submit_text=primary_text %} {% endif %} {% else %} -

    +

    {% trans "Er zijn geen extra vragen meer. Bekijk de producten hiernaast." %}

    {% render_form id="product-finder" method="POST" form=form %} diff --git a/src/open_inwoner/components/templatetags/string_tags.py b/src/open_inwoner/components/templatetags/string_tags.py index 8d79d0e66f..5662f1c87f 100644 --- a/src/open_inwoner/components/templatetags/string_tags.py +++ b/src/open_inwoner/components/templatetags/string_tags.py @@ -25,7 +25,7 @@ def optional_paragraph(optional_text: str) -> str: if not optional_text: return "" return format_html( - '

    {optional_text}

    '.format( + '

    {optional_text}

    '.format( optional_text=linebreaksbr(optional_text) ) ) diff --git a/src/open_inwoner/components/tests/test_list.py b/src/open_inwoner/components/tests/test_list.py index 302860f9d3..096a5a5671 100644 --- a/src/open_inwoner/components/tests/test_list.py +++ b/src/open_inwoner/components/tests/test_list.py @@ -21,11 +21,11 @@ def test_render(self): self.assertRender({"text": "Lorem ipsum"}) def test_text(self): - self.assertTextContent("h4", "Lorem ipsum", {"text": "Lorem ipsum"}) + self.assertTextContent("p", "Lorem ipsum", {"text": "Lorem ipsum"}) def test_description(self): self.assertTextContent( - "p", "Dolor sit", {"text": "Lorem ipsum", "description": "Dolor sit"} + "p", "Lorem ipsum", {"text": "Lorem ipsum", "description": "Dolor sit"} ) def test_href(self): diff --git a/src/open_inwoner/components/tests/test_messages.py b/src/open_inwoner/components/tests/test_messages.py index 65cdc7afde..5885b32378 100644 --- a/src/open_inwoner/components/tests/test_messages.py +++ b/src/open_inwoner/components/tests/test_messages.py @@ -143,4 +143,6 @@ def test_status(self): Tests that: - Header renders the correct status. """ - self.assertTextContent(".messages__header .p", "Dolor sit amet.", self.config) + self.assertTextContent( + ".messages__header .utrecht-paragraph", "Dolor sit amet.", self.config + ) diff --git a/src/open_inwoner/js/components/form/FileInput.js b/src/open_inwoner/js/components/form/FileInput.js index a6a64a9083..688ece6d37 100644 --- a/src/open_inwoner/js/components/form/FileInput.js +++ b/src/open_inwoner/js/components/form/FileInput.js @@ -293,14 +293,14 @@ export class FileInput extends Component {