primefaces/primeng

ToggleSwitch Size property is not working

Open

#19469 opened on Mar 10, 2026

View on GitHub
 (0 comments) (0 reactions) (0 assignees)CSS (10,366 stars) (4,585 forks)batch import
Type: Buggood first issue

Description

Describe the bug

ToggleSwitch has only the size input but neither html nor css has references for the size attribute. please check this commit where the size was added :

https://github.com/primefaces/primeng/pull/11185/changes/ed8caba7e3f2320d627a31ebec9c2c86ed586734#diff-faf8b13c938d764bc98d92b4e5c2cc4544f86e7c66a0b77783c994cba88c3f83

https://github.com/primefaces/primeng/issues/11140

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/github-un7wh7sn?file=src%2Fapp%2Fapp.component.html

Environment

Windows 11

Angular version

20

PrimeNG version

v20

Node version

22

Browser(s)

No response

Steps to reproduce the behavior

add a toggleswitch with size property

Expected behavior

toggleswitch comes in different sizes depending on the size value

Contributor guide