Oh, OK. There was a misunderstanding.
I was talking about announcements of government policies in various European countries to prohibit or tightly limit sales of new fossil fueled vehicles by 2030 or 2035 or similar year, not about current annual sales of vehicles.
As I said, the conventional wisdom changed from "electric vehicles are not practical" to " we must have only electric vehicles" in the space of a decade in which Tesla showed that EVs could be as practical as fossil fuel vehicles.[1] Other manufacturers (VW, Toyota, Hyundai-Kia, etc., are now scrambling to catch up.
1. Yes, the Nissan Leaf was there too, and a few others, but it/they suffered from short range and/or other compromises, so the "impractical" label remained in the minds of policymakers. And it/they suffered from undermarketing, because the makers didn't want to cannibalise their ICE vehicle sales.