From ab7316384f528d5cac3745f2e5416d2d1b907433 Mon Sep 17 00:00:00 2001 From: Oleksandr Fediashov Date: Fri, 29 Mar 2019 11:15:06 +0200 Subject: [PATCH] fix(accessibility): add missing types to `role` (#1126) --- CHANGELOG.md | 1 + packages/react/src/lib/accessibility/types.ts | 3 +++ 2 files changed, 4 insertions(+) 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