Skip to content

Releases: eps1lon/dom-accessibility-api

0.5.1

20 Aug 16:01
49e2f7f
Compare
Choose a tag to compare

Patch Changes

  • fcc66ae #394 Thanks @marcosvega91! - Ignore title attribute if it is empty.

    Previously <button title="">Hello, Dave!</button> would wrongly compute an empty name.

0.5.0

10 Aug 21:49
1715af1
Compare
Choose a tag to compare

Minor Changes

  • 9e46c51 #380 Thanks @eps1lon! - BREAKING CHANGE

    Ignore ::before and ::after by default.

    This was necessary to prevent excessive warnings in jsdom@^16.4.0.
    If you use this package in a browser that supports the second argument of window.getComputedStyle you can set the computedStyleSupportsPseudoElements option to true:

    computeAccessibleName(element, {
    	computedStyleSupportsPseudoElements: true
    });
    
    computeAccessibleDescription(element, {
    	computedStyleSupportsPseudoElements: true
    });

    If you pass a custom implementation of getComputedStyle then this option defaults to true.
    The following two calls are equivalent:

    computeAccessibleName(element, {
    	computedStyleSupportsPseudoElements: true
    });
    
    computeAccessibleName(element, {
    	getComputedStyle: (element, pseudoElement) => {
    		// custom implementation
    	}
    });

Patch Changes

0.4.7

30 Jul 06:44
c3a99fb
Compare
Choose a tag to compare

Patch Changes

  • d6c4455 #352 Thanks @eps1lon! - Support native labels in IE 11

    Also affects Edge < 18 and Firefox < 56.

0.4.6

13 Jul 21:29
03c05ac
Compare
Choose a tag to compare

Patch Changes

  • f7c1981 #288 Thanks @eps1lon! - Drop node 13 support

    We only stopped testing. Probability of breakage should be very low.

    New policy:

    Only active node versions are supported.
    Inactive node versions can stop working in a SemVer MINOR release.

  • fa53c51 #210 Thanks @eps1lon! - Implement accessbile description computation

    import { computeAccessibleDescription } from "dom-accessibility-api";
    
    const description = computeAccessibleDescription(element);

    Warning: It always considers title attributes if the description is empty.
    Even if the title attribute was already used for the accessible name.
    This is fails a web-platform-test.
    The other failing test is due to aria-label being ignored for the description which is correct by spec.
    It's likely an issue with wpt.
    The other tests are passing (13/15).

0.4.5

05 Jun 15:43
909e34d
Compare
Choose a tag to compare

Patch Changes

  • d668f72 #273 Thanks @eps1lon! - fix: Concatenate text nodes without space

    Fixes <h1>Hello {name}!</h1> in react computing "Hello name !" instead of Hello name!.

0.4.4

18 May 10:10
d53ee79
Compare
Choose a tag to compare

0.4.4

Patch Changes

  • 969da7d #240 Thanks @eps1lon! - Reduce over-transpilation

    Switched from

    • for-of to .forEach or a basic for loop
    • array.push(...otherArray) to push.apply(array, otherArray)

    This removed a bunch of babel junk that wasn't needed.

0.4.3

24 Mar 14:46
Compare
Choose a tag to compare

0.4.3

Patch Changes

  • b421d9e #168 Thanks @eps1lon! - fix: Use relative paths in exports field

    Fixes a crash when using ES modules in Node.

0.4.2

21 Mar 20:37
Compare
Choose a tag to compare

0.4.2

Minor Changes

  • 0897630 #155 - Publish version using ES6 modules allongside current CommonJS modules

0.4.1

15 Mar 15:22
477074c
Compare
Choose a tag to compare

Minor Changes

Patch Changes

0.4.0

15 Mar 15:22
477074c
Compare
Choose a tag to compare

Incomplete release. Please use 0.4.1 instead.