Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
makeup-listbox
Advanced tools
A JavaScript class that represents an ARIA listbox. No CSS provided.
The listbox class is consumed by the following modules: listbox-button, combobox.
The following markup structure and classnames are required. Any SVG icons can be used.
<div class="listbox" data-auto-select="true">
<div class="listbox__options" role="listbox" tabindex="0">
<div class="listbox__option" role="option" aria-selected="false">
<span class="listbox__value">Option 1</span>
<svg class="icon icon--tick-small" focusable="false" height="8" width="8">
<svg class="icon icon--tick-small" focusable="false" height="8" width="8">
<use xlink:href="icon.svg#icon-tick-small"></use>
</svg>
</svg>
</div>
<div class="listbox__option" role="option" aria-selected="false">
<span class="listbox__value">Option 2</span>
<svg class="icon icon--tick-small" focusable="false" height="8" width="8">
<svg class="icon icon--tick-small" focusable="false" height="8" width="8">
<use xlink:href="icon.svg#icon-tick-small"></use>
</svg>
</svg>
</div>
<div class="listbox__option" role="option" aria-selected="false">
<span class="listbox__value">Option 3</span>
<svg class="icon icon--tick-small" focusable="false" height="8" width="8">
<svg class="icon icon--tick-small" focusable="false" height="8" width="8">
<use xlink:href="icon.svg#icon-tick-small"></use>
</svg>
</svg>
</div>
</div>
</div>
No CSS is provided. However, the class is fully compatible with eBay Skin.
import Listbox from 'makeup-listbox';
document.querySelectorAll('.listbox').forEach(function(el, i) {
const widget = new Listbox(el, config);
el.addEventListener('makeup-listbox-change', function(e) {
console.log(e.type, e.detail);
});
});
The constructor takes a configuration object as its second parameter.
todo
Fired when the selected option changes.
optionIndex
: the index position of the selected optionoptionValue
: the value of the selected optionFAQs
A JavaScript class representing an ARIA listbox
The npm package makeup-listbox receives a total of 47 weekly downloads. As such, makeup-listbox popularity was classified as not popular.
We found that makeup-listbox 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.