
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
makeup-listbox-button
Advanced tools
A JavaScript class that represents an ARIA listbox button. No CSS provided.
The following markup structure and classnames are required. Any SVG icons can be used.
<span class="listbox-button">
<button class="expand-btn" style="min-width: 150px" aria-expanded="false" aria-haspopup="listbox">
<span class="expand-btn__cell">
<span class="expand-btn__text">Option 1</span>
<svg class="icon icon--dropdown" focusable="false" height="8" width="8" aria-hidden="true">
<use href="icon.svg#icon-dropdown"></use>
</svg>
</span>
</button>
<div class="listbox-button__listbox">
<div class="listbox-button__options" role="listbox" tabindex="0">
<div class="listbox-button__option" role="option">
<span class="listbox-button__value">Option 1</span>
<svg class="icon icon--tick-small" focusable="false" height="8" width="8">
<use href="icon.svg#icon-tick-small"></use>
</svg>
</div>
<div class="listbox-button__option" role="option">
<span class="listbox-button__value">Option 2</span>
<svg class="icon icon--tick-small" focusable="false" height="8" width="8">
<use href="icon.svg#icon-tick-small"></use>
</svg>
</div>
<div class="listbox-button__option" role="option">
<span class="listbox-button__value">Option 3</span>
<svg class="icon icon--tick-small" focusable="false" height="8" width="8">
<use href="icon.svg#icon-tick-small"></use>
</svg>
</div>
</div>
</div>
</span>
No CSS is provided. However, the class is fully compatible with eBay Skin.
import ListboxButton from "makeup-listbox-button";
document.querySelectorAll(".listbox-button").forEach(function (el, i) {
const widget = new ListboxButton(el, config);
el.addEventListener("makeup-listbox-button-change", function (e) {
console.log(e.type, e.detail);
});
});
The constructor takes a configuration object as its second parameter.
todo
Fired when the listbox selection is changed.
fromValue: the old valuetoValue: the new valueFAQs
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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.