Skip to content

Commit

Permalink
[#1891] Cleaned up block classes for non-field-error
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Dec 4, 2023
1 parent bbc1a2a commit 84b5d7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/open_inwoner/js/components/form/FileInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ 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`)
}

/**
* Return the label if more than 0 files are selected.
* @return HTMLInputElement
* @return {HTMLLabelElement}
*/
getLabelSelected() {
return this.node.querySelector(`${FileInput.selector}__label-selected`)
Expand Down
8 changes: 3 additions & 5 deletions src/open_inwoner/scss/components/Form/NonFieldError.scss
Original file line number Diff line number Diff line change
@@ -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);
}
2 changes: 1 addition & 1 deletion src/open_inwoner/templates/pages/cases/document_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" %}
<div class="form__non-field-error" hidden>
<div class="non-field-error" hidden>
<p class="p p--small p--centered">{% trans "Verwijder eerst bestanden die niet voldoen aan de voorwaarden" %}</p>
</div>
{% endrender_form %}

0 comments on commit 84b5d7e

Please sign in to comment.