diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a9bec9479..2347562d09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Fixes - Handle `onClick` and `onFocus` on ListItems correctly @layershifter ([#779](https://github.com/stardust-ui/react/pull/779)) +- Remove popup trigger button default role @jurokapsiar ([#806](https://github.com/stardust-ui/react/pull/806)) ## [v0.19.1](https://github.com/stardust-ui/react/tree/v0.19.1) (2019-01-29) diff --git a/src/lib/accessibility/Behaviors/Popup/popupBehavior.ts b/src/lib/accessibility/Behaviors/Popup/popupBehavior.ts index 930158ab2f..045a903ba1 100644 --- a/src/lib/accessibility/Behaviors/Popup/popupBehavior.ts +++ b/src/lib/accessibility/Behaviors/Popup/popupBehavior.ts @@ -4,7 +4,6 @@ import * as _ from 'lodash' /** * @description - * Adds role='button' to 'trigger' component's part, if it is not focusable element and no role attribute provided. * Adds tabIndex='0' to 'trigger' component's part, if it is not tabbable element and no tabIndex attribute provided. * * @specification @@ -14,7 +13,6 @@ const popupBehavior: Accessibility = (props: any) => { return { attributes: { trigger: { - role: getAriaAttributeFromProps('role', props, 'button'), tabIndex: getAriaAttributeFromProps('tabIndex', props, '0'), 'aria-disabled': !_.isNil(props['aria-disabled']) ? props['aria-disabled']