Impossible to apply a variable into an embeded component

For my responsive design system i try to build only fully responsive components based on components variants and new Figma variable. And it works very well when you apply a variable to a variant.
But when you want to set up a variable with a variant wich is embed in an other component it becomes impossible.
Can you help me with this issue ?