![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@pnx-mixtape/accordion
Advanced tools
Documentation and examples: Accordion
npm install @pnx-mixtape/accordion --save-dev
CSS
@import '@pnx-mixtape/accordion';
@import url('dist/accordion.css');
<link href="dist/accordion.css" rel="stylesheet" type="text/css">
Web Components
Web Components are self defined, simply import the desired feature. These do not use the Shadow DOM. External CSS applies.
import '@pnx-mixtape/accordion/DetailsBase';
and be sure to include <mx-details>
around the <details />
tag.import '@pnx-mixtape/accordion/DetailsBase';
and be sure to include <mx-detailsmobile>
around the <details />
tag.import '@pnx-mixtape/accordion/DetailsBase';
and be sure to include <mx-detailsdiv class="accordion">
instead of the <details />
tag.<mx-details>
<details class="accordion">
<summary class="accordion__toggle">Title</summary>
<div class="accordion__content">
<p>Body content</p>
</div>
</details>
</mx-details>
See twig files for all HTML examples.
Vanilla JS (to be deprecated)
Javascript is used to handle opening and closing the accordion when the user prints the screen. This sets the open attribute onbeforeprint
and closes it onafterprint
window events. The content's ID is also set via js.
import { Accordion, AccordionDiv } from '@pnx-mixtape/accordion';
import AccordionDiv from '@pnx-mixtape/accordion/accordion-div';
<script src="dist/accordion.js" type="text/javascript"></script>
<details class="accordion" data-accordion>
<summary class="accordion__toggle">Title</summary>
<div class="accordion__content">
<p>Body content</p>
</div>
</details>
FAQs
accordion component
We found that @pnx-mixtape/accordion demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.