icon-button {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  position: relative;
  background: transparent;
  text-align: center;
  overflow: hidden;

  svg {
    pointer-events: none;
    width: 1.25rem;
    height: 100%;
    fill: var(--color-ui-1);
  }
}

icon-button:hover {
  background: var(--color-ui-3)
}

//TODO: Redo tooltip to not be hidden behind other elements
/*icon-button:hover:before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: calc(50% - 0.25rem);
  width: 0;
  height: 0;
  z-index: 10000;
  border-left: 0.25rem solid transparent;
  border-right: 0.25rem solid transparent;
  border-top: 0.5rem solid var(--color-brand-dark);
}

icon-button:hover:after {
  content: attr(aria-label);
  text-align: center;
  position: absolute;
  top: -1.6rem;
  background: var(--color-brand-dark);
  color: var(--color-ui-4);
  border-radius: 0.25rem;
  white-space: nowrap;
  padding:0 0.25rem;
}*/

icon-button:active {
  background: var(--color-ui-2);
}

icon-button[aria-disabled="true"] {
  pointer-events: none;
  background: var(--color-ui-3-30);
}

icon-button:focus {
  box-shadow: 0 0 0 0.25rem var(--color-focus-80);
}