You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-accessible-accordion

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-accessible-accordion - npm Package Versions

234

5.0.1

Diff
s
springloaders
published 5.0.1 •
h
holloway
published 5.0.0 •

Changelog

Source

[v5.0.0]

React Accessible Accordion now supports React 18 with its out-of-order streaming feature.

The new out-of-order streaming feature required using React 18's useId hook. This affects the DOM ids that RAA generates, changing from accordion__heading-raa-0 (React 16 and 17) to accordion__heading-:r0: (React 18). Although this change shouldn't affect most users, if you have any code that selects ids with DOM APIs such as document.querySelector() then the : characters will need escaping with \\ eg. document.querySelector('#accordion__heading-\\:r0\\:').

When using older versions of React 16 or 17 the same DOM ids will be generated.

Because of this change in behaviour this is a major version upgrade.

s
synecdokey
published 4.0.0 •

Changelog

Source

[v4.0.0]

Making role="region" optional on panels.

The new behaviour has no role="region" by default, and developers can opt-in using the region prop as <AccordionItemPanel region>.

The previous behaviour had every panel as a role="region" which created an excessive amount of regions for the screen reader.

Because of this change in behaviour this is a major version upgrade.

h
holloway
published 3.3.5 •
h
holloway
published 3.3.4 •
h
holloway
published 3.3.3 •
h
holloway
published 3.3.2 •
h
holloway
published 3.3.1 •
s
synecdokey
published 3.3.0 •

Changelog

Source

[v3.3.0]

Changed

  • Bundle size reduction
s
synecdokey
published 3.2.0 •

Changelog

Source

[v3.2.0]

Added

  • Use console.error when provided with invalid HTML5 ids