Hidden item within component - flexbox gap still showing

When creating a component, has anyone experienced the gap from a flex box parent still showing after a a child has been hidden? I’m curious.