UNPKG

@spectrum-web-components/shared

Version:

The `@spectrum-web-components/shared` package provides essential base classes, mixins, and utilities that support developing Spectrum Web Components. This package contains foundational tools for focus management, slot observation, accessibility enhancemen

22 lines (21 loc) 737 B
"use strict"; const focusables = [ "input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "label:not([inert])", "[tabindex]:not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])", '[focusable]:not([focusable="false"])' // custom dev use-case ]; const userFocuable = ':not([tabindex="-1"])'; export const userFocusableSelector = focusables.join(`${userFocuable}, `) + userFocuable; export const focusableSelector = focusables.join(", "); //# sourceMappingURL=focusable-selectors.dev.js.map