Badge: Whitespaces are added before & after string #11627
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Even in the official examples in PrimeNG documentation (eg. the following screenshot)
there are 2 whitespaces before & after badge's string. In this example, before & after '3' element.
Actual:
<span class="p-badge p-component p-badge-no-gutter p-badge-danger"> 3 </span>
Expected:
<span class="p-badge p-component p-badge-no-gutter p-badge-danger">3</span>
There should not be any whitespaces there, just the plain string.
Environment
any environment
Reproducer
No response
Angular version
13.0.0
PrimeNG version
13.4.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.14.1
Browser(s)
Chrome 102.0.5005.115
Steps to reproduce the behavior
Number
badge element.eg.
<span class="p-badge p-component p-badge-no-gutter p-badge-danger"> 3 </span>
Expected behavior
There should not be any whitespaces there, just the plain string.
eg.
<span class="p-badge p-component p-badge-no-gutter p-badge-danger">3</span>
The text was updated successfully, but these errors were encountered: