UNPKG

@coconut-software/ui

Version:

React components for faster and easier web development.

24 lines (23 loc) 1.59 kB
export declare enum AriaLiveRole { /** * The alert role is used to communicate an important and usually time-sensitive message to the user. * Setting role="alert" is equivalent to setting aria-live="assertive" and aria-atomic="true". * It should only be used for information that requires the user's immediate attention, as it would interrupt the announcement of a user's current activity. * For more information see: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/alert_role */ Alert = "alert", /** * The status role defines a live region containing advisory information for the user that is not important enough to be an alert. * Setting role="status" is equivalent to setting aria-live="polite" and aria-atomic="true". * For more information see: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/status_role */ Status = "status", /** * The presentation role removes an element's implicit ARIA semantics from being exposed to the accessibility tree. * The content of the element will still be available to assistive technologies; it is only the semantics of the container, * and in some instance, required associated descendants, which will no longer expose their mappings to the accessibility API * The element with role="presentation" should not have an accessible name. * For more information see: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/presentation_role */ Presentation = "presentation" }