Skip to content

Commit

Permalink
Prepare for 5.3.0-beta.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stefcameron committed Jan 28, 2022
1 parent 5759017 commit 796b780
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 5.3.0-beta.0

- Includes new Shadow DOM support for open shadows by default
- Includes a new `getShadowRoot()` configuration option, enabling support for closed shadows

## 5.2.1

### Patch Changes
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ Type: `full` | `non-zero-area` | `none` . Default: `full`.

Configures how to check if an element is displayed, see ["Display check"](#display-check) below.

##### getShadowRoot

Type: `(node: FocusableElement) => ShadowRoot | boolean | undefined`

Returns the node's `ShadowRoot` if available, or a `boolean` indicating if a `ShadowRoot` is attached but not available. `node` will be a descendent of the `rootNode` given to `tabbable()`.

If `true` is returned, Tabbable assumes a closed `ShadowRoot` is attached and will iterate the `node`'s children for additional tabbable/focusable candidates.

If a falsy value is returned, all children will be ignored as candidates.

### isTabbable

```js
Expand Down

0 comments on commit 796b780

Please sign in to comment.