Jenkins 2.233 introduced changes to the button. Since then, button position and visibility seem to be "animated" and it causes buttons to linger when closing modals.
- Open a modal like the one to select repo credentials on a pipeline.
- Close the modal.
- Notice that the buttons linger for a bit before fading out.
Attached screenshots with the modal open and the lingering effect.