LearnNewsExamplesServices
Frontmatter
id3201
titleform.field.Text: styling for invalid values
stateClosed
labels
enhancement
assigneestobiu
createdAtJun 27, 2022, 11:00 AM
updatedAtJun 27, 2022, 11:05 AM
githubUrlhttps://github.com/neomjs/neo/issues/3201
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJun 27, 2022, 11:01 AM

form.field.Text: styling for invalid values

Closed v8.1.0 enhancement
tobiu
tobiu commented on Jun 27, 2022, 11:00 AM

currently, form.fields are using a DOM level based pseudo selector to mark the validity.

this needs to change, e.g. in case we create a form for creating a new entity, we most likely want the fields to look "clean" => no "red borders" (error indicators).

as a first step, we should remove the DOM based selector rules and use the neo neo-invalid rule instead.

this will apply a border on the wrapperEl in case this exists => same level as the active border.

for now, i think the active state should have a prio compared to errors (a bit like validate on blur), but this could be optional (follow up ticket).

tobiu added the enhancement label on Jun 27, 2022, 11:00 AM
tobiu assigned to @tobiu on Jun 27, 2022, 11:00 AM
tobiu referenced in commit ce2087a - "form.field.Text: styling for invalid values #3201" on Jun 27, 2022, 11:00 AM
tobiu closed this issue on Jun 27, 2022, 11:01 AM