JSFiddle - React, Tailwind, and code Playground

by epinapala

HTML

<button class="button" onmouseover="this.querySelectorAll('.btn_arrow').item(0).style['stroke']='white'" onmouseout="this.querySelectorAll('.btn_arrow').item(0).style['stroke']='black'"> Some Long button text <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38.93 30.26" class="btn_arrow"><polyline vector-effect="non-scaling-stroke" class="btn_arrow_svg" points="23.16 29.55 37.52 15.13 23.16 0.7"></polyline>
<line vector-effect="non-scaling-stroke" class="btn_arrow_svg" x1="37.51" y1="15.13" y2="15.13"></line></svg></button>

CSS

.button {
  height: 50px;
  border: none;
  border: solid 2px black;
  border-radius: 5px;
  background: white;
  font-size: 18px;
  -webkit-transition: all 500ms cubic-bezier(0.39, 0.5, 0.15, 1.36);
    transition: all 500ms cubic-bezier(0.39, 0.5, 0.15, 1.36)
}

.button:hover {
  background: black;
  color: white;
  border: solid 2px white;
}

.btn_arrow_svg {
  fill: none;
  stroke-miterlimit: 0;
  stroke-width: 2px;
}

.btn_arrow {
  position: relative;
  top: 0.15em;
  stroke: black;
}

.btn_arrow {
  display: inline-block;
  height: 18px;
  width: 18px;
  margin-left: 4px;
}