Releases: tobyzerner/inclusive-elements
Releases · tobyzerner/inclusive-elements
0.1.0
Fixed
- Menu: Ensure that Arrow keys only navigate to items that are focusable.
- Modal: Fix focus not being placed correctly when modal is open on creation.
Release 0.1.0-beta.9
Added
- New element: Toolbar.
- Support for tree-shaking so unused elements won't be included in the bundle.
- Use
prefers-reduced-motion
media queries for transition CSS examples. - Alerts: New
clear
method to dismiss all alerts. - Popup: Additional discussion and demonstration of use-cases.
- Tooltip: Support for hovering over tooltip contents (opt-out with
pointer-events: none
).
Changed
- External dependencies are no longer included in the bundle, meaning a bundler is required for use.
- Modal: Use focus-trap instead of
inert
so that modals do not have to be placed as a direct child of the<body>
. - Popup, Tooltip: Use Floating UI instead of Placement.js for element positioning.
Fixed
- Set various ARIA attributes less aggressively – only if they haven't already been set.
- Alerts: Export the
AlertOptions
type definition. - Menu: Attach event listeners to menu element rather than document.
- Popup: Only add
aria-haspopup="true"
if the content has themenu
role. - Popup: Close the popup if the user tabs away from it.
- Tooltip: Hide the tooltip when the page is scrolled.
Release 0.1.0-beta.8
Release 0.1.0-beta.7
Fixed
- Tooltip: Only remove event listeners on disconnection if parent still exists.
Release 0.1.0-beta.6
Changed
- Alerts: Increase default alert duration to 10 seconds.
Fixed
- Tooltip: Fix behavior on touch devices.
- Update Placement.js to fix incorrect positions when horizontally scrolled.
Release 0.1.0-beta.5
Changed
- Update
hello-goodbye
dependency.
Release 0.1.0-beta.4
Changed
- Popup: Don't close when a
menuitemcheckbox
is clicked. - Popup: Only return focus to button when Escape key is used to close popup.
Fixed
- Tooltip: Hide tooltip on click, or if parent becomes disabled.
- Implemented disconnect callbacks to properly clean up element side effects.
Removed
- Popup: Don't set z-index - leave this to the userspace.
0.1.0-beta.3
Fixed
- Recompile dist file.
0.1.0-beta.2
Fixed
- Update
hello-goodbye
version. - Mark package as side-effect free.
0.1.0-beta.1
Initial version