Open Sumeet-2023 opened 3 weeks ago
I think there might be a different way to approach this. The Hover style should definitely not be applied if you are not hovering as that is a mouse only style. The "active" style could be applied.
Also all theme changes should be submitted here: https://github.com/primefaces/primereact-sass-theme and not made directly in the CSS files.
Sorry if i couldn't describe my issue properly.
I mentioned :hover
because mouse was used to ':focus' on button. Once button gets focused one should remove hover effect so that :active
state can be easily distinguished and later user pressing on Enter Key can see CSS is not been applied.
I meant to say if user clicks on increment or decrement using Enter key then :active
CSS should take place but it doesn't happens cause Enter Key is treated as click event which is not same as Spacebar(Considered as press-and-hold behavior).
Describe the bug
While Pressing on increment or decrement button in InputNumber using Keys like Enter should also take CSS just like Spacebar. CSS should look uniform if user uses Spacebar/Enter Key on Keyboard based navigation.
Reproducer
https://stackblitz.com/edit/vitejs-vite-pcimsn?file=src%2FApp.tsx
System Information
Steps to reproduce the behavior
Expected behavior
Same CSS styles should take place on using both Keys.