Fix/grid label disappearing on 400 percent#4273
Conversation
📝 WalkthroughWalkthroughThe Grid component's mobile rendering is replaced with accessible semantic HTML: ChangesGrid Mobile Accessibility Rewrite
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related issues
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Adding my comment here, as I think this change would break things for some apps: |
|



Description
On narrow viewports and at high browser zoom (e.g. 400%, which Altinn treats as "mobile"), the Grid component collapses its table into a stacked layout.
Previously this hid the header labels:
Now:
The stacked layout dropped all read-only text columns — so for a typical "Label / Answer" grid, the requirement text disappeared entirely.
This change reworks the Grid's mobile layout so each row keeps its context:
<dl>/<dt>/<dd>) for a correct, programmatic name/value relationship.<label>Related Issue(s)
Verification/QA
Summary by CodeRabbit
Release Notes
New Features
Tests