Open
Description
Reproduction link
Steps to reproduce
- add button with icon only
- check if is has class ant-btn-icon-only
What is expected?
button has ant-btn-icon-only class
What is actually happening?
button doesn't have ant-btn-icon-only class
Environment | Info |
---|---|
ng-zorro-antd | 14.0.0 |
Browser | All |
it checks if svg node exists
return node.nodeName === 'SPAN' && iconChildNodes.length > 0 && iconChildNodes.every(ic => ic.nodeName === 'svg');