Skip to content

docs(code-preview): update overflow to auto#2599

Merged
nuke-ellington merged 4 commits into
mainfrom
feature/IX-4305
Jul 7, 2026
Merged

docs(code-preview): update overflow to auto#2599
nuke-ellington merged 4 commits into
mainfrom
feature/IX-4305

Conversation

@alexkaduk

@alexkaduk alexkaduk commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

💡 What is the current behavior?

Preview example pages in all five test apps set overflow: hidden on the html element in global.css. When example content exceeds the viewport (common in embedded code previews), overflow is clipped and the page cannot be scrolled.

GitHub Issue Number: IX-4305 (branch feature/IX-4305)

🆕 What is the new behavior?

  • html { overflow: hidden; } is changed to overflow: auto in src/preview-examples/global.css across all test apps.
  • Tall or wide preview content can scroll instead of being cut off.
  • The same one-line CSS change is applied consistently in:
    • packages/html-test-app
    • packages/react-test-app
    • packages/vue-test-app
    • packages/angular-test-app
    • packages/angular-standalone-test-app

🏁 Checklist

A pull request can only be merged if all of these conditions are met (where applicable):

  • 🦮 Accessibility (a11y) features were implemented — N/A (CSS scroll behavior only; no new a11y API)
  • 🗺️ Internationalization (i18n) - no hard coded strings — N/A
  • 📲 Responsiveness - components handle viewport changes and content overflow gracefully — scroll now available when preview content overflows the viewport
  • 📕 Add or update a Storybook story — N/A
  • 📄 Documentation was reviewed/updated siemens/ix-docs — N/A (test-app preview CSS only)
  • 🧪 Unit tests were added/updated and pass (pnpm test) — N/A
  • 📸 Visual regression tests were added/updated and pass (Guide) — N/A
  • 🧐 Static code analysis passes (pnpm lint)
  • 🏗️ Successful compilation (pnpm build, changes pushed)

Summary by CodeRabbit

  • Bug Fixes
    • Updated page root styling in the test apps to use full-width layout behavior that better matches the viewport.
    • Enabled normal page scrolling where content overflows, instead of locking scrolling.
    • Kept the existing full-height page layout intact while improving overall page behavior.

@changeset-bot

changeset-bot Bot commented Jun 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 4442423

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify

netlify Bot commented Jun 13, 2026

Copy link
Copy Markdown

Deploy Preview for ix-storybook canceled.

Name Link
🔨 Latest commit 4442423
🔍 Latest deploy log https://app.netlify.com/projects/ix-storybook/deploys/6a461af35306e400088514fa

@coderabbitai

coderabbitai Bot commented Jun 13, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The html element's CSS across five preview-examples global.css files (angular-standalone-test-app, angular-test-app, html-test-app, react-test-app, vue-test-app) was updated: width changed from 100vw to 100% and overflow changed from hidden to auto, with height: 100vh unchanged.

Changes

Global CSS html rule update

Layer / File(s) Summary
Update html width/overflow styling
packages/angular-standalone-test-app/src/preview-examples/global.css, packages/angular-test-app/src/preview-examples/global.css, packages/html-test-app/src/preview-examples/global.css, packages/react-test-app/src/preview-examples/global.css, packages/vue-test-app/src/preview-examples/global.css
Each file's html rule changes width from 100vw to 100% and overflow from hidden to auto, keeping height: 100vh.

Estimated code review effort: 1 (Trivial) | ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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 Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: preview pages now use overflow:auto instead of overflow:hidden.
✨ 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 feature/IX-4305

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.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the global CSS across multiple test applications (Angular Standalone, Angular, HTML, React, and Vue) by changing the html element's overflow property from hidden to auto. The reviewer correctly pointed out that combining width: 100vw with overflow: auto triggers an unwanted horizontal scrollbar when vertical scrolling is active, as 100vw includes the scrollbar width. To fix this layout issue, it is recommended to change width: 100vw to width: 100%.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread packages/angular-test-app/src/preview-examples/global.css
Comment thread packages/html-test-app/src/preview-examples/global.css
Comment thread packages/react-test-app/src/preview-examples/global.css
Comment thread packages/vue-test-app/src/preview-examples/global.css
@alexkaduk alexkaduk marked this pull request as ready for review June 18, 2026 17:21
@flxlst09 flxlst09 added this to the 5.1.0 milestone Jun 25, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jul 2, 2026

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
packages/react-test-app/src/preview-examples/global.css (1)

16-25: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Same #root: width: 100vw vs. html: width: 100% mismatch as noted in the other test apps.

