When a modal appears, the focus is automatically set to the close (x) button. If there is a primary action button for the modal, it may be desirable to set the focus to that button instead.
This would be a change in interaction design and also has a11y considerations.
This came up as a question in the Kogito application, but is a very common interaction pattern.