Release 2.0.1#64
Merged
Merged
Conversation
Release 2.0.0
Release 2.0.0
Cleans up the changelog by removing dates from the Added, Changed, and Fixed subheadings, as this information is already provided in the main version headers.
docs: remove redundant dates from changelog subheaders
chore: add homepage URL to package.json
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.26.9 to 7.29.6. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.29.6/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-version: 7.29.6 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
Introduces `onBlur` and `onEscPressed` callback options for the Toggle component, enabling custom logic when the toggle loses focus or the Escape key is pressed. This provides enhanced control and accessibility, and also refactors the existing `onClick` callback handling for consistency.
…7.29.6 chore(deps-dev): bump @babel/core from 7.26.9 to 7.29.6
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.2 to 7.3.5. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v7.3.5/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v7.3.5/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 7.3.5 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
chore(deps-dev): bump vite from 7.3.2 to 7.3.5
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.3 to 8.5.10. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](postcss/postcss@8.5.3...8.5.10) --- updated-dependencies: - dependency-name: postcss dependency-version: 8.5.10 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
When the 'closeOnEscPress' option was enabled, the Toggle component would use 'el.click()' to close itself via the Escape key. This had the unintended side effect of triggering the 'onClick' callback, which is intended for explicit user clicks, not programmatic closing via keyboard. This commit replaces 'el.click()' with 'this.close()' in the 'onKeyDown' handler, ensuring that the 'onClick' callback is only fired for actual click events. The tests and example have been updated to confirm this separation of concerns and verify the click counter does not increment on Escape key press.
chore(deps-dev): bump postcss from 8.5.3 to 8.5.10
Introduces new "GitHub" and "Documentation" buttons to all example pages and the main index. The "GitHub" button in the sidebar navigates to the main project repository. The "Documentation" button in the main content area of each example links directly to the respective component's `README.md` file. This change enhances discoverability of the project's source code and detailed component documentation, making it easier for users to explore and understand the implementation.
…lector Applies consistent default and interactive styles to the sidebar GitHub button for improved visual feedback. Ensures SVG icons within buttons are correctly aligned. Refines the `aria-hidden` selector to be more specific to toggle components, preventing unintended hiding of other elements.
feat: add blur and escape key callbacks to Toggle component
Activates the `Link` component on all `a.github-button` elements across the main index and example pages. This ensures external link indicators and accessibility enhancements are applied. Includes internal fixes and refinements to the `Link` class's `init` method: - The component now correctly processes its root element if it matches `a[target="_blank"]`. - The icon rendering loop logic is improved to ensure all applicable links are processed correctly.
Feature/doc url demo site
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Low Risk
Patch release with targeted component fixes and mostly demo/docs/tooling changes; no broad API breaks indicated in the diff.
Overview
Release 2.0.1 bumps
@beapi/be-a11yfrom 2.0.0 and documents the patch inCHANGELOG.md(older changelog subsection titles no longer repeat release dates).Library behavior (per changelog): Toggle gains optional
onBlurandonEscPressedcallbacks, fixes an extraonClickwhen dismissing with Escape, and the toggle example README documents the new options. Link can be initialized on atarget="_blank"anchor directly and processes all matching links whenhasIconis false (no early exit after the first). The toggle demo scopes[aria-hidden="true"]hiding to#toggle-*ids so other hidden content is not affected.Demo site: favicon on the home page and every example; sidebar GitHub link and per-page documentation links (via
Link.init('a.github-button')); the toggle “with event” tab demonstrates click, blur, and Escape callbacks instead of an alert-only click handler.Packaging:
homepageadded topackage.json, pnpmoverrides/peerDependencyRulesmoved out ofpackage.jsonintopnpm-workspace.yaml, and dev deps (postcss, etc.) bumped.Reviewed by Cursor Bugbot for commit 2af0278. Bugbot is set up for automated code reviews on this repo. Configure here.