Skip to content

Version Packages#53

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

Version Packages#53
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@interline-io/catenary@0.7.0

Minor Changes

  • #52 e3c3dc5 Thanks @drewda! - Layered Escape dismissal and cat-modal fixes. Escape pressed while a popup (cat-dropdown menu, cat-datepicker calendar) is open inside a cat-modal closed both at once, destroying in-progress form state.

    • New shared LIFO dismiss stack (src/util/dismiss-stack.ts): a single document keydown listener dismisses only the topmost open layer per Escape press. cat-modal, cat-dropdown, and cat-datepicker register through it (via useDismissablePopup for the popups); cat-taginput continues to self-consume Escape on its input. A popup inside a modal now closes on the first Escape and the modal on the second. A non-closable modal still registers a layer, so it swallows Escape rather than letting it dismiss a surface beneath it.

    cat-modal also gains:

    • Open-state side effects (html clipping, focus capture, initial focus) now run when the modal is mounted with modelValue already true, not only when it transitions open.
    • The focus trap skips hidden focusable candidates (display:none etc.) so Tab no longer dead-ends on them.
    • An overflowing modal-card-body becomes a focusable named region (tabindex="0", role="region", labeled by the title) so keyboard users can scroll it; Safari does not make scroll containers focusable automatically. Overflow is tracked with a ResizeObserver while open.
    • An axe smoke test, matching sibling controls.
  • #54 3ad066c Thanks @drewda! - cat-dropdown and cat-datepicker render their popups (menu, calendar) in the browser top layer via the Popover API, so they are no longer clipped by an ancestor with overflow: auto/hidden. The most visible case: a dropdown or datepicker inside a scrollable cat-modal body had its menu/calendar cut off at the modal's edge. This brings the two widgets in line with cat-tooltip (top-layer since 0.3.0).

    • New src/util/anchored-popover.ts composable: shows the popup with showPopover() (popover="manual", so it does not light-dismiss outside the components' own handling), positions it with fixed viewport coordinates computed from the trigger's box, flips the vertical side when the preferred side lacks room, clamps to the viewport, and repositions on scroll (capture phase, so scrolling any ancestor works) and resize. The popup stays in place in the DOM, so scoped styles, aria-controls/aria-activedescendant, focus management, and click-outside containment (root.contains()) are unchanged.
    • Browsers without the Popover API (and jsdom) fall back to the existing absolute positioning; no behavior change there.
    • The positioning math is a pure exported function (computePopoverPosition) with unit tests.

Copilot AI review requested due to automatic review settings June 10, 2026 23:32
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 10, 2026

Copy link
Copy Markdown

Deploying catenary with  Cloudflare Pages  Cloudflare Pages

Latest commit: 643d8d4
Status: ✅  Deploy successful!
Preview URL: https://e5cddba4.catenary-5bw.pages.dev
Branch Preview URL: https://changeset-release-main.catenary-5bw.pages.dev

View logs

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@github-actions github-actions Bot force-pushed the changeset-release/main branch from 4ac6bfe to 643d8d4 Compare June 11, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant