Skip to content

Revise form inline error messaging so it doesn't cause associated fields to move #3816

@sydk-adhoc

Description

@sydk-adhoc

Description

Include a high-level description of the issue.

  • What did you expect to happen?
    • When I use a CMSDS form field and inject an error, the message should display, but the field should remain exactly where it was originally rendered.
  • What happened instead?
    • The form field moves to make room for the error message.
  • What would you like to see changed?
    • The pattern revised so that inline error messages don't cause form fields to move

Include any benefits, challenges, or considerations. This can be short and sweet.

Steps to reproduce the issue

Storybook pages that could demo this are broken

  • Create a simple test page with the CMSDS
  • Add a text field with a label and a way to update its errorMessage (prop, assuming React)
  • Change errorMessage from a blank string to anything you want
  • The text field moves to make room for the error message (below the label and above the field)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions