Altinn / Altinn/app-frontend-react

Id overflows on error for phone-view

Open
#3,621 0 comments 0 reactions 0 assignees View on GitHub
kind/bug status/triage
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description of the bug

This may not be something to worry about as it shouldn't appear in production, but if an id of a component is longer than the `div` it's inside, it'll overflow on smaller screens (e.g. phones).

Should be fixed by a `word-wrap: break-word` if that's optimal.

## Screenshots of overflow

Image

Image

### Steps To Reproduce

1. Add a new component to a page with an id bigger than 32-ish characters
2. Reference the dataModelBinding to something that doesn't exist in the datamodel
3. See error appear in schema

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by using a component ID longer than about 32 characters and an invalid dataModelBinding, then inspect the schema error rendering and its responsive styles. The work is done when the long ID wraps within the error container on phone-sized screens without disrupting the error display.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.