CYBERDZYNES Independent digital design magazine

Tools & Workflow / Component practice

Test the SVG inside the actual button

Check how an icon draws, inherits colour and behaves in the control people will actually press.

Review the drawing bounds, the surrounding interactive area, and the name exposed by the control separately.

A crisp SVG on an icon sheet can turn muddy beside a label and disappear on a dark toolbar. The sheet tells you that the drawing exists. The button tells you whether it communicates an action under the same styling and interaction rules as the rest of the interface. Review both, but accept the icon in context.

Render the same drawing in both button variants

For a hypothetical reading list, use a download icon in the visible 'Download list' button and in the icon-only version used by a compact toolbar. Build both with the actual button component. Put one beside a neighbouring control and use a toolbar narrow enough to pressure the layout. Compare the icon at the sizes the component actually renders, rather than reviewing it enlarged on a blank canvas.

Look for a cropped arrowhead or a tray that appears heavy at the smaller size. Inspect both the rendered dimensions and the viewBox, which maps the drawing's coordinate rectangle into the SVG viewport. If the bottom stroke is being clipped, check whether it reaches beyond the drawing bounds or whether a surrounding box clips the SVG. Change one of those things at a time.

Follow the button's state changes

Check the normal, hovered, focused and disabled variants on each background where the button appears. Compare ink colour against the button surface, especially when the control changes text colour. An inline icon whose painted paths use currentColor can follow the button's text colour; a path with a fixed fill or stroke may stay unchanged. If the icon is meant to inherit, inspect the path that draws the offending part instead of recolouring every path in the set.

Zoom in to diagnose a clipped stroke, then return to normal scale to judge whether the arrow and tray still read separately. In the text version, try a longer label too. The drawing shouldn't be squeezed by the text or sit so close that the two read as one shape.

Inspect what the button is called

Use a native button for the action. In the labelled variant, let the visible words give it its accessible name and hide the redundant inline SVG from assistive technology. In the icon-only variant, give the button itself the name 'Download list'. Inspect the accessibility tree for both: look for one named button rather than an unnamed control or an extra graphic announcement.

Press it before signing off

Tab to the control and check that focus is visible. Try Enter and Space and verify each performs the intended action once. Then click or tap both on the icon and in the surrounding button padding. The button should respond across its intended area. Keep one screenshot of the smallest variant alongside a short record of the name and activation checks. A polished screenshot on its own cannot show either.

Compare actions that could be mistaken for one another

Imagine a fictional audio archive with a compact toolbar for each recording. It offers 'Save to collection', 'Download audio' and 'Share recording'. Each drawing looks distinct on a generous icon sheet. In the result list, the first two are both small arrows, and a visitor who wants a local copy has no obvious way to choose between them. This is an action design problem before it is a stroke weight problem. Redrawing a tray might not solve it.

Put the three controls together with realistic recording titles, including a long one, and write down what the visitor expects to happen after using each. Review the visible desktop labels first. If two labels sound interchangeable, improve them before removing any for the compact design. On a narrower page, you could keep the download label and move the less common commands into a named menu. That is a useful alternative when there isn't room for three unambiguous buttons.

Use an example where a choice has a consequence. A listener downloading a file to take away needs a different result from someone saving a reference in their account. Ask a colleague to point to the command for each outcome before opening the menu or showing a tooltip. Their interpretation is a clue about what to investigate, not user research or proof that the icon is self-explanatory.

Record which icon and label belong to which action in the component example. Include the compact decision and why it was made. When another feature asks to reuse the tray icon for moving recordings into a folder, the question becomes whether those actions are distinguishable in the same surface, not whether both usages appear somewhere in an old library.

Separate the mark from the space around it

Take the archive's share button. Suppose its drawing seems smaller than the download symbol, even though the two buttons occupy equal space. Start by highlighting the button and SVG boundaries in a local preview. Check whether the component positions the two drawing boxes alike. Then compare the amount of ink inside those boxes. A narrow symbol and a wide symbol may need different treatment to feel related, even when the dimensions of their SVG elements match.

Now imagine the share button looks too high beside its text in a wider toolbar. Compare the same drawing in the icon-only control. If it feels centred there, inspect the label alignment and the way the whole button places its contents. Editing the drawing before that comparison could leave the compact version looking misplaced. If it feels too high in both uses, examine the drawing inside its own coordinate space and try the smallest adjustment that addresses both.

Be careful what you preserve in a proposed fix. A larger drawing may make a shape easier to recognise, but a larger drawing box can use space the label needs. A larger interactive control can improve the feel of the toolbar, but can also force another action onto a second row. Make the change to the layer that owns the problem, then put the revised buttons back in the crowded example before choosing a variant.

When you review that change, look at the idle row and the same row when one button has focus. The indicator makes the relationship between ink and control boundary easier to see. If the indicator seems to frame two icons, check spacing and which button actually owns it. Someone operating the toolbar needs to know exactly which command will run.

Give a changing icon a clear contract

