I haven't seen how your warning looks, but if we give it an opaque background and a correct z-index value, hiding the 'expand' button won't be needed.