p-password: attribute 'className' instead of 'class' used in content template #13003
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Hello. I've been working on customizing the p-password component in one of my projects. When I attempted to style out the p-password-info class, I haven't received any results. I thought that maybe there was a specificity issue, but nothing helped, even using !important temporarily. I've looked into the codebase, and found out the line I wanted to check:
<div className="p-password-info">{{ infoText }}</div>
As you can see, class name 'p-password-info' is applied to the attribute 'className', which, I believe, doesn't work and doesn't apply styles. I guess the solution would be to just replace it with:
<div class="p-password-info">{{ infoText }}</div>
Should I make a PR regarding this issue? I know it's small and it's not something super important, but it could be useful to have the ability to customize the text for someone.
Environment
Ubuntu 20.04
Reproducer
No response
Angular version
15.2.6
PrimeNG version
15.2.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.20.0
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: