I am trying to use Number input component [1] and works nicely in general.
The only issue I am having is that I don’t want users to change it manually, only by using those ± buttons.
For this reason I am not providing onChange
property and the input part of this component has readonly
attribute.
The first issue is that when I hover over this input, the cursor is text
while I think it should be default
:
.pf-c-form-control[readonly] {
cursor: default;
}
The other issue is that it is focusable and then looks a bit weird: <I can post only one picture /ME shakes fist> I’ll post it in comments.
I am not sure if the focus can be removed when it is readonly
or not. Or if the rectangle can be made a bit less intrusive - for example not making the input to grow on focus in firefox and the value not moving up.