Circular Spectrum button in Photoshop UXP plug in
Im trying to add a circular sp button to my Photoshop plug in and I just can get this thing to work with vanilla js, css and html. At best I got an ellipse. How do I do this? I`ve downloaded ui-kitchen-sink and there are no circular buttons there but on the other hand there is these pages where it shows its possible:
https://spectrum.adobe.com/page/button/
https://opensource.adobe.com/spectrum-web-components/components/button/
Is this a React specific thing?
Here is the code im using:
<sp-button class= "testButton" variant="cta" label="Icon only">
<div slot="icon" class="icon">
<svg id="spectrum-icon-18-Edit" viewBox="0 0 30 30"
><path d="SomeLongPath" >
</path>
</svg>
</div>
</sp-button>
.testButton {
align-self: flex-end;
width: 30px;
height: 30px;
border-radius: 100%;
}