Skip to content

fix(mobile): address safe area insets for page and drawer components#6469

Open
nmerget wants to merge 12 commits into
mainfrom
fix-mobile-safe-areas
Open

fix(mobile): address safe area insets for page and drawer components#6469
nmerget wants to merge 12 commits into
mainfrom
fix-mobile-safe-areas

Conversation

@nmerget
Copy link
Copy Markdown
Collaborator

@nmerget nmerget commented Apr 10, 2026

Proposed changes

closes #6881

Types of changes

  • Bugfix (non-breaking change that fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (improvements to existing components or architectural decisions)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Further comments

🔭🐙🐈 Test this branch here: https://design-system.deutschebahn.com/core-web/review/fix-mobile-safe-areas

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 10, 2026

🦋 Changeset detected

Latest commit: 37e7cb0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@db-ux/core-components Patch
@db-ux/ngx-core-components Patch
@db-ux/react-core-components Patch
@db-ux/wc-core-components Patch
@db-ux/v-core-components Patch
@db-ux/core-foundations Patch
@db-ux/core-stylelint Patch
@db-ux/core-migration Patch
@db-ux/agent-cli Patch
@db-ux/core-eslint-plugin Patch
@db-ux/core-vite-plugin Patch
@db-ux/core-postcss-plugin Patch
@db-ux/mcp-server Patch

Not sure what this means? Click here to learn what changesets are.

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

@nmerget nmerget moved this from 🏗 In progress to 🎁 Ready for review in UX Engineering Team Backlog Apr 10, 2026
@github-actions github-actions Bot added 📕documentation Improvements or additions to documentation 🏘components labels Apr 10, 2026
@mfranzke mfranzke requested a review from Copilot April 12, 2026 11:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to improve mobile rendering by accounting for device safe-area insets (e.g., iOS notch / home indicator) and more reliable viewport sizing in the Page and Drawer components (and related mobile navigation positioning).

Changes:

  • Add 100dvh support (via @supports) and safe-area padding to db-page fixed variant.
  • Adjust drawer sizing/spacing to incorporate env(safe-area-inset-*) and refine max-height behavior.
  • Update mobile sub-navigation positioning to include safe-area insets; add a patch changeset for component packages.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
packages/components/src/components/page/page.scss Uses 100dvh when supported and adds safe-area padding for fixed pages.
packages/components/src/components/navigation-item/navigation-item.scss Offsets mobile sub-navigation inset-block by safe-area top/bottom.
packages/components/src/components/drawer/drawer.scss Incorporates safe-area insets into drawer height/max-height and spacing.
.changeset/three-camels-agree.md Adds a patch changeset describing the mobile safe-area fix.

Comment thread packages/components/src/components/page/page.scss Outdated
Comment thread packages/components/src/components/drawer/drawer.scss
Comment thread packages/components/src/components/drawer/drawer.scss
Comment thread .changeset/three-camels-agree.md Outdated
Comment thread packages/components/src/components/page/page.scss Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mfranzke mfranzke moved this from 🎁 Ready for review to 🎶 Waiting for feedback in UX Engineering Team Backlog Apr 12, 2026
@nmerget nmerget moved this from 🎶 Waiting for feedback to 🎁 Ready for review in UX Engineering Team Backlog Apr 28, 2026
Comment thread packages/components/src/components/drawer/drawer.scss
@mfranzke mfranzke moved this from 🎁 Ready for review to 🎶 Waiting for feedback in UX Engineering Team Backlog Apr 29, 2026
# Conflicts:
#	packages/components/src/components/navigation-item/navigation-item.scss
@nmerget nmerget moved this from 🎶 Waiting for feedback to 🎁 Ready for review in UX Engineering Team Backlog May 7, 2026
@nmerget nmerget enabled auto-merge (squash) May 7, 2026 07:10
@mfranzke mfranzke requested a review from Copilot May 31, 2026 11:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 14 changed files in this pull request and generated 1 comment.

Comment thread packages/components/src/components/drawer/drawer.scss
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@d-koppenhagen d-koppenhagen requested a review from mfranzke June 5, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏘components 📕documentation Improvements or additions to documentation

Projects

Status: 🎁 Ready for review

Development

Successfully merging this pull request may close these issues.

DBPage, DBHeader, DBDrawer do not respect iOS safe areas in standalone PWA mode

3 participants