You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following example code in https://primeng.org/icons#color is not working as expected: <i class="pi pi-search" style="color: 'var(--primary-color)'"></i>
I guess the quotes around the css var are a copy paste mistake. I will quickly create a PR to fix / update the documentation.
Environment
Not relevant
Reproducer
No response
Angular version
17.x.x
PrimeNG version
17.8.9
Build / Runtime
Angular CLI App
Language
ALL
Node version (for AoT issues node --version)
20.x.x
Browser(s)
No response
Steps to reproduce the behavior
Copy paste exmaple from color section
Expected behavior
Third icon has the primary color, which it will not have.
The text was updated successfully, but these errors were encountered:
Describe the bug
The following example code in https://primeng.org/icons#color is not working as expected:
<i class="pi pi-search" style="color: 'var(--primary-color)'"></i>
I guess the quotes around the css var are a copy paste mistake. I will quickly create a PR to fix / update the documentation.
Environment
Not relevant
Reproducer
No response
Angular version
17.x.x
PrimeNG version
17.8.9
Build / Runtime
Angular CLI App
Language
ALL
Node version (for AoT issues node --version)
20.x.x
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Third icon has the primary color, which it will not have.
The text was updated successfully, but these errors were encountered: