Looking to align a simple svg icon for a dropdown button with the text in the button so that the centers match up. Currently, the icon is aligned with the bottom of the text instead.
Here's the code for the svg:
<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='#FFFFF'>
<polygon
opacity="0.5"
points='0,0 100,0 50,50'
/>
</svg>
The implementation in React styling looks like this for the button element:
background: `url(${require("./assets/icons/select_downarrow.svg")}) no-repeat`,
backgroundSize: "10px",
backgroundPosition: "calc(100% - 15px) center",
Currently, the icon aligns with the very bottom of the SVG arrow. Is it possible to align it to the center of the polygon directly from the SVG itself, or will it require additional styling?