diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e564dec8f..d0eff4b60c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Fix `selectableFocusHoverColor` value in `List` for Teams theme @layershifter ([#1113](https://github.com/stardust-ui/react/pull/1113)) - Align `slotClassNames` property for all components @Bugaa92 ([#1093](https://github.com/stardust-ui/react/pull/1093)) - Fix `selectedBackgroundColor`/`selectableFocusHoverColor` value in `List` for Teams Dark and Teams HC themes @layershifter ([#1117](https://github.com/stardust-ui/react/pull/1117)) +- Add missing types to `role` in accessibility @layershifter ([#1125](https://github.com/stardust-ui/react/pull/1126)) ### Features - Add `attached` prop on the `ChatMessage` component, which is automatically set by the `ChatItem` component @mnajdova ([#1100](https://github.com/stardust-ui/react/pull/1100)) diff --git a/packages/react/src/lib/accessibility/types.ts b/packages/react/src/lib/accessibility/types.ts index 0648f63d64..26ef14a073 100644 --- a/packages/react/src/lib/accessibility/types.ts +++ b/packages/react/src/lib/accessibility/types.ts @@ -77,11 +77,14 @@ export type AriaLandmarkRole = | 'navigation' | 'search' +export type AriaLiveRegionRole = 'alert' | 'log' | 'marquee' | 'status' | 'timer' + export type AriaRole = | AriaWidgetRole | AriaCompositeRole | AriaDocumentStructureRole | AriaLandmarkRole + | AriaLiveRegionRole export interface AriaWidgetAttributes { role?: string