-
Notifications
You must be signed in to change notification settings - Fork 5.5k
refactor: simplify background handling #38913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
✨ Files requiring CODEOWNER review ✨👨🔧 @MetaMask/core-extension-ux (1 files, +7 -27)
|
ui/css/base-styles.scss
Outdated
| } | ||
| } | ||
| html[data-theme] { | ||
| background-color: var(--color-background-default); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Matches main container
Builds ready [d4c9476]
UI Startup Metrics (1259 ± 92 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [0fffcae]
UI Startup Metrics (1243 ± 105 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [1b1ef1c]
UI Startup Metrics (1271 ± 107 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [de2fc83]
UI Startup Metrics (1247 ± 103 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
Simplify handling of dark/light theme background using the light-dark function
Also fixes #38827 where the document needs to match the main container background
Changelog
CHANGELOG entry: null
Related issues
Fixes: #38827
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Simplifies global dark/light theming by using CSS light-dark and consolidating document/background color handling in
ui/css/base-styles.scss.ui/css/base-styles.scss):color-scheme: dark lightandlight-dark(...)in:rootto set default text and background colors.prefers-color-schemeand non-data-themeconditionals with a singlehtml[data-theme]rule for theme overrides.#app-contentso the document and main container backgrounds align.Written by Cursor Bugbot for commit de2fc83. This will update automatically on new commits. Configure here.