Releases: focus-trap/tabbable
Releases · focus-trap/tabbable
v5.2.1
Patch Changes
- 1d5fcb5: Fixed: Form elements in disabled fieldsets should not be tabbable/focusable (#413)
v5.2.0
Minor Changes
- bf0a8f0: Exposed an option to select the way that an element is checked as displayed
v5.1.6
Patch Changes
- f9f6d25: Replaces Karma/Mocha/Sinon/Chai in test suite with Jest/Dom Testing Library. Removes README reference to identifying anchor tags with an
xlink:href
attribute as tabbable since that information is incorrect.
v5.1.5
Patch Changes
- c048203: fix crash when radio button name attributes contain CSS selector special characters (#168)
v5.1.4
Patch Changes
- a188c71: use element.matches fallback for IE11 and Webkit5
- 0d4cdf8: Update the code to use const/let and function declarations only for the repo; this does NOT affect browser compatibility as the code is still transpiled when published into the
./dist
directory for various targets.
v5.1.3
Patch Changes
- 5579825: fixes to details elements
- ignore elements nested under a closed details element
- ignore any extra summary elements after the first summary element
- add details element as tabbable in case it has no direct summary element
v5.1.2
Patch Changes
- d3c6514: Fix UMD build incorrectly using
focusTrap
as output name.
- 95563c2: Fix #99: Transpile ESM bundle down to the same browser target used for the CJS and UMD bundles. ESM is just the module system, not the browser target.
v5.1.1
Patch Changes
- fb49d23: Fix #96: Transpile non-minified bundles for expected browser targets.
v5.1.0
Minor Changes
- bd21d91: Add
focusable()
for getting all focusable nodes.
Patch Changes
- 3665d0b: The TypeScript return type of
tabbable
has been fixed: Was Array<Element>
(an Element
is technically not focusable), is now Array<HTMLElement | SVGElement>
(which are both still/also Element
instances).
- 8a25135: Fixed: Tabbable elements in fixed-position (
position: fixed
) containers should now be consistently found in supported browsers.
- 9544de2: Replace
prepublishOnly
script with prepare
script. This has the added benefit of running automatically when installing the package from GitHub (as supported by NPM) where the published ./dist
directory is not automatically included.
- 672f4a2: Add
focusable()
type definition.
- 2424c0f: Small improvements for improving tree-shakeability of this package. A missing
#__PURE__
annotation has been added to allow dropping one of the top-level calls (if its result stays unused) and removed minification of the file referenced as package.json#module
to avoid dropping the comments (including existing #__PURE__
annotations).