
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@atendesign/javascript-components
Advanced tools
A collection of JavaScript libraries that adhere ceremoniously with WCAG guidelines.
A collection of JavaScript libraries that adhere ceremoniously with WCAG guidelines. This package provides accessible, keyboard-navigable UI components with full ARIA support and responsive design capabilities.
Found a bug or have a feature request? Please open an issue on GitHub.
Philip Stier - Tech Lead, Senior Developer
npm install @atendesign/javascript-components
HTML
<div class="accordion">
<h3 class="accordion__heading">
<button id="accordion-trigger-01" class="accordion__trigger" aria-expanded="false" aria-controls="accordion-section-01>
Accordion Section
</button>
</h3>
<div id="accordion-section-01" class="accordion__content" role="region" aria-labelledby="accordion-trigger-01">
<p>This is the accordion content.</p>
</div>
</div>
JavaScript
import { Accordion } from '@atendesign/javascript-components';
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('.accordion').forEach(accordion => {
new Accordion(accordion, {options});
});
});
| Option | Type | Default | Description |
|---|---|---|---|
triggerSelector | string | '.accordion__trigger[aria-controls]' | CSS selector for accordion trigger buttons |
contentSelector | string | '.accordion__content' | CSS selector for accordion content panels |
expandedClass | string | 'is-expanded' | CSS class applied to expanded trigger buttons |
aria-expanded on trigger button (automatically managed by the component)aria-controls on trigger button (must match content panel's ID)id on content panel (must match trigger's aria-controls value)aria-labelledby on content panel (must match trigger button's ID)role="region" on content panelEnter or Space: Toggle accordion sectionHTML
<div class="tab-content">
<div role="tablist" class="tab-content__navigation"></div>
<div id="tab-content-01"
class="tab-content__group is-expanded"
role="tabpanel"
aria-labelledby="tab-tab-content-01">
<button type="button"
id="tab-tab-content-01"
class="tab-content__trigger is-expanded"
role="tab"
aria-haspopup="true"
aria-selected="true"
aria-expanded="true"
aria-controls="tab-content-01">
Tab 01
</button>
<div class="tab-content__content">
<p>Text content goes here - Tab 01</p>
</div>
</div>
</div>
JavaScript
import { TabContent } from '@atendesign/javascript-components';
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('.tab-content').forEach(tabContent => {
new TabContent(tabContent);
});
});
| Option | Type | Default | Description |
|---|---|---|---|
navigationSelector | string | '.tab-content__navigation' | CSS selector for desktop navigation |
groupSelector | string | '.tab-content__group' | CSS selector for tab groups |
triggerSelector | string | '.tab-content__trigger' | CSS selector for tab buttons |
expandedClass | string | is-expanded | CSS selector for showing expanded groups |
breakpoint | integer | 768 | Media breakpoint at which tabs switch to accordions |
role="tablist" on tab containerrole="tab" on each tab buttonrole="tabpanel" on each content panelaria-selected on tab buttons (automatically managed by the component)aria-controls on tab buttons (must match panel's ID)id on content panels (must match tab's aria-controls value)aria-labelledby on content panels (must match tab button's ID)tabindex on tab buttons (automatically managed by the component)Arrow Left/Right: Navigate between tabsHome: Move to first tabEnd: Move to last tabEnter or Space: Activate focused tabFAQs
A collection of JavaScript libraries that adhere ceremoniously with WCAG guidelines.
The npm package @atendesign/javascript-components receives a total of 38 weekly downloads. As such, @atendesign/javascript-components popularity was classified as not popular.
We found that @atendesign/javascript-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.