Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Badge: Whitespaces are added before & after string #11627

Closed
konarx opened this issue Jun 15, 2022 · 1 comment
Closed

Badge: Whitespaces are added before & after string #11627

konarx opened this issue Jun 15, 2022 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@konarx
Copy link

konarx commented Jun 15, 2022

Describe the bug

Even in the official examples in PrimeNG documentation (eg. the following screenshot)
image

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

  1. Go to https://www.primefaces.org/primeng/badge
  2. Right-click & Inspect any Number badge element.
  3. There are 2 whitespaces before & after badge's string.
    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>

@konarx
Copy link
Author

konarx commented Jun 23, 2022

Can someone please confirm this defect? The badges are really untestable at this moment

@mertsincan mertsincan self-assigned this Jun 30, 2022
@mertsincan mertsincan added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jun 30, 2022
@mertsincan mertsincan added this to the 14.0.0 milestone Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants