Well, currently electric car drivers evade the gas tax - this would be one way to make sure they pay for road upkeep, too. However, given the state of California’s roads, it’s a pretty sure bet that most gas taxes aren’t being applied to roads anyway.
In Indiana, there is a supplemental registration fee each year on full electric and hybrid electric vehicles to compensate for this.