Skip to content

在modal弹框没有指定父级时同时添加了scoped,可以通过/deep/能修改modal的样式。 #2771

@minibao

Description

@minibao
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.6.4

Environment

cli-4

Reproduction link

https://github.com/minibao/Bugs/blob/master/demo.less

Steps to reproduce

引用了less时,通过/deep/.ant-modal 能修改modal自身的样式和下面的样式

What is expected?

修改的方式应该只能挂载到对应该的标签下,才能去修改。

What is actually happening?

仅仅通过/deep/.ant-modal 就能修改它的样式和下面所有的样式,并且modal的层级关系还不在(vue,id=app)下面

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions