Skip to content

feat(divider): add recipe and tokens - #31794

Draft
thetaPC wants to merge 7 commits into
FW-6848-testsfrom
FW-6848
Draft

thetaPC wants to merge 7 commits into
FW-6848-testsfrom
FW-6848

Conversation

@thetaPC

@thetaPC thetaPC commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Issue number: resolves internal


What is the current behavior?

ion-divider does not fragment styles based on themes.

What is the new behavior?

  • Migrates ion-divider to a single divider.scss driven by tokens
  • Adds IonDividerRecipe and IonDividerConfig with ionic, ios and md token values
  • The default spacing now comes from the IonDivider.spacing config instead of a hardcoded "medium"
  • Names the line tokens color and thickness, since width would read as the divider's length
  • Removes the inset property, since the design has no inset divider; class="ion-padding-horizontal" gives the same result
  • Adds a none spacing, which is always 0 and has no token, matching the design. xxsmall changes from 0 to 4px

Does this introduce a breaking change?

  • Yes
  • No

Other information

ion-divider has only shipped on next, so the removed inset property and the replaced --margin-top, --margin-bottom, --padding-start and --padding-end variables need no BREAKING.md entry.

Hairline rendering on iOS is tracked as a follow-up PR on top of this one.

How to test

Check Before After What to look for
Basic ios, md, ionic ios, md, ionic The gray line sits 16px below "Top" and above "Bottom", the same as "Default" before. The "Inset" example is gone with the inset property.
Spacing ios, md, ionic ios, md, ionic The gap around the line grows from none (none) to 40px (xxlarge). xxsmall is new at 4px; every other size matches the "No Inset" column before.

@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 9:22pm UTC

Request Review

@github-actions github-actions Bot added package: core @ionic/core package package: angular @ionic/angular package package: vue @ionic/vue package labels Nov 20, 2026
@thetaPC
thetaPC added this pull request to stack #31795 November 20, 2026 00:37

This branch was successfully deployed

1 active deployment
Preview — 707e0ad1 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: angular @ionic/angular package package: core @ionic/core package package: vue @ionic/vue package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant