mi6 / mi6/ic-ui-kit

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

Open
#214 3 comments 0 reactions 0 assignees View on GitHub
component: ic-text-field
Dominant language
TypeScript
Stars
53
Forks
63
Avg merge
2d 4h
Merged PRs (30d)
15

Description

## 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](https://user-images.githubusercontent.com/117368893/210773117-c6beb33c-8fa6-4bf1-8668-8dbea73d827d.png)

## 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?

Contributor guide

Open the contributing guide

Research direction

Start with the ic-text-field component and reproduce the issue using a small defined width and input above the character limit. Compare the validation message and character count against the expected spaced layout, then confirm the chosen responsive behavior at narrow widths.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.