ic-ui-kit icon indicating copy to clipboard operation
ic-ui-kit copied to clipboard

[ic-text-field]: character count interferes with validation message on small fields

Open GCHQ-Developer-741 opened this issue 3 years ago • 2 comments

Summary of the bug

When text fields are resized to have a small width, the remaining space for the character count and validation becomes very small and the two elements interfere with one another. 

🪜 How to reproduce

  1. Create a Text field with a small defined width
  2. Enter above character limit
  3. See the error

🧐 Expected behaviour

The validation message and character count should be spaced out nicely

📸 Screenshots or code

Screenshot from 2023-01-05 11-45-30

Additional info

Explore options to avoid clash between the two elements. 

  • Stack elements
  • Move character count to title line (top right)
  • Positioning dependent on width/breakpoint?

GCHQ-Developer-741 avatar Jan 05 '23 11:01 GCHQ-Developer-741

The change is to make the validation the same width of the helper text etc

MI6-255 avatar May 02 '24 09:05 MI6-255

Add visual test

MI6-255 avatar May 02 '24 09:05 MI6-255

Can I fix this?

evenstensberg avatar Dec 06 '24 13:12 evenstensberg