govtrack.us-web icon indicating copy to clipboard operation
govtrack.us-web copied to clipboard

Libertarian Party not handled when displaying vote details

Open GPHemsley opened this issue 4 years ago • 2 comments

https://www.govtrack.us/congress/votes/116-2020/h252 image

Looks like the code was written to call out DIR explicitly and defaulting to unstyled/full name otherwise, presumably to quickly implement the functionality without having to deal with historical data: dcb22abeb270ed7dde56b9f355f0bc9e4023abf6 dda0e212246f4f28f1023b0b2be01fdcbc8ae12d

Support should be added for displaying L in a yellow box, using class party_L. Wikipedia uses #FED105. Their logo uses #FFD03C and #56565B.

https://github.com/govtrack/govtrack.us-web/blob/77643f3e81a8fc44856985013102528c22dd3319/static/css/all.css#L446-L466

Here's a mockup of what it could look like: image

(FWIW, Wikipedia also has colors for historical parties.)

GPHemsley avatar Dec 29 '20 23:12 GPHemsley

Hey @GPHemsley! Good point, though with Amash leaving this isn't super high priority, but I will try to fix it since the pages live forever. :)

JoshData avatar Dec 30 '20 13:12 JoshData

I expect in the long run he won't be the only one. ;)

Plus he seems to be the first in recent memory to switch to a non-independent 3rd party while in office: https://en.wikipedia.org/wiki/List_of_United_States_Representatives_who_switched_parties

The other two on that list worth looking into are Franklin D. Roosevelt, Jr. (Liberal) and William Carney (Conservative), both of whom appear to have originally been elected thanks to New York's fusion voting.

GPHemsley avatar Jan 01 '21 23:01 GPHemsley