codeant-ai-for-open-source[bot] commented on PR #38517:
URL: https://github.com/apache/superset/pull/38517#issuecomment-4045696210
## **Sequence Diagram**
This PR ensures link color follows the primary color when users override
only primary color in theme config. It applies the same derivation during both
theme creation and runtime theme updates, while preserving explicitly provided
link colors.
```mermaid
sequenceDiagram
participant UI
participant Theme
participant AntDesign
UI->>Theme: Apply theme config via fromConfig or setConfig
Theme->>Theme: Normalize config and merge with base theme when provided
alt Primary set and link not set
Theme->>Theme: Set link color equal to primary color
else Link explicitly set
Theme->>Theme: Keep explicit link color
end
Theme->>AntDesign: Compute design tokens from final config
AntDesign-->>Theme: Return tokens with final link color
Theme-->>UI: Return updated Superset theme
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]