diff --git a/src/open_inwoner/js/components/form/FileInput.js b/src/open_inwoner/js/components/form/FileInput.js index 30237e839a..6c67dda990 100644 --- a/src/open_inwoner/js/components/form/FileInput.js +++ b/src/open_inwoner/js/components/form/FileInput.js @@ -33,7 +33,7 @@ export class FileInput extends Component { /** * Return the label when zero files are selected. - * @return HTMLInputElement + * @return {HTMLLabelElement} */ getLabelEmpty() { return this.node.querySelector(`${FileInput.selector}__label-empty`) @@ -41,7 +41,7 @@ export class FileInput extends Component { /** * Return the label if more than 0 files are selected. - * @return HTMLInputElement + * @return {HTMLLabelElement} */ getLabelSelected() { return this.node.querySelector(`${FileInput.selector}__label-selected`) @@ -68,7 +68,7 @@ export class FileInput extends Component { * @return {HTMLDivElement} */ getFormNonFieldError() { - return document.querySelector('.form__non-field-error') + return document.querySelector('.non-field-error') } /** diff --git a/src/open_inwoner/scss/components/Form/NonFieldError.scss b/src/open_inwoner/scss/components/Form/NonFieldError.scss index 55fe45bc81..f0bd7fa099 100644 --- a/src/open_inwoner/scss/components/Form/NonFieldError.scss +++ b/src/open_inwoner/scss/components/Form/NonFieldError.scss @@ -1,6 +1,4 @@ -.form { - &__non-field-error { - color: var(--color-gray-dark); - margin-top: var(--spacing-medium); - } +.non-field-error { + color: var(--color-gray-dark); + margin-top: var(--spacing-medium); } diff --git a/src/open_inwoner/templates/pages/cases/document_form.html b/src/open_inwoner/templates/pages/cases/document_form.html index bfa9e96e39..c2f8c8a4cb 100644 --- a/src/open_inwoner/templates/pages/cases/document_form.html +++ b/src/open_inwoner/templates/pages/cases/document_form.html @@ -5,7 +5,7 @@ {% input form.type no_label=True no_help=True class="label input" id="id_type" extra_classes="file-type__select" %} {% file_input form.files %} {% form_actions primary_text=_("Upload documenten") enctype="multipart/form-data" %} -
{% trans "Verwijder eerst bestanden die niet voldoen aan de voorwaarden" %}