p-inputNumber uses wrong border radius in p-inputGroup #9949
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ...
Plunkr Case (Bug Reports)
https://stackblitz.com/edit/github-7kzp4u?file=src/app/app.component.html
Current behavior
When a p-inputNumber component is used inside an input group (like demoed here), then the p-inputNumber will use a non-zero border radius on all corners. If the p-inputNumber is adjacent to another input, it feels disconnected. This is inconsistent with the behavior of input text elements.
Expected behavior
When using a p-inputNumber is inside of an inputGroup, it should use the same rules for rounded and square corners as text inputs. If there is an input adjacent to the p-inputNumber, then then adjacent edges should use square corners making the elements feel connected.
Minimal reproduction of the problem with instructions
I've provided a small example here where a p-inputNumber is placed in an inputGroup with two buttons.
https://stackblitz.com/edit/github-7kzp4u?file=src/app/app.component.html
What is the motivation / use case for changing the behavior?
To create a more consistent experience for the user across all input types.
Please tell us about your environment:
Initial Investigation
It seems like this is caused by the difference in html structure between p-inputNumber and input text. The native input element backing p-inputNumber misses out on the selector that sets both corners to square and matches both selectors that round the left and right side. These three seem to handle the border radius for inputs but don't quite work for p-inputNumber.
The text was updated successfully, but these errors were encountered: