codeant-ai-for-open-source[bot] commented on PR #38517:
URL: https://github.com/apache/superset/pull/38517#issuecomment-4036955214
## **Sequence Diagram**
This PR updates theme configuration so that when a theme overrides the
primary color without explicitly setting a link color, the link color is
derived from the primary color both during initial theme creation and later
configuration updates.
```mermaid
sequenceDiagram
participant Caller
participant Theme
participant AntDesign
Caller->>Theme: fromConfig(user theme, base theme)
Theme->>Theme: Merge base and user themes
Theme->>Theme: If primary set and link missing, set link to primary
Theme-->>Caller: Return Theme instance with updated tokens
Caller->>Theme: setConfig(new theme config)
Theme->>Theme: Normalize config and default link from primary if missing
Theme->>AntDesign: Compute design tokens
AntDesign-->>Theme: Return computed tokens
```
---
*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]