The notifications banner that displayed on top of the screen will disappears automatically in time delay.
But I have seen many notification banners with auto close and close(x) button. Is the close(x) button is necessary?
User Experience Stack Exchange is a question and answer site for user experience researchers and experts. It only takes a minute to sign up.Sign up to join this community
This question already has been asked earlier and this should clear your doubt. It shares two perspectives where it can be useful and sometimes totally unnecessary defeating the purpose of the alert.
However, I personally feel that the close button would be necessary in cases where the alert is obscuring a CTA on your app / website. For example, say this comes over the header - now due to this the other actions on the header are not clickable. To get back to the header the user would like to close this. In such cases the close button is necessary.
Success messages should automatically fade out and disappear, because success is what the user will expect so we should not force them to manually dismiss it.
The others message types will be of interest to the user, because they will not be expecting them. Ideally the user will correct whatever is wrong before continuing in the solution.
The user can dismiss these messages manually if they want to get rid of them, but use natural interaction points in the system to automatically close messages which are no longer appropriate, e.g. primary commit buttons, navigation to other pages, etc.