Notes can be used for simple informational messages, and for success, warning and error alerts. They are an enhancement of the default box layout.
Informative note heading
Group calendering is currently in beta-test. We encourage everyone to use it and report feedback and issues to its dedicated GitHub repository.
Success note heading
Main profile successfully updated.
Warning note heading
We could not detect your affiliation based on your email address. Please select your affiliation below or go back to use your corporate email address.
Error note heading
There has been an error.
Because the icons are background images, they may not display well in Windows High Contrast Mode. So make sure that the heading text clearly indicates the nature of the note: is it giving a warning? Has there been an error? Or is it confirming something?
ARIA live regions
Note the use of
role="alert". Both create an ARIA live region.
If the content of the note is advisory information not important enough to justify an alert, use
role="status". When added to an element, the browser will send out an accessible status event to assistive technologies, which can then notify the user about it.
For error messages, use
role="alert". The alert role should read out content that has changed, or bring the user's attention to it immediately, so it should not be used for static content or used regularly. Alerts, by definition, are disruptive. Lots of alerts at once or unnecessary alerts will create a bad user experience.