codeant-ai-for-open-source[bot] commented on PR #38517:
URL: https://github.com/apache/superset/pull/38517#issuecomment-4032862502
## **Sequence Diagram**
This PR updates theme creation and configuration so that when a user sets a
primary color but does not set a link color, the link color is derived from the
primary color before Ant Design tokens are computed, while still respecting any
explicit link color overrides.
```mermaid
sequenceDiagram
participant Caller
participant Theme
participant AntdTokens
participant UI
Caller->>Theme: Create or update theme with user and base config
Theme->>Theme: Merge base and user config
Theme->>Theme: If primary set and link missing, set link to primary
Theme->>AntdTokens: Compute Ant Design tokens from updated config
AntdTokens-->>Theme: Return design tokens including link color
Theme-->>UI: Provide theme where links follow primary color
```
---
*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]