O with occluded right edge to appear also as a C Open Web Components Guides Docs Blog Toggle darkmode

EsLint Plugin Lit A11y: no-distracting-elements

Enforces that no distracting <marquee> or <blink> elements are used. These elements are visually distracting and can cause accessibility issues with visually impaired users. Such elements are also deprecated, and should not be used.

Rule Details

Examples of incorrect code for this rule:

html` <marquee>Can't read this</marquee> `;
html` <blink>Can't read this</blink> `;

Examples of correct code for this rule:

html` <span class="highlight">Readable Content</span> `;

Accessibility guidelines

Resources