Since the SVG gets wrapped in an <a> tag when you add a link to it, the flex-grow and flex-shrink properties (and probably other properties affecting layout) don’t carry over to that <a> tag.
Hi Max,
Thanks so much for your report, and welcome to the forum!
I can replicate the problem, but wouldn’t consider it a bug. The style properties apply to the “most relevant” node, which is the SVG. There are probably many other settings that need to be applied to the SVG despite the link. The difficulty here is to have every conceivable scenario in mind, which is simply impossible without introducing more problems.
Your CSS solution is a good approach Alternatively, you can wrap the SVG manually with a div and add the link there. Then you can deliberately set flex-grow/shrink on the link and have full control.