Skip to content

fix(item): stop ios lines from disappearing - #31800

Draft
thetaPC wants to merge 4 commits into
FW-6848from
FW-7047
Draft

thetaPC wants to merge 4 commits into
FW-6848from
FW-7047

Conversation

@thetaPC

@thetaPC thetaPC commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Issue number: resolves #30772


What is the current behavior?

On iOS, WebKit skips borders thinner than one CSS pixel at some positions on the page, so the 0.55px line between items disappears while scrolling.

What is the new behavior?

  • Adds a mediaQuery recipe key: values under mediaQuery.min.resolution set the same variable inside a media query. A value a custom theme sets replaces the base theme's media query values for that key, so it applies on every screen.
  • ion-divider draws its line as a filled box instead of a border, and the ios theme sets it to one screen pixel at each density.
  • Adds an item hairlines test page that reproduces the missing lines.
  • In progress: ios ion-item draws its lines with ion-divider.

Does this introduce a breaking change?

  • Yes
  • No

On ios, --border-width and --inner-border-width no longer draw the lines between items. Apps that set them to hide or resize a line use lines="none" to hide it, or style it with ion-item::part(line) (full width) or ion-item::part(inner-line) (inset). --border-color still sets the line color.

Other information

The hairlines test page reproduces the bug in Safari on an iPhone or the iOS simulator. Tap the Shift button to move the lines to new positions.

Recipe values under mediaQuery.min.resolution set the same variable inside a media query. A value a custom theme sets replaces the base theme's media query values for that key, so it applies on every screen.
The line is a filled box instead of a border, since WebKit skips borders thinner than one CSS pixel at some positions. The ios theme sets the thickness per screen density.
@thetaPC
thetaPC added this pull request to stack #31795 November 20, 2026 19:15
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-framework Ready Ready Preview Nov 20, 2026 10:24pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — f44de72c Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant