patternfly icon indicating copy to clipboard operation
patternfly copied to clipboard

Bug - NumberInput - isDisabled toggle animation out of sync

Open Venefilyn opened this issue 9 months ago • 6 comments

Describe the problem When toggling the isDisabled state of NumberInput the buttons and input change background color at different times.

Might be related to InputGroup in general, but only checked NumberInput.

How do you reproduce the problem? Toggle the isDisabled here and see how the https://codesandbox.io/p/sandbox/great-worker-dfw5fv

Expected behavior The disable animation are sync between buttons and input

Is this issue blocking you? N/A

Venefilyn avatar Mar 24 '25 15:03 Venefilyn

Gonna transfer this over to our Core repo as it looks to be a CSS related issue. TLDR is the Button components have transition properties being applied that includes its background-color, but the FormControl doesn't have any such properties. So the FormControl background is changing basically in an instant, but the Button's are transitioning to the new background color. Can notice it more in the following screen recording where I have the animations playing at 10% normal speed:

https://github.com/user-attachments/assets/af1a16be-cdf9-4021-8e9f-3babbee8ad29

vs a really quick fix applying the same transition properties on FormControl as are in Button (only on the background-color):

https://github.com/user-attachments/assets/410dfdb8-06c3-4ceb-89cb-1f96896b32f6

thatblindgeye avatar Mar 31 '25 13:03 thatblindgeye

cc @andrew-ronaldson @lboehling @kaylachumley spoke briefly with @mcoker about this, curious whether you have a strong opinion about whether the disabled styling should transition or be more of an immediate change in style.

thatblindgeye avatar Apr 03 '25 20:04 thatblindgeye

This issue has been automatically marked as stale because it has not had activity in the last 60 days.

github-actions[bot] avatar Jun 08 '25 11:06 github-actions[bot]

This issue has been automatically marked as stale because it has not had activity in the last 60 days.

github-actions[bot] avatar Aug 10 '25 11:08 github-actions[bot]

cc @andrew-ronaldson @lboehling @kaylachumley spoke briefly with @mcoker about this, curious whether you have a strong opinion about whether the disabled styling should transition or be more of an immediate change in style.

To me this seems like if we can't get it to work with transitions then disabling it would be better as the current style is very noticeable

Venefilyn avatar Aug 29 '25 18:08 Venefilyn

This issue has been automatically marked as stale because it has not had activity in the last 60 days.

github-actions[bot] avatar Nov 02 '25 11:11 github-actions[bot]