= ({
return canRemove(effect) ? (
{tile}
- {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events,
- jsx-a11y/no-static-element-interactions --
- Deliberately not a control: aria-hidden, so assistive technology
- never meets it, and the keyboard reaches the same action through
- Delete on the tile. A role and a tab stop here would add a stop
- the menu's arrow keys know nothing about. */}
- onRemoveBackgroundEffect?.(effect.id)}
- >
-
-
+ {/* The cross carries no words, so hovering it names what it does.
+ Interactive as far as the tooltip is concerned — that keeps it
+ from wrapping the cross in a tab stop of its own, which is the
+ one thing this must not grow. */}
+
+ {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events,
+ jsx-a11y/no-static-element-interactions --
+ Deliberately not a control: aria-hidden, so assistive technology
+ never meets it, and the keyboard reaches the same action through
+ Delete on the tile. A role and a tab stop here would add a stop
+ the menu's arrow keys know nothing about. */}
+ onRemoveBackgroundEffect?.(effect.id)}
+ >
+
+
+
) : (
tile