Skip to content

feat(menu-toggle): migrate to Modular Ionic#31171

Draft
thetaPC wants to merge 4 commits into
ionic-modularfrom
FW-6854
Draft

feat(menu-toggle): migrate to Modular Ionic#31171
thetaPC wants to merge 4 commits into
ionic-modularfrom
FW-6854

Conversation

@thetaPC
Copy link
Copy Markdown
Contributor

@thetaPC thetaPC commented May 27, 2026

Issue number: resolves internal


What is the current behavior?

ion-menu-toggle does not fragment styles based on themes. All 3 themes share one style. However, it's not configured to the Modular Ionic.

What is the new behavior?

  • The virtual theme prop has been removed. The ios andmd classes are no longer applied to the ion-menu-toggle element.

Does this introduce a breaking change?

  • Yes
  • No

This PR introduces breaking changes to how ion-menu-toggle is styled.

Migration Path:

  1. Theme classes: Remove any instances that target the theme classes: ion-menu-toggle.md, ion-menu-toggle.ios.

Other information

Previews

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

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

Project Deployment Actions Updated (UTC)
ionic-framework Ready Ready Preview, Comment May 27, 2026 6:15pm

Request Review

Comment on lines +45 to +49
try {
this.visible = await updateVisibility(this.menu);
} catch {
this.visible = false;
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

connectedCallback and the @Listen handlers discard the Promise returned by visibilityChanged(), so any rejection would surface as unhandled. The current chain can't reject, but catching here makes the method safe against future changes to menuController.get() (from @utils/menu-controller) or ion-menu's isActive.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant