Skip to content

if less variable is @color, the @primary-color is @primary-color: @color; the @primary-color will abnormal #4535

Open
@ghost

Description

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

Version

2.2.6

Environment

OS: windows 10; node: 16.3; Vue:3.0.5; Chrome: 92.0.4515.131

Reproduction link

https://github.com/benyuanzhang-Zhang/antdv-less-bug

Steps to reproduce

abnormal

@color: #5773d7; // other colors have the same effect
@primary-color: @color; // black

don't use @color is normal

@other-variable: #5773d7;
@primary-color: @other-variable; // normal

What is expected?

the theme primary color is my setting color when mouse hover the default button
当我鼠标悬浮在默认按钮上面是我设置颜色的计算结果
image

What is actually happening?

when i hover the border color is black
当我悬浮的时候,边框颜色是黑色的
image

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