Skip to content

fix(backdrop): match the ionic backdrop color to the design - #31698

Open
thetaPC wants to merge 3 commits into
FW-6836from
FW-6836-ionic-spec
Open

thetaPC wants to merge 3 commits into
FW-6836from
FW-6836-ionic-spec

Conversation

@thetaPC

@thetaPC thetaPC commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Issue number: resolves internal


What is the current behavior?

In the ionic theme, the backdrop color has its own 0.7 alpha, and alerts, action sheets and modals fade the backdrop to 0.7 again. The page behind them dims to #131518 at 0.49 instead of the design's black at 0.7.

What is the new behavior?

  • The ionic IonBackdrop.background is black, the same as md and ios. The color has no alpha, so each overlay's opacity alone sets how much the page dims
  • This PR doesn't change any overlay's opacity. Each overlay's own migration moves its opacity into tokens, and the alert, action sheet, modal and menu tickets now require the ionic theme to dim to black at 0.7
  • Alerts, action sheets and modals dim the page to black at 0.7, matching the backdrop color in the ionic design kit (#000000b2)
  • Loading and popover keep their current opacity (0.32 and 0.3), now in black, until their migrations set it. The kit has no design for them

Does this introduce a breaking change?

  • Yes
  • No

Other information

Known gaps

  • The side menu's backdrop opacity is fixed at 0.32 in its animation, so the ionic menu dims to black at 0.32 instead of the kit's 0.7. The menu migration (FW-6897) owns that value

How to test

Check Before After What to look for
Alert Before After Tap Alert. The page behind it is darker in After
Modal Before After Open a modal on a wide screen. The page around it is darker in After
md is unchanged Before After Tap Alert. Both dim the same

@thetaPC
thetaPC added this pull request to stack #31699 November 5, 2026 19:29
@vercel

vercel Bot commented Nov 5, 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 5, 2026 9:01pm UTC

Request Review

@thetaPC
thetaPC marked this pull request as ready for review November 5, 2026 22:41
@thetaPC
thetaPC requested a review from a team as a code owner November 5, 2026 22:41
@thetaPC
thetaPC requested a review from brandyscarney November 5, 2026 22:41

This branch was successfully deployed

1 active deployment
Preview — 5350e2ac Deployed Nov 5, 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.

2 participants