Hey hey ​@mosennouni 🤩 Great question.Â
This one is expected behavior rather than a bug. In Figma, Inner shadow is painted onto the layer's fill, so when you remove the fill there's no surface left for the shadow to render on. You can see this in the render order for layers.
Drop shadow has a Show behind transparent areas option for this situation, but Inner shadow doesn't support it — see "Show drop shadows through transparent layers" for more details
A few ways to get the highlight you're after while keeping the layer visually transparent:
- Keep the fill and set its opacity to ~1%. The shadow renders and the layer still exports with a transparent background
- Move the Inner shadow to a parent frame with Clip content enabled
- Use a duplicate of the shape as a mask instead of removing the fill
One thing to know: adding a stroke with no fill won't help here 😢 — that only unlocks the Drop shadow toggle.
Have fun testing! — Jaycee