Altinn / Altinn/app-frontend-react

Tom tekststreng inn i description lager tomt opphold mellom tittel og inputfelt

Open
#3,127 3 comments 0 reactions 0 assignees View on GitHub
kind/bug org/ssb squad/utforming status/for-consideration
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description of the bug

Tom tekstressurs inn i `description` på inputfelt lager "tom plass" mellom tittel og inputfelt. Dersom `description` er tom, burde tittel automatisk legge seg ned til inputfeltet.

### Steps To Reproduce

I eksemplet under skal vi ha inn description som prefill via datamodellen. "" returneres dersom tekstvariabelen i datamodellen er tom, allikevel blir det luft mellom titel og inputfelt.

![Image](https://github.com/user-attachments/assets/7f635c3d-af75-496a-9e11-5b707711ac5a)

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing an input field whose description is an empty string from the data model, then trace the input field rendering and its spacing between the title and field. Done means an empty description leaves no blank space and the title sits directly above the input field; verify that non-empty descriptions still display correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.