Home / Function/ a11y_click_events_have_key_events() — svelte Function Reference

a11y_click_events_have_key_events() — svelte Function Reference

Architecture documentation for the a11y_click_events_have_key_events() function in warnings.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  1be14cc7_da37_355d_7747_e99d4a70b716["a11y_click_events_have_key_events()"]
  56a689f9_11c0_cc76_bd60_41bb6dc96475["warnings.js"]
  1be14cc7_da37_355d_7747_e99d4a70b716 -->|defined in| 56a689f9_11c0_cc76_bd60_41bb6dc96475
  c342967b_b314_8027_476d_d085ed0e13f0["check_element()"]
  c342967b_b314_8027_476d_d085ed0e13f0 -->|calls| 1be14cc7_da37_355d_7747_e99d4a70b716
  style 1be14cc7_da37_355d_7747_e99d4a70b716 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/warnings.js lines 172–174

export function a11y_click_events_have_key_events(node) {
	w(node, 'a11y_click_events_have_key_events', `Visible, non-interactive elements with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as \`<button type="button">\` or \`<a>\` might be more appropriate\nhttps://svelte.dev/e/a11y_click_events_have_key_events`);
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does a11y_click_events_have_key_events() do?
a11y_click_events_have_key_events() is a function in the svelte codebase, defined in packages/svelte/src/compiler/warnings.js.
Where is a11y_click_events_have_key_events() defined?
a11y_click_events_have_key_events() is defined in packages/svelte/src/compiler/warnings.js at line 172.
What calls a11y_click_events_have_key_events()?
a11y_click_events_have_key_events() is called by 1 function(s): check_element.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free