![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.
@dontgoplastic/tab-nav
Advanced tools
An easy-to-use, zero-dependency, and accessible tab navigation component
Create a list with corresponding content targets:
<ul id="repo-nav">
<li data-tab-content-id="all">All</li>
<li data-tab-content-id="public">Public</li>
<li data-tab-content-id="private">Private</li>
</ul>
<section id="all"> ... </section>
<section id="public"> ... </section>
<section id="private"> ... </section>
Kick off a TabNav:
new TabNav('#repo-nav');
Instances can be configured with a few options:
new TabNav('#repo-nav', {
activeClass: 'active',
onChange: (tabElement, contentElement) => {
// ...
}
});
Name | Default Value | Description |
---|---|---|
activeClass | 'active' | Class applied to expanded tabs |
onChange | null | Callback for when expaned tabs change. Provides the tab and revealed content target elements as arguments |
Bring your own!
role
attribute values tablist
, tab
, and tabpanel
will be added to the list, list items, and content targets.tabindex="0"
added to the expanded tab and all content targets.activeClass
(or the first tab if not present) will be auto-expanded.display: none;
.aria-labelledby
and aria-controls
hook-up.FAQs
An accessible tab navigation component
The npm package @dontgoplastic/tab-nav receives a total of 2 weekly downloads. As such, @dontgoplastic/tab-nav popularity was classified as not popular.
We found that @dontgoplastic/tab-nav demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.