Skip to content

[OUDS] Missing .was-validated selector for text-input and text-area #3345

@hannahiss

Description

@hannahiss

Prerequisites

Describe the issue

In forms, on text inputs and text areas, error messages and styles must be displayed only when:

  • field is :invalid and . was-validated has been added to a parent (usually the form)
  • .is-invalid is added to the field

Two problems:

  • Error messages are displayed when field is :invalid even if .was-validated hasn't been added to a parent
  • Negative muted background color and error icon whould be applied when . was-validated has been added to a parent

Reduced test cases

Make a form with a required text-input: the error message is displayed even when the form hasn't been validated yet.

What we have, before clicking on submit button (whithout .was-validated on the form)`:

Image

What we should have:

Image

What we have, after clicking on submit button (which adds .was-validated to the form)`:

Image

What we should have:

Image

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of Boosted are you using?

1.0.0 (OUDS)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions