Altinn / Altinn/app-frontend-react
Tom tekststreng inn i description lager tomt opphold mellom tittel og inputfelt
- 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.

### Additional Information
_No response_
Contributor 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