Skip to content

[popover] 中悬浮箭头的颜色不能根据背景颜色改变 #4123

@ZiRui2022

Description

@ZiRui2022

tdesign-miniprogram 版本

1.12.0

重现链接

No response

重现步骤

    <t-popover
      placement="top"
      theme="light"
      t-class-content="popover-content"/>

.popover-content {
background-color: red !important;
}
设置内容背景颜色,并不能设置悬浮箭头的颜色,需要这样设置
/* 修改 t-popover 箭头颜色 */
.item-product-popover .t-popover--light .t-popover__arrow {
color: red !important;
}
同时在小程序中需要会报警告:[packages/book-sheet/pages/sheet/sheet] Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./miniprogram_npm/tdesign-miniprogram/popover/popover.wxss:62:37)

期望结果

No response

实际结果

No response

基础库版本

No response

补充说明

No response

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't working

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions