Bump button

Component

Bump button

A transparent close control. The lights stay on.

Import jellyfy/bump-button.css with jellyfy/material.css and jellyfy/motion.css. Or import jellyfy/jellyfy.css, which already includes this file and every other component.

Classes

ClassType
btn-bumpComponentNo fill and no radius. Pair it with btn-sm or btn-lg for the other sizes.
btn-smSizeSmall. Use it with btn-bump.
btn-lgSizeLarge. Use it with btn-bump.
primaryColorIndigo by default.
secondaryColorPink by default.
tertiaryColorTeal by default.
neutralColorGray by default.
successColorGreen by default.
errorColorRed by default.
warningColorAmber by default.
infoColorSky by default.

Close

Leave the svg without a size. The button sets the icon size. On a modal panel it sits 0.75rem from the top and the trailing edge.

<button class="btn-bump" type="button" aria-label="Close">
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
    <path d="M18 6 6 18M6 6l12 12" />
  </svg>
</button>

Sizes

<button class="btn-bump btn-sm" type="button" aria-label="Close"></button>
<button class="btn-bump" type="button" aria-label="Close"></button>
<button class="btn-bump btn-lg" type="button" aria-label="Close"></button>

A bump button on a slotted card, alert, or modal panel uses that surface’s text color.