Spatial Navigation for GeckoView - v3.2.0
    Preparing search index...

    Interface SpatialNavConfig

    interface SpatialNavConfig {
        announceBoundaries: boolean;
        announceNavigation: boolean;
        arrowScale: number;
        autoRefocus: boolean;
        boundaryScrollBehavior: BoundaryScrollBehavior;
        color: string;
        disabledColor: string;
        distanceFunction: DistanceFunction;
        enableAria: boolean;
        enableFocusPulse: boolean;
        focusGroups: FocusGroupsConfig;
        focusTrapDetection: boolean;
        frameworkAwareRefresh: boolean;
        gridAlignmentTolerance: number;
        iframeSupport: IframeSupportConfig;
        intersectionRootMargin: string;
        intersectionThreshold: number;
        minElementSize: number;
        mutationDebounce: number;
        observeIntersection: boolean;
        observeMutations: boolean;
        observeScroll: boolean;
        observeVirtualContainers: boolean;
        outlineOffset: number;
        outlineWidth: number;
        overlapThreshold: number;
        overlayGlowBlur: number;
        overlayGlowOpacity: number;
        overlayInnerGlowOpacity: number;
        overlayScrimOpacity: number;
        overlayTheme: OverlayTheme;
        overlayZIndex: number;
        precomputeCacheTimeout: number;
        precomputeCandidates: boolean;
        refocusStrategy: RefocusStrategy;
        safeAreaMargin: number;
        scoringMode: ScoringMode;
        scrollThreshold: number;
        traverseShadowDom: boolean;
        useCSSProperties: boolean;
        verboseDescriptions: boolean;
        virtualContainerSelectors: string[];
        virtualScrollDebounce: number;
        visibilityMode: OverlayVisibilityMode;
        wrapNavigation: boolean;
    }
    Index

    Properties

    announceBoundaries: boolean
    announceNavigation: boolean
    arrowScale: number
    autoRefocus: boolean
    boundaryScrollBehavior: BoundaryScrollBehavior

    Behaviour when a directional press reaches a boundary. See [BoundaryScrollBehavior]. Defaults to 'scroll' as of v3.1.0 so a directional press at the viewport edge of a long page scrolls into view instead of dropping the keystroke; set 'exit' to keep the legacy 3.0.x focus-exit-on-boundary behaviour.

    color: string
    disabledColor: string
    distanceFunction: DistanceFunction
    enableAria: boolean
    enableFocusPulse: boolean

    Enable the legacy .pulse keyframe animation on the focus ring (a small expanding box-shadow ripple). Default false — the animation hardcoded amber rgba(255, 193, 7, …) from the pre-WCAG-migration era and clashes with the Material Blue 800 default focus colour. Enable only if your config sets a custom color AND you want the pulse.

    focusGroups: FocusGroupsConfig
    focusTrapDetection: boolean
    frameworkAwareRefresh: boolean
    gridAlignmentTolerance: number
    iframeSupport: IframeSupportConfig
    intersectionRootMargin: string
    intersectionThreshold: number
    minElementSize: number
    mutationDebounce: number
    observeIntersection: boolean
    observeMutations: boolean
    observeScroll: boolean
    observeVirtualContainers: boolean
    outlineOffset: number
    outlineWidth: number
    overlapThreshold: number
    overlayGlowBlur: number
    overlayGlowOpacity: number
    overlayInnerGlowOpacity: number

    Opacity of the inset 1px highlight rendered inside the focus outline (--sn-inner-glow-alpha). Set to 0 to drop the inset highlight entirely — useful for hosts that want a pure outline without decorative chrome.

    Range [0, 1], default 0.16.

    overlayScrimOpacity: number
    overlayTheme: OverlayTheme
    overlayZIndex: number
    precomputeCacheTimeout: number
    precomputeCandidates: boolean
    refocusStrategy: RefocusStrategy
    safeAreaMargin: number
    scoringMode: ScoringMode
    scrollThreshold: number
    traverseShadowDom: boolean
    useCSSProperties: boolean
    verboseDescriptions: boolean
    virtualContainerSelectors: string[]
    virtualScrollDebounce: number
    visibilityMode: OverlayVisibilityMode

    Controls when the focus ring + previews are rendered. See [OverlayVisibilityMode]. Default always for back-compat; touch-aware hosts (browsers) should set hardware-nav-only.

    wrapNavigation: boolean