I’m running into an issue with a component that uses a slot. When I replace the slot content with an instance of a different component, the padding of the original slot component is preserved instead of inheriting the padding from the new component.
I expected the replaced component to behave with its own padding settings, but it seems the slot’s container enforces its own padding.
Is there a way to make the new component respect its own padding instead of inheriting it from the slot container?
Any suggestions or workarounds would be greatly appreciated!