From e18cd9c41d67a151484096b948a33f7fbaeeae10 Mon Sep 17 00:00:00 2001 From: Oleksandr Fediashov Date: Thu, 28 Mar 2019 17:47:24 +0200 Subject: [PATCH] fix(accessibility): add missing types to `role` --- 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 4773a7574b..564321d4b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Fix `timestamp` to be shown if the `reactionGroup` prop is applied on the `ChatMessage` component in Teams theme @mnajdova ([#1100](https://github.com/stardust-ui/react/pull/1100)) - Fix typings for `FlexProps` and `FlexItemProps` @miroslavstastny ([#1089](https://github.com/stardust-ui/react/pull/1089)) - Fix `selectableFocusHoverColor` value in `List` for Teams theme @layershifter ([#1113](https://github.com/stardust-ui/react/pull/1113)) +- 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