Changes the "vs" text to a button that swaps the axes.
I went with a default unstyled button element because if you use boostrap's button styles, you get a flat div with rounded corners, and it didn't look totally obvious to me in this context that it's a UI affordance. Easy enough to change it to a bootstrap style button by adding the btn class to the <button> element.
Changes the "vs" text to a button that swaps the axes.
I went with a default unstyled
button
element because if you use boostrap's button styles, you get a flat div with rounded corners, and it didn't look totally obvious to me in this context that it's a UI affordance. Easy enough to change it to a bootstrap style button by adding thebtn
class to the<button>
element.