(This occurs for me on Google Chrome Version 92.0.4515.131 (Official Build) (64-bit) but e.g. NOT on firefox - I did not check other browsers yet)
Result:
I can not figure out what I am doing wrong here - this doesnt occur anymore when replacing the p-checkbox with an input type="checkbox". Setting all properties of the p-checkbox also doesnt change this behaviour.
Honestly I haven't figured out the reason for it but you can add position: relative
to your container class.
.content-container {
position: relative;
}
I added it to the app.component.css
file and placed this line
styleUrls: ['./app.component.css']
below the templateUrl
in your app.component.ts
file.