Duolith docs

Errors E0200 to E0299

E0201 Hover selector with no touch look

Message selector never matches on iOS or Android

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

A style block's :hover rule applies while a pointer rests on the element, which never happens on a phone. A selector list that also has the same selector with :active (.row:hover, .row:active) says what a finger shows; each :hover selector needs its own twin. A rule inside a media query that never holds on a phone, such as @media (hover: hover) or (pointer: fine), is for pointers only. Either way the native build leaves the :hover selector out without a word (decision 0049).

How to fix it

Add the :active twin of the selector to the rule, or put the rule in @media (hover: hover) { … }.

In a terminal

duolith explain E0201

Mentioned in