When clicking on a button that opens a modal, a tooltip a level above the button might still have the :active status and will appear above the modal.
This MR reduces the z-index of tooltips unless they are in a modal to make sure they keep appearing under the modal.