Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Local Effects

Jan Miksovsky edited this page Sep 30, 2020 · 4 revisions

Checklist » DOM Presence

✓ Local Effects

Does the component limit its effects to itself (or a designated target element)?

[This article is a stub, and is not yet complete.]

Unless the explicit purpose of the component is to provide global effects — e.g., global keyboard handling — the component should avoid intentionally changing anything outside itself and its own children.

Keyboard locality

By default, does the component only respond to keys when it has the keyboard focus?

Unless a component’s main purpose is to add global keyboard shortcuts, by default, a component shouldn’t automatically handle keys pressed while other elements have focus.

Clone this wiki locally