Some css variables get overridden
Author: vatsakeCreated Sep 19, 2026Updated Sep 19, 2026
Reproduction link
I dont think it's needed
Steps to reproduce
Import styles ng-zorro-antd/ng-zorro-antd.variable.min.css
What is expected?
CSS variables are working as intended
What is actually happening?
CSS variables get overridden in the same css file
For example: .ant-btn-text
.ant-btn-text:focus, .ant-btn-text:hover {
color: rgba(0, 0, 0, .85);
background: rgba(0, 0, 0, .018);
border-color: transparent;
}
.ant-btn-text:focus, .ant-btn-text:hover {
color: var(--ant-primary-color-hover);
border-color: var(--ant-primary-color-hover);
background: 0 0;
}| Environment | Info |
|---|---|
| ng-zorro-antd | 22.1.0 |
| Browser | any |
Source: NG-ZORRO/ng-zorro-antd