I’ve thought about this a bunch and I was not able to come up with a solution. Is there any way to create this design with variable border radius and shadows in such a way that when items are added to the top or bottom, the radius readjusts?
Hi there.
You can easily do this with Stacks and Frames. Basically, apply a small rounding to each of the individual items that you want to represent your row, wrap them in a Stack, and then apply a larger rounding to that Stack. Then you can add a shadow to the Stack itself.
Here’s a quick demo and example file.
Sorry, I think I should have been more clear. This works with one shadow, but to recreate the border effect, I have to use two. And when using two shadows, the second shadow gets applied in such a way that it fills the gaps as well, as if it isn’t cast by individual items, but something invisible between all of them:
Indeed, you’re right. Adding a second shadow does fill in the gaps there. Let me take this issue to the development team to see what they can make of this situation. Apologies in the meantime.
I’m back with an update. Unfortunately, yes, this is a quirk/limitation of how Shadows operate at present. A Group – or a Frame that’s acting like a Group – can only render one Shadow. Add another Shadow and the Frame will switch to rendering Shadows like on a shape.
With the setup that you are trying to create, requiring both a Border and Shadow, it would seem that you will have to manually adjust the top and bottom rows separately.
Apologies for this, but I will file this issue in the Customer Requests repo for consideration.