Skip to content

Commit

Permalink
wc - Fix text-danger in data-form error messages #TASK-6759
Browse files Browse the repository at this point in the history
Signed-off-by: gpveronica <veronica.zettagenomics@gmail.com>
  • Loading branch information
gpveronica committed Oct 21, 2024
1 parent 646ce87 commit 6897ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webcomponents/commons/forms/data-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,15 +807,15 @@ export default class DataForm extends LitElement {
}

return html`
<div class="${hasErrorMessages ? "text-danger" : nothing}">
<div>
<div data-testid="${this.config.test?.active ? `${this.config.test.prefix || "test"}-${element.field}` : nothing}">
${contentHtml}
</div>
${helpMessage && helpMode !== "block" ? html`
<div class="form-text">${helpMessage}</div>
` : nothing}
${hasErrorMessages ? html`
<div class="d-flex mt-2 text-body-secondary">
<div class="d-flex mt-2 text-danger">
<div class="me-2">
<i class="${this._getErrorIcon(element)}"></i>
</div>
Expand Down

0 comments on commit 6897ce2

Please sign in to comment.