mi6 / mi6/ic-ui-kit

[ic-date-input] formatting of placeholder text messes up

Open
#3,482 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
53
Forks
63
Avg merge
2d 4h
Merged PRs (30d)
15

Description

## Summary of the bug
The formatting of the placeholder dd\mm\yyyy can overlap in some situations

## 🪜 How to reproduce
There are a few ways in which this happens, but the following seems to recreate the issue reliably

1. Go to a date input field
2. enter a value eg 01/02/2001
3. Now delete the DD part of the date:
4. See the DD placeholder text is partially hidden:

![Image](https://github.com/user-attachments/assets/3ba1a3ad-cb35-44f7-8348-b728c6021977)

similar happens if you remove the MM part:

![Image](https://github.com/user-attachments/assets/0693fa69-1ce2-4b59-a4b3-41e25e04d95d)

However, when clearing the field with the "X" button, the formatting is correct:

![Image](https://github.com/user-attachments/assets/b922431f-4572-4067-8b97-ab96b0ab31d2)

## 🧐 Expected behaviour
The DD, MM and YYYY placeholder text should be fully visible when the values are cleared

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the ic-date-input date field, comparing partial deletion of the DD or MM value with clearing the field using the X button. Done means the DD, MM and YYYY placeholder text remains fully visible after either interaction.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.