Fix dark theme incomplete rendering by adding runtime theme algorithm#11642
Open
Fix dark theme incomplete rendering by adding runtime theme algorithm#11642
Conversation
Agent-Logs-Url: https://github.com/ant-design/ant-design-pro/sessions/3968532c-b6fa-45bb-bf32-ae47ab93c36c Co-authored-by: afc163 <507615+afc163@users.noreply.github.com>
Deploying ant-design-pro with Β
|
| Latest commit: |
66003c5
|
| Status: | Β β Β Deploy successful! |
| Preview URL: | https://93ffed34.ant-design-pro-nd3.pages.dev |
| Branch Preview URL: | https://claude-fix-dark-theme-bug.ant-design-pro-nd3.pages.dev |
- Add RuntimeAntdConfig export in app.tsx that dynamically applies theme.darkAlgorithm when navTheme is 'realDark' - Remove static theme config from config.ts to allow runtime configuration - This ensures the entire app (including backgrounds) properly switches to dark theme Agent-Logs-Url: https://github.com/ant-design/ant-design-pro/sessions/3968532c-b6fa-45bb-bf32-ae47ab93c36c Co-authored-by: afc163 <507615+afc163@users.noreply.github.com>
Add proper type annotation for memo parameter to resolve TS2339 error Agent-Logs-Url: https://github.com/ant-design/ant-design-pro/sessions/06d932cc-9f2c-486d-bb75-564b647eb633 Co-authored-by: afc163 <507615+afc163@users.noreply.github.com>
Fixed TypeScript error TS2322 by making initialState property optional. The framework may call the antd runtime config function with an empty object, so initialState cannot be required. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Co-authored-by: afc163 <507615+afc163@users.noreply.github.com>
Codecov Reportβ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11642 +/- ##
==========================================
- Coverage 39.70% 39.14% -0.56%
==========================================
Files 196 196
Lines 2340 2345 +5
Branches 392 405 +13
==========================================
- Hits 929 918 -11
- Misses 1411 1423 +12
- Partials 0 4 +4 β View full report in Codecov by Sentry. π New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Uh oh!
There was an error while loading. Please reload this page.