Skip to content

fix: overlap of buttons when using 400% zoom#4269

Merged
walldenfilippa merged 1 commit into
mainfrom
fix/400-zoom-navigationmenu-and-back-button-overlap
Jun 18, 2026
Merged

fix: overlap of buttons when using 400% zoom#4269
walldenfilippa merged 1 commit into
mainfrom
fix/400-zoom-navigationmenu-and-back-button-overlap

Conversation

@walldenfilippa

@walldenfilippa walldenfilippa commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Description

Flex-wrap: wrap ensures that the buttons wrap onto the next line instead of overlapping
Before:
image

After:
image

Related Issue(s)

  • closes #{issue number}

Verification/QA

  • Manual functionality testing
    • I have tested these changes manually
    • Creator of the original issue (or service owner) has been contacted for manual testing (or will be contacted when released in alpha)
    • No testing done/necessary
  • Automated tests
    • Unit test(s) have been added/updated
    • Cypress E2E test(s) have been added/updated
    • No automatic tests are needed here (no functional changes/additions)
    • I want someone to help me make some tests
  • UU/WCAG (follow these guidelines until we have our own)
    • I have tested with a screen reader/keyboard navigation/automated wcag validator
    • No testing done/necessary (no DOM/visual changes)
    • I want someone to help me perform accessibility testing
  • User documentation @ altinn-studio-docs
    • Has been added/updated
    • No functionality has been changed/added, so no documentation is needed
    • I will do that later/have created an issue
  • Support in Altinn Studio
    • Issue(s) created for support in Studio
    • This change/feature does not require any changes to Altinn Studio
  • Sprint board
    • The original issue (or this PR itself) has been added to the Team Apps project and to the current sprint board
    • I don't have permissions to do that, please help me out
  • Labels
    • I have added a kind/* and backport* label to this PR for proper release notes grouping
    • I don't have permissions to add labels, please help me out

Summary by CodeRabbit

  • Style
    • Navigation bar items now align to the left with support for wrapping to multiple lines, replacing the previous even distribution pattern.

@walldenfilippa walldenfilippa added kind/bug Something isn't working backport This PR should be cherry-picked onto older release branches labels Jun 15, 2026
@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The .wrapper flex container in NavBar.module.css has justify-content changed from space-between to flex-start, and flex-wrap: wrap is added to allow child elements to wrap onto multiple lines.

Changes

NavBar wrapper flex layout update

Layer / File(s) Summary
.wrapper flex-start and flex-wrap
src/components/presentation/NavBar.module.css
justify-content changed from space-between to flex-start; flex-wrap: wrap added to the .wrapper selector.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change - fixing button overlap at 400% zoom by modifying CSS flex layout properties.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The PR description includes clear context with before/after screenshots, manual testing confirmation, and proper verification checklist completion.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/400-zoom-navigationmenu-and-back-button-overlap

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@walldenfilippa walldenfilippa changed the title fix overlap of buttons when using 400% zoom fix: overlap of buttons when using 400% zoom Jun 15, 2026
@sonarqubecloud

Copy link
Copy Markdown

@walldenfilippa walldenfilippa merged commit acdfa75 into main Jun 18, 2026
20 of 26 checks passed
@walldenfilippa walldenfilippa deleted the fix/400-zoom-navigationmenu-and-back-button-overlap branch June 18, 2026 07:30
@github-actions

Copy link
Copy Markdown
Contributor

Automatic backport successful!

A backport PR has been automatically created for the release/v4.31 release branch.

The release branch release/v4.31 already existed and was updated.

The cherry-pick was clean with no conflicts. Please review the backport PR when it appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR should be cherry-picked onto older release branches kind/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WCAG brudd: 1.4.10 Dynamisk tilpasning (Reflow) (AA): Tilbake til innboks/hovedskjema knapp

2 participants