Skip to content

Commit 1715af1

Browse files
release: 0.5.0 (#369)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
1 parent 9e46c51 commit 1715af1

File tree

4 files changed

+41
-41
lines changed

4 files changed

+41
-41
lines changed

.changeset/witty-cycles-pay.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

.changeset/young-kangaroos-clap.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# dom-accessibility-api changelog
22

3+
## 0.5.0
4+
5+
### Minor Changes
6+
7+
- [`9e46c51`](https://github.com/eps1lon/dom-accessibility-api/commit/9e46c51b51993c65237efd4b0d046f1a35c3e76a) [#380](https://github.com/eps1lon/dom-accessibility-api/pull/380) Thanks [@eps1lon](https://github.com/eps1lon)! - **BREAKING CHANGE**
8+
9+
Ignore `::before` and `::after` by default.
10+
11+
This was necessary to prevent excessive warnings in `jsdom@^16.4.0`.
12+
If you use this package in a browser that supports the second argument of `window.getComputedStyle` you can set the `computedStyleSupportsPseudoElements` option to true:
13+
14+
```ts
15+
computeAccessibleName(element, {
16+
computedStyleSupportsPseudoElements: true
17+
});
18+
19+
computeAccessibleDescription(element, {
20+
computedStyleSupportsPseudoElements: true
21+
});
22+
```
23+
24+
If you pass a custom implementation of `getComputedStyle` then this option defaults to `true`.
25+
The following two calls are equivalent:
26+
27+
```ts
28+
computeAccessibleName(element, {
29+
computedStyleSupportsPseudoElements: true
30+
});
31+
32+
computeAccessibleName(element, {
33+
getComputedStyle: (element, pseudoElement) => {
34+
// custom implementation
35+
}
36+
});
37+
```
38+
39+
### Patch Changes
40+
41+
- [`5db24b1`](https://github.com/eps1lon/dom-accessibility-api/commit/5db24b1fa0c75a5914526de1c58da54db294f405) [#368](https://github.com/eps1lon/dom-accessibility-api/pull/368) Thanks [@eps1lon](https://github.com/eps1lon)! - Use `localName` to determine elements instead of `tagName`.
42+
343
## 0.4.7
444

545
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dom-accessibility-api",
3-
"version": "0.4.7",
3+
"version": "0.5.0",
44
"main": "dist/index.js",
55
"module": "dist/index.mjs",
66
"type": "commonjs",

0 commit comments

Comments
 (0)