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

Commit 42b0473

Browse files
authored
feat(attachmentBehavior): add "data-is-focusable" for attachment (#1445)
* feat(attachmentBehavior): add "data-is-focusable" for attachment behavior * update changelog * Update packages/react/src/lib/accessibility/Behaviors/Attachment/attachmentBehavior.ts Co-Authored-By: Oleksandr Fediashov <[email protected]> * small improvement * Update CHANGELOG.md
1 parent 33effdd commit 42b0473

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1717

1818
## [Unreleased]
1919

20+
### Features
21+
- Add 'data-is-focusable' attribute to `attachmentBehavior` @sophieH29 ([#1445](https://github.com/stardust-ui/react/pull/1445))
22+
2023
### BREAKING CHANGES
2124
- Rename `toolbarBehavior` to `menuAsToolbarBehavior` and `toolbarButtonBehavior` to `menuItemAsToolbarButtonBehavior` ([#1393](https://github.com/stardust-ui/react/pull/1393))
2225
- Rename types related to accessibility ([#1421](https://github.com/stardust-ui/react/pull/1421))

packages/react/src/lib/accessibility/Behaviors/Attachment/attachmentBehavior.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Accessibility } from '../../types'
22
import * as keyboardKey from 'keyboard-key'
3+
import { IS_FOCUSABLE_ATTRIBUTE } from '../../FocusZone/focusUtilities'
34

45
/**
56
* @specification
@@ -10,6 +11,7 @@ const attachmentBehavior: Accessibility = (props: any) => ({
1011
attributes: {
1112
root: {
1213
tabIndex: 0,
14+
[IS_FOCUSABLE_ATTRIBUTE]: true,
1315
},
1416
},
1517
keyActions: {

0 commit comments

Comments
 (0)