Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

fix(accessibility): add missing types to role #1126

Merged
merged 2 commits into from
Mar 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/lib/accessibility/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down