Menu

1 / 3

One Icon or the Whole SVG Sprite? What Happens When You Press Enter?

DEV Community: frontend·Axialis Software·1 day ago
#TaLhrwt4
#devtofrontend#devto#dev#search#export
Long article (297 words) — no AI summary yet.
Reading 0:00
15s threshold

Type export and press Enter. Do you get search.svg , a standalone icon, or icons.svg , the shared sprite? In one version of our prototype, the highlighted command said Export in both cases.

In our prototype, pressing Enter runs the highlighted command. We tested the same export search with and without a symbol selected to see whether the command label tells you which file you’ll get.

Same search, two selection states

Our test sprite contained three symbols: search , filter , and settings . In Chromium, we typed export with Search selected, then repeated the test with no symbol selected.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.