Weird shadow behind M3 button

I’m making variants of the buttons in the M3 design kit. I’m making a ‘rounded’ shape variant, but the shadow seems to follow the default circular variant. What’s odd is, it doesn’t do this when I made a rectangular button variant. Any idea what can be happening?

I don’t know why this worked, but when I deselected clip content, the shadow works properly.

@Ryan_Salas It’s probably because you created a rectangle inside of the frame and you are giving the shadow to a different layer and that’s why deselecting clip content helped you. For buttons like this use fill to the main frame, no need for vector shape in the design.

Nope, I did not create a rectangle inside the frame. It’s just a frame around the icon and the text.