-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: dark 模式下arrow 未配置 #2850
fix: dark 模式下arrow 未配置 #2850
Conversation
Walkthrough本次更改主要集中在 Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #2850 +/- ##
=======================================
Coverage 84.01% 84.01%
=======================================
Files 219 219
Lines 17899 17899
Branches 2622 2622
=======================================
Hits 15038 15038
Misses 2856 2856
Partials 5 5 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
src/packages/popover/popover.scss (1)
Line range hint
242-252
: 建议:考虑优化深色模式样式的优先级处理当前实现使用了
!important
来强制应用背景色和文本颜色。虽然目前可以正常工作,但建议考虑以下优化方案:
- 通过提高选择器优先级来避免使用
!important
- 使用 CSS 自定义属性(CSS变量)来统一管理主题颜色
这样可以提高代码的可维护性和灵活性。
.nut-popover-dark { .nut-popover-content { - background: $popover-text-color !important; - color: $popover-content-background-color !important; + &.nut-popover-content { + background: $popover-text-color; + color: $popover-content-background-color; + } } }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
src/packages/popover/popover.scss
(1 hunks)
🔇 Additional comments (1)
src/packages/popover/popover.scss (1)
230-241
: 箭头边框颜色配置正确
在深色模式下,箭头边框颜色现已正确设置为 $popover-text-color
,与深色主题保持一致。这个修复确保了所有方向(上、下、左、右)的箭头都能在深色模式下正确显示。
🤔 这个变动的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
☑️ 请求合并前的自查清单
Summary by CodeRabbit