Once overflow: auto allows scrollbars, #root at 100vw can overflow horizontally past the scrollbar-adjusted viewport. Recommend aligning #root to width: 100% for consistency with the html fix.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/react-test-app/src/preview-examples/global.css` around lines 16 -
25, The global layout styles have a width mismatch between html and `#root` that
can cause horizontal overflow when overflow:auto introduces scrollbars. Update
the `#root` rule in global.css to use the same width behavior as html by aligning
it to width: 100%, keeping the sizing consistent across the preview app.
packages/angular-standalone-test-app/src/preview-examples/global.css (1)

16-25: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Potential horizontal overflow: #root still uses width: 100vw while html overflow is now auto.

With overflow: hidden removed, browser scrollbars can now appear. 100vw includes the scrollbar's width, so once a vertical scrollbar shows, #root at 100vw will overflow horizontally, causing an unwanted horizontal scrollbar — partially reintroducing the clipping/overflow problem this change is meant to fix. Since html was switched to width: 100% for this exact reason, consider applying the same fix to #root.

💡 Suggested fix
 `#root` {
   height: 100vh;
-  width: 100vw;
+  width: 100%;
 }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/angular-standalone-test-app/src/preview-examples/global.css` around
lines 16 - 25, The layout in global styles still risks horizontal overflow
because `#root` uses width: 100vw while html now allows scrollbars with overflow:
auto. Update the `#root` rule in global.css to use a viewport-safe width approach
consistent with html width: 100%, and keep the sizing aligned with the root
container so scrollbar width does not create an extra horizontal scroll.
packages/vue-test-app/src/preview-examples/global.css (1)

16-25: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Same #root: width: 100vw vs. html: width: 100% mismatch as noted in the other test apps.

Same horizontal-overflow risk as flagged in packages/angular-standalone-test-app/src/preview-examples/global.css and packages/react-test-app/src/preview-examples/global.css#root should likely move to width: 100% alongside the html change.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/vue-test-app/src/preview-examples/global.css` around lines 16 - 25,
The global layout styles in the preview example have a width mismatch between
html and `#root` that can cause horizontal overflow. Update the `#root` rule in
global.css to use the same width behavior as html by changing it from a viewport
width to a full parent width, keeping the existing html and `#root` selectors
aligned with the patterns used in the other test apps.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@packages/angular-standalone-test-app/src/preview-examples/global.css`:
- Around line 16-25: The layout in global styles still risks horizontal overflow
because `#root` uses width: 100vw while html now allows scrollbars with overflow:
auto. Update the `#root` rule in global.css to use a viewport-safe width approach
consistent with html width: 100%, and keep the sizing aligned with the root
container so scrollbar width does not create an extra horizontal scroll.

In `@packages/react-test-app/src/preview-examples/global.css`:
- Around line 16-25: The global layout styles have a width mismatch between html
and `#root` that can cause horizontal overflow when overflow:auto introduces
scrollbars. Update the `#root` rule in global.css to use the same width behavior
as html by aligning it to width: 100%, keeping the sizing consistent across the
preview app.

In `@packages/vue-test-app/src/preview-examples/global.css`:
- Around line 16-25: The global layout styles in the preview example have a
width mismatch between html and `#root` that can cause horizontal overflow. Update
the `#root` rule in global.css to use the same width behavior as html by changing
it from a viewport width to a full parent width, keeping the existing html and
`#root` selectors aligned with the patterns used in the other test apps.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 489d9406-1004-404f-a1da-a81f7bf252c6

📥 Commits

Reviewing files that changed from the base of the PR and between e46872b and 4442423.

📒 Files selected for processing (5)
  • packages/angular-standalone-test-app/src/preview-examples/global.css
  • packages/angular-test-app/src/preview-examples/global.css
  • packages/html-test-app/src/preview-examples/global.css
  • packages/react-test-app/src/preview-examples/global.css
  • packages/vue-test-app/src/preview-examples/global.css

@nuke-ellington nuke-ellington changed the title fix(code-preview): update overflow to auto IX-4305 docs(code-preview): update overflow to auto IX-4305 Jul 7, 2026
@nuke-ellington nuke-ellington changed the title docs(code-preview): update overflow to auto IX-4305 docs(code-preview): update overflow to auto Jul 7, 2026
@nuke-ellington nuke-ellington merged commit 2a6055f into main Jul 7, 2026
16 checks passed
@nuke-ellington nuke-ellington deleted the feature/IX-4305 branch July 7, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants