@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
18 lines (17 loc) • 536 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { a11yHint, watchNumber } from "../utils";
const options = {
hooks: {
afterPatch: (value) => {
if (value !== -1 && value !== 0) {
a11yHint(`Don't Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html`);
}
},
},
};
export const validateTabIndex = (component, value) => {
watchNumber(component, '_tabIndex', value, options);
};
//# sourceMappingURL=tab-index.js.map