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

Commit

Permalink
fix(accessibility): add missing types to role (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored Mar 29, 2019
1 parent b45c5de commit ab73163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit ab73163

Please sign in to comment.