Skip to content

[PrimeIcons] How to change thickness of PrimeIcon in p-checkbox #101

Discussion options

You must be logged in to vote

Hi,

Unfortunately there isn't an input property to customize stroke width of SVG icons in PrimeNG. However you can achieve it by using custom CSS as shown in the example: https://stackblitz.com/edit/a17srh?file=src%2Fapp%2Fdemo%2Fcheckbox-basic-demo.scss,src%2Fapp%2Fdemo%2Fcheckbox-basic-demo.ts

The reason why stroke-width didn't work is, you have to assign a color first. Hope it helps.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@GiangNguyenDev
Comment options

@cetincakiroglu
Comment options

Answer selected by cetincakiroglu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants