You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "morningman (via GitHub)" <gi...@apache.org> on 2026/10/23 09:30:40 UTC
[PR] [fix](website) Restore Ask AI control contrast [doris-website]
morningman opened a new pull request, #4481:
URL: https://github.com/apache/doris-website/pull/4481
## Summary
The Ask AI attachment button appears as a solid dark circle, and Fast/Thinking labels can disappear after toggling. The theme bridge overrides every action-icon background and mistakes neutral black text and icons for brand colors.
Replace DOM recoloring with `Kapa.updateConfig`, passing the current `--brand-primary` as `data-project-color`. Kapa then recalculates its palette and contrasting text. The existing modal positioning and scrolling styles remain unchanged.
## Validation
- `node --check static/js/custom-script.js`
- `git diff --check`
- Browser checks with the current Kapa widget and repository theme tokens at 1440 × 1100 and 390 × 844 across all eight brand themes, including repeated Fast/Thinking toggles and text/icon contrast checks.
- Verified attachment file chooser, keyboard toggling, Escape/close/reopen, saved-theme initialization, and preservation of draft input and selected mode during theme changes.
- Used a temporary browser fixture; the full Docusaurus build was not run.
## Versions
- [ ] dev
- [ ] 4.x
- [ ] 3.x
- [ ] 2.1 or older (not covered by version/language sync gate)
## Languages
- [ ] Chinese
- [ ] English
This shared site script applies to all versions and locales. No documentation counterparts require changes.
## Docs Checklist
- [x] Checked by AI
- [x] Test Cases Built
- [x] Updated required version and language counterparts, or explained why not
- [x] If only one language changed, confirmed whether source/translation counterparts need sync
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](website) Restore Ask AI control contrast [doris-website]
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman merged PR #4481:
URL: https://github.com/apache/doris-website/pull/4481
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org