Skip to content

chore(release): version packages - #43

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

chore(release): version packages#43
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

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

@dunky.dev/react-dialog@0.3.0

Minor Changes

  • #40 148ee66 Thanks @ivanbanov! - Dialog.Content now renders a <div> carrying the dialog (or alertdialog) role instead of the native <dialog> element. Consumers styling dialog { ... } should target the part directly (or its role), and a forwarded ref is now an HTMLDivElement; ...props accept ComponentProps<'div'>.

    The dialog window is the initial focus target — focusable in script, out of the tab order — which needs tabindex="-1", and HTML states that the tabindex attribute must not be specified on dialog elements. The native element would only pay off through showModal(), and this contract deliberately keeps modality, dismissal, and focus in the core machine rather than splitting authority with the browser's built-in behavior — so the element brought nothing but a conformance violation. Nothing about the exposed semantics changes: the same role, aria-modal, name, description, and focus behavior as before. UA <dialog> resets (position: static, border: none) are no longer needed in consumer styles.

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.

0 participants