codeant-ai-for-open-source[bot] commented on PR #38517:
URL: https://github.com/apache/superset/pull/38517#issuecomment-4044376823
## **Sequence Diagram**
This PR updates theme application so link color is automatically aligned
with primary color when users override primary color but do not provide link
color. It preserves explicit link color overrides while ensuring merged and
runtime theme updates produce consistent link styling.
```mermaid
sequenceDiagram
participant User
participant Theme
participant BaseTheme
participant AntdTokens
participant UI
User->>Theme: Apply theme config
Theme->>BaseTheme: Merge user config with base theme
alt colorPrimary set and colorLink missing
Theme->>Theme: Set colorLink to merged colorPrimary
else colorLink explicitly set
Theme->>Theme: Keep provided colorLink
end
Theme->>AntdTokens: Compute resolved design tokens
AntdTokens-->>Theme: Return final token values
Theme-->>UI: Render links using resolved colorLink
```
---
*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]