Skip to content

fix: migrate from rgba channel tokens to color-mix for MUI native colors#697

Merged
chybisov merged 2 commits intomainfrom
fix/migrate-to-color-mix-native-colors
Apr 10, 2026
Merged

fix: migrate from rgba channel tokens to color-mix for MUI native colors#697
chybisov merged 2 commits intomainfrom
fix/migrate-to-color-mix-native-colors

Conversation

@chybisov
Copy link
Copy Markdown
Member

@chybisov chybisov commented Apr 10, 2026

Which Linear task is linked to this PR?

N/A — discovered regression from MUI v7.3.10 update.

Why was it implemented this way?

MUI v7.3.10 included PR #47765 which stopped generating *Channel CSS variables (e.g., --lifi-palette-primary-mainChannel) when nativeColor: true is set. This broke all rgba(${...Channel} / alpha) patterns across the codebase, resulting in transparent/missing backgrounds on buttons, tabs, cards, and other components.

The fix follows MUI's official native color migration guide by replacing all rgba() + channel token patterns with color-mix(in srgb, color alpha%, transparent).

Changes:

  • Migrate all rgba(${...Channel} / alpha)color-mix(in srgb, ${...} alpha%, transparent) across 38 style files in @lifi/widget, @lifi/wallet-management, and widget-playground
  • Bump @mui/material, @mui/system, @mui/icons-material to ^7.3.10
  • Bump @mui/material-nextjs to ^7.3.10
  • Bump @mui/lab to 7.0.1-beta.24

Visual showcase (Screenshots or Videos)

Before (v7.3.10 without fix): transparent backgrounds on text buttons, navigation tabs, tertiary buttons, settings icons.
After: all backgrounds render correctly with proper color-mix() values in both light and dark modes.

Checklist before requesting a review

  • I have performed a self-review and testing of my code.
  • This pull request is focused and addresses a single problem.
  • If this PR modifies the Widget API or adds new features that require documentation, I have updated the documentation in the public-docs repository.

MUI v7.3.10 (PR #47765) stopped generating *Channel CSS variables when
nativeColor: true is set, breaking all rgba(${...Channel} / alpha)
patterns across the codebase resulting in transparent backgrounds.

Replace all occurrences with color-mix(in srgb, color alpha%, transparent)
as recommended by MUI's native color migration guide. Also bump @mui/*
packages to ^7.3.10 and @mui/lab to 7.0.1-beta.24.

Made-with: Cursor
@chybisov chybisov requested a review from effie-ms April 10, 2026 15:48
@github-actions
Copy link
Copy Markdown

Hey! This is your new endpoint: https://50933d99.widget-fixmigrate.pages.dev

1 similar comment
@github-actions
Copy link
Copy Markdown

Hey! This is your new endpoint: https://50933d99.widget-fixmigrate.pages.dev

@chybisov chybisov merged commit 1655d19 into main Apr 10, 2026
3 of 4 checks passed
@chybisov chybisov deleted the fix/migrate-to-color-mix-native-colors branch April 10, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants