# details-dialog-element **Repository Path**: mirrors_github/details-dialog-element ## Basic Information - **Project Name**: details-dialog-element - **Description**: A modal dialog that's opened with
. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-02-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # <details-dialog> element A modal dialog opened with a <details> button. ## DEPRECATION WARNING This web component has been deprecated. There are a number of accessibility concerns with this approach and so we no longer recommend using this component. ### Accessibility and Usability Concerns * Semantically, using a details-summary pattern for a dialog solution can be confusing for screen reader users. * If the user performs a "find in page" operation on a website using details-dialog elements, the content on those elements will appear when they shouldn't. * Opening the dialog does not disable scrolling on the underlying page. GitHub are moving towards using [a dialog Primer View Component](https://primer.style/view-components/components/alpha/dialog) which enforces certain aspects of the design (such as always having a close button and a title). ## Installation Available on [npm](https://www.npmjs.com/) as [**@github/details-dialog-element**](https://www.npmjs.com/package/@github/details-dialog-element). ``` $ npm install --save @github/details-dialog-element ``` ## Usage ### Script Import as ES modules: ```js import '@github/details-dialog-element' ``` Include with a script tag: ```html