@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
23 lines (20 loc) • 593 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import './common.js';
import { L as Log } from './prop.validators.js';
const UNIQUE_LABELS = new Set();
function addNavLabel(ariaLabel) {
if (UNIQUE_LABELS.has(ariaLabel)) {
Log.warn(`There already is a nav element with the label "${ariaLabel}"`);
}
else {
UNIQUE_LABELS.add(ariaLabel);
}
}
function removeNavLabel(ariaLabel) {
UNIQUE_LABELS.delete(ariaLabel);
}
export { addNavLabel as a, removeNavLabel as r };
//# sourceMappingURL=unique-nav-labels.js.map
//# sourceMappingURL=unique-nav-labels.js.map