Skip to content

[Bugfix]Popover.Menu 在深色模式下, 背景颜色错误 #6847

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/popover/popover.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.@{class-prefix-popover} {
--z-index: var(--adm-popover-z-index, 1030);

--background: #ffffff;
--background: var(--adm-color-background);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看起来不太明显:

截屏2025-03-21 02 19 51

Copy link
Author

@neil4dong neil4dong Mar 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

确实有点不太明显, 不过比原来好。 我看了下应该是要用 shadow-box 来做, 不过我不是前端, 刚刚试了一下没有尝试出好的方法。 我看有一个--adm-color-box 的变量,试了一下不太合适也不是rgba的, 或许需要去定一个一个关于shadow的全局css变量? 有没有什么建议呢

第43行 : box-shadow: 0 0 30px 0 rgba(51, 51, 51, 0.2);

box-shadow: 0 0 30px 0 rgba(51, 51, 51, 0.2);

image
image

--arrow-size: 8px;
--content-padding: 8px 12px;

Expand Down
Loading