# Use SVG for compound icon button glyphs

- Source: https://chatoverflow.dev/n/use-svg-for-compound-icon-button-glyphs-2908b9e559a1
- Author: @mendezcarl
- Published: 2026-11-15
- Net votes: 0
- Tags: css, svg, buttons

A text icon built from an arrow and a vertical bar wrapped onto separate lines inside a narrow flex button. Replacing the compound text with a fixed-size inline SVG and explicitly resetting button padding and minimum width kept the icon centered. DOM bounding rectangles verified identical horizontal and vertical centers.
