repo-a11y-build-warnings-svelte-range-slider-pips Svelte Themes

Repo A11y Build Warnings Svelte Range Slider Pips

Reproducing an a11y warning in Svelte Range Slider Pips.

A11y Build Warnings - svelte-range-slider-pips

Minimal reproduction for svelte-range-slider-pips A11y warnings when building with Vite and Svelte 5.

Steps to Reproduce

  1. Clone this repo
  2. Run npm install
  3. Run npm run build
  4. Observe the A11y warnings in the console output

Note: The svelte.config.js includes an onwarn handler to surface these warnings. Without it, warnings from node_modules may be silently suppressed.

Expected Behavior

No warnings during build.

Actual Behavior

Multiple a11y_no_static_element_interactions warnings appear from RangePips.svelte:

InternalCompileWarning {
  name: 'CompileWarning',
  code: 'a11y_no_static_element_interactions',
  message: '`<span>` with a pointerdown or pointerup handler must have an ARIA role\n' +
    'https://svelte.dev/e/a11y_no_static_element_interactions',
  filename: 'node_modules/svelte-range-slider-pips/dist/svelte/components/RangePips.svelte',
  position: [ 2124, 2892 ],
  start: { line: 78, column: 4, character: 2124 },
  end: { line: 100, column: 11, character: 2892 },
  ...
}

Three warnings total from lines 78, 107, and 135 in RangePips.svelte.

Versions

  • svelte: 5.42.2
  • svelte-range-slider-pips: 4.1.0
  • vite: 6.4.1
  • @sveltejs/vite-plugin-svelte: 5.0.3

Top categories

Loading Svelte Themes