In the fictional archive, saving a recording could be presented as a persistent toggle or as two successive commands. With a persistent toggle, the same label can identify the control while its pressed state tells the visitor whether the recording is saved. With successive commands, 'Save to collection' can become 'Remove from collection' after success. Choose one interpretation and check the compact and labelled versions against it. A filled bookmark alone leaves the change open to interpretation.

Start with an unsaved recording and follow the action through its result. Does the change remain visible after you leave the toolbar and return? Does the handle for undoing it remain in the same place? Check the name and state exposed by the actual control during the transition as well as after it. A design comparison between empty and filled icons doesn't show what happens to focus or which button name someone encounters next.

Add a case where the save doesn't complete in the fixture. A button that switches immediately to a success symbol and then silently reverts is hard to understand. Decide where that failure should be explained, and whether the visitor needs an explicit retry. Give the explanation enough context to distinguish it from a failure to download or share. All three commands may sit in the same row.

Treat a pending drawing as another state of the component, not as evidence of success. If the label or symbol changes while saving, check that the toolbar doesn't jump or mislead a visitor into clicking another button. If the recording list can reorder when saved, try saving a title in the middle of the list and check where focus and status land. That is a different decision from choosing between outline and solid artwork.

Follow the label into the crowded row

Add one archive item with a long title and one with similar neighbouring titles, such as two parts of a lecture. Open the actions for the second item, then use the next item in the list. Check that the toolbar still conveys which recording it belongs to. A visually neat row of repeated icon buttons can become difficult to navigate if the recording context is lost. The component needs a sensible reading order and a way to distinguish the items.

Try a longer translated or editorial label from material you actually expect to ship. Examine where the wrap happens. If 'Download audio' has become a longer phrase, forcing it beside the icon on one line may consume the space needed for the title. Allowing a wrap may work in a wide action panel but harm a dense list. Compare the specific alternatives: expand the row, keep a shorter unambiguous label or move a command into the recording's menu.

If you choose a tooltip, try reaching it through the interaction modes the component supports. It can be a helpful visible explanation for an unfamiliar shape, but it should not be the only place you define what the button does. A listener who reaches the recording by touch or by keyboard still needs a workable route. Review whether a menu with visible labels makes the group easier to use than three individually explained icons.

Keep the decision tied to content. The compact archive list and the detailed recording page need not show identical controls at all widths. They do need to agree on what the controls mean. In your example, place the detailed and compact renderings beside the list of actions and check that none swaps a familiar icon for a different command simply to save a little horizontal space.

Change the background without changing the action

The same fictional button might appear on the white archive list and in a dark audio player. Use both surfaces in the component example. Add the real selected recording treatment on the list, since it may change the colour under the control. If reviewers only see an isolated button on a neutral ground, they may accept ink that is hard to identify when the recording becomes active.

Imagine the download arrow responds to the player's text colour but its tray stays dark. First establish whether both parts should change. A deliberate two-colour mark needs separate attention to each part; an accidental fixed colour needs a correction in the part carrying it. Compare the visible preview with a temporary one-colour version. If the basic shape only reads when both parts are clear, don't accept a state that leaves the tray faint merely because the arrow survives.

Inspect neighbouring controls after fixing the icon. A rule at button level may change the label or focus appearance as well as the graphic. A rule applied to the whole set might also affect a badge whose second colour carries meaning. Note which layer you touched and go back to the archive list before accepting the player. This keeps a local surface fix from becoming an unintended vocabulary change across the product.

Include a low-distraction way to see what has changed. A single crop of the player can show which icons belong together; a list of paired before and after states can show what happens when that player is active or temporarily unavailable. Make sure each image is labelled with the state. Without that label, a deliberate disabled treatment can look like a regression and a genuinely broken active icon can escape review.

Build a review case around the button's actual outcome

For the archive, choose one harmless fixture recording with a known title and a test audio file. Put it in the list and the player, then use the compact and labelled download controls separately. Inspect what actually follows activation. A button that animates pleasantly but starts the wrong audio file fails the task. A download that opens the expected file from one surface doesn't establish that the other surface points to the same recording.

Try the same task after switching to the next recording in the player. The symbol may remain perfectly drawn while the handler continues to refer to the previous item. You don't need a long list of files to expose that possibility; you need two distinguishable fixtures and an expectation for which file belongs to each. Write both results beside the relevant renderings rather than filing an undifferentiated note that 'icons checked out'.

When the defect is purely visual, keep the smallest useful example. A component page containing the labelled button, icon-only button, active player and crowded list may be enough to identify a future styling change. When the defect depends on a real sequence, keep the steps as well. For instance, retain 'open second recording after downloading the first' if that sequence matters. A permanent illustration of the toolbar cannot stand in for it.

Your next icon review can start with one small matrix: actual surfaces down one side, intended actions across the top. Pick the most easily confused neighbours and run them through their outcomes. Before adding another decorative variant, ask whether you can still tell which recording the control belongs to, what action it offers and whether that action succeeded. Those are the decisions the drawing has to support.